eBooru/app/views/application/_update_notice.html.erb
Earlopain 4e92e02703
[UserFeedback] Add 5 minute edit grace
This follows the other models which implement this
2022-07-10 19:25:48 +02:00

8 lines
362 B
Plaintext

<%# record %>
<% 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 > 5.minutes %>
<p class="info">Updated <%= time_ago_in_words_tagged(record.updated_at) %></p>
<% end %>