Show "updated by" message for topic deletion, lock, sticky

fixes #1903
This commit is contained in:
Toks
2015-08-06 19:45:23 -04:00
parent e675016ec5
commit 28057c1555

View File

@@ -15,8 +15,14 @@
<div class="prose">
<%= format_text(forum_post.body) %>
</div>
<% if forum_post.updated_at - forum_post.created_at > 5.minutes %>
<p class="info">Updated by <%= link_to_user forum_post.updater %> <%= time_ago_in_words_tagged(forum_post.updated_at) %></p>
<% if forum_post.is_original_post? %>
<% if @forum_topic.updated_at - @forum_topic.created_at > 5.minutes %>
<p class="info">Updated by <%= link_to_user @forum_topic.updater %> <%= time_ago_in_words_tagged(@forum_topic.updated_at) %></p>
<% end %>
<% else %>
<% if forum_post.updated_at - forum_post.created_at > 5.minutes %>
<p class="info">Updated by <%= link_to_user forum_post.updater %> <%= time_ago_in_words_tagged(forum_post.updated_at) %></p>
<% end %>
<% end %>
<menu>
<li>ID: <%= forum_post.id %></li>