BigW Consortium Gitlab

Commit b82870af by blackst0ne

Add author to 'Edited time ago by ...' message

parent 323596f6
...@@ -187,7 +187,7 @@ module ApplicationHelper ...@@ -187,7 +187,7 @@ module ApplicationHelper
output = content_tag(:span, "Edited ") output = content_tag(:span, "Edited ")
output << time_ago_with_tooltip(object.updated_at, placement: placement, html_class: html_class) output << time_ago_with_tooltip(object.updated_at, placement: placement, html_class: html_class)
if include_author && object.updated_by && object.updated_by != object.author if include_author && object.updated_by
output << content_tag(:span, " by ") output << content_tag(:span, " by ")
output << link_to_member(object.project, object.updated_by, avatar: false, author_class: nil) output << link_to_member(object.project, object.updated_by, avatar: false, author_class: nil)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment