mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Cleanup unneeded comments, touch up syntax
This commit is contained in:
@@ -72,7 +72,7 @@ module OpenProject::TextFormatting
|
||||
end
|
||||
|
||||
def mention_work_package_ids
|
||||
doc.css('mention[data-type="work_package"]').filter_map { |m| mention_id(m)&.to_i }.uniq
|
||||
doc.css('mention[data-type="work_package"]').filter_map { mention_id(it)&.to_i }.uniq
|
||||
end
|
||||
|
||||
def mention_anchor(mention)
|
||||
|
||||
@@ -38,9 +38,6 @@ module OpenProject::TextFormatting::Matchers
|
||||
# Shared with the PDF-export subclass in `app/models/work_package/exports/macros/links.rb`.
|
||||
HASH_TRIGGERS = %w[# ## ###].freeze
|
||||
|
||||
# Builds the user-facing label for the static-anchor variant of `##`/
|
||||
# `###` macros. Centralised so the PatternMatcherFilter path here and
|
||||
# the `<mention>`-envelope path in `MentionFilter` stay in lockstep.
|
||||
def self.compose_static_macro_label(work_package, label:, detailed:)
|
||||
parts = []
|
||||
parts << work_package.status&.name if detailed
|
||||
|
||||
Reference in New Issue
Block a user