Merge pull request #3145 from r888888888/flagger_metatag
Add "flagger:" and "appealer:" metatags (fixes #3142)
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%">Type</th>
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
<th width="10%">Creator</th>
|
||||
<% end %>
|
||||
<th width="10%">Creator</th>
|
||||
<th>Reason</th>
|
||||
<th width="5%">Resolved?</th>
|
||||
<th width="15%">Date</th>
|
||||
@@ -18,11 +16,13 @@
|
||||
<% @events.each do |event| %>
|
||||
<tr class="resolved-<%= event.is_resolved %>">
|
||||
<td><%= event.type_name %></td>
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
<td>
|
||||
<td>
|
||||
<% if event.is_creator_visible? %>
|
||||
<%= link_to_user event.creator %>
|
||||
</td>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<i>hidden</i>
|
||||
<% end %>
|
||||
</td>
|
||||
<td><%= format_text event.reason, :ragel => true %></td>
|
||||
<td>
|
||||
<% if event.is_resolved %>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<%= compact_time post_flag.created_at %>
|
||||
<% if CurrentUser.user.is_moderator? %>
|
||||
<% if CurrentUser.can_view_flagger?(post_flag.creator_id) %>
|
||||
<br> by <%= link_to_user post_flag.creator %>
|
||||
<%= link_to "»", post_flags_path(search: params[:search].merge(creator_name: post_flag.creator.name)) %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user