Skip to content

Commit

Permalink
Link to user overview from flaggers
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Sep 22, 2018
1 parent 4ab6d34 commit a82b18b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/views/flag_log/_flag_log.html.erb
@@ -1,6 +1,12 @@
<% with_app = false if with_app.nil? %>
<tr>
<td><%= log.user.try(:username) %></td>
<td>
<% if current_user&.has_role?(:admin) %>
<%= link_to log.user.try(:username), user_overview_path(user: log.user.try(:id)) %>
<% else %>
<%= log.user.try(:username) %>
<% end %>
</td>
<%= render "posts/post", :post => log.post, :wrap_in_tr => false %>
<% if with_app %>
<td><%= log.api_key.present? ? log.api_key.app_name : 'MS Web UI' %></td>
Expand Down

0 comments on commit a82b18b

Please sign in to comment.