posts: bring back uploader names.

This commit is contained in:
evazion
2020-07-13 18:19:20 -05:00
parent 45bbb71eba
commit 0b52b1622f
4 changed files with 9 additions and 19 deletions

View File

@@ -4,12 +4,10 @@
<strong>Date</strong>
<%= compact_time(post.created_at) %>
</span>
<% if policy(post).can_view_uploader? %>
<span class="info">
<strong>User</strong>
<%= link_to_user(post.uploader) %>
</span>
<% end %>
<span class="info">
<strong>Uploader</strong>
<%= link_to_user(post.uploader) %>
</span>
<span class="info">
<strong>Rating</strong>
<%= post.pretty_rating %>