Add author to 'Edited time ago by ...' message
This commit is contained in:
parent
323596f68e
commit
b82870afc0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue