Fix #4002: Always include "updated by" line when creator != updater
This commit is contained in:
7
app/views/application/_update_notice.html.erb
Normal file
7
app/views/application/_update_notice.html.erb
Normal file
@@ -0,0 +1,7 @@
|
||||
<%# record, interval %>
|
||||
|
||||
<% if record.respond_to?(:updater) && record.updater != record.creator %>
|
||||
<p class="info">Updated by <%= link_to_user record.updater %> <%= time_ago_in_words_tagged(record.updated_at) %></p>
|
||||
<% elsif record.updated_at - record.created_at > (local_assigns[:interval] || 5.minutes) %>
|
||||
<p class="info">Updated <%= time_ago_in_words_tagged(record.updated_at) %></p>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user