Add assigners to filter summary
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module Filter::Summarized
|
||||
def summary
|
||||
[ index_summary, tag_summary, assignee_summary, terms_summary ].compact.to_sentence + " #{bucket_summary}"
|
||||
[ index_summary, tag_summary, assignee_summary, assigner_summary, terms_summary ].compact.to_sentence + " #{bucket_summary}"
|
||||
end
|
||||
|
||||
def plain_summary
|
||||
@@ -26,6 +26,12 @@ module Filter::Summarized
|
||||
end
|
||||
end
|
||||
|
||||
def assigner_summary
|
||||
if assigners.any?
|
||||
"assigned by <mark>#{assigners.pluck(:name).to_choice_sentence}</mark>"
|
||||
end
|
||||
end
|
||||
|
||||
def bucket_summary
|
||||
if buckets.any?
|
||||
"in <mark>#{buckets.pluck(:name).to_choice_sentence}</mark>"
|
||||
|
||||
Reference in New Issue
Block a user