From b82870afc0031cb830976fb36cd1237c6059397f Mon Sep 17 00:00:00 2001 From: blackst0ne Date: Tue, 2 May 2017 09:49:30 +1100 Subject: [PATCH] Add author to 'Edited time ago by ...' message --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fff57472a4f..b9d375d9b64 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -187,7 +187,7 @@ module ApplicationHelper output = content_tag(:span, "Edited ") 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 << link_to_member(object.project, object.updated_by, avatar: false, author_class: nil) end