2012-09-02 16:50:07 +02:00
|
|
|
<div class="box wide">
|
2013-12-24 00:15:58 +01:00
|
|
|
<div class="legend">
|
2016-07-05 17:02:14 +02:00
|
|
|
<%= t('.moderationlogtitle') %>
|
2013-12-24 00:15:58 +01:00
|
|
|
</div>
|
2012-09-02 16:50:07 +02:00
|
|
|
|
|
|
|
<table class="data" width="100%" cellspacing=0>
|
|
|
|
<tr>
|
2017-05-17 10:56:24 +02:00
|
|
|
<th style="min-width: 150px;"><%= t('.datecolumn') %></th>
|
2016-07-05 17:02:14 +02:00
|
|
|
<th><%= t('.moderatorcolumn') %></th>
|
|
|
|
<th><%= t('.reasoncolumn') %></th>
|
2012-09-02 16:50:07 +02:00
|
|
|
</tr>
|
|
|
|
<% bit = 0 %>
|
|
|
|
<% @moderations.each do |mod| %>
|
|
|
|
<tr class="row<%= bit %> nobottom">
|
2017-05-17 10:56:24 +02:00
|
|
|
<td><%= mod.created_at.strftime("%Y-%m-%d %H:%M %z") %></td>
|
2015-10-15 17:02:26 +02:00
|
|
|
<td><% if mod.moderator %>
|
|
|
|
<a href="/messages?to=<%= mod.moderator.try(:username) %>"><%=
|
|
|
|
mod.moderator.try(:username) %></a>
|
|
|
|
<% elsif mod.is_from_suggestions? %>
|
2016-07-05 17:02:14 +02:00
|
|
|
<em>(<%= t('.users') %>)</em>
|
2015-10-15 17:02:26 +02:00
|
|
|
<% end %></td>
|
2012-09-02 16:50:07 +02:00
|
|
|
<td><% if mod.story %>
|
2016-07-05 17:02:14 +02:00
|
|
|
<a href="<%= mod.story.comments_path %>"><%= t('.storyline') %>: <%= mod.story.title
|
2012-09-02 16:50:07 +02:00
|
|
|
%></a>
|
|
|
|
<% elsif mod.comment %>
|
2016-07-05 17:02:14 +02:00
|
|
|
<a href="<%= mod.comment.url %>"><%= t('.commentline') %>
|
2016-02-10 23:11:34 +01:00
|
|
|
<%= mod.comment.user.username %>
|
2016-07-05 17:02:14 +02:00
|
|
|
<%= t('.commenton') %>
|
2016-02-10 23:11:34 +01:00
|
|
|
<%= mod.comment.story.title %></a>
|
2014-11-15 16:52:29 +01:00
|
|
|
<% elsif mod.user_id %>
|
|
|
|
<% if mod.user %>
|
2016-07-05 17:02:14 +02:00
|
|
|
<a href="/u/<%= mod.user.username %>"><%= t('.user') %>
|
2014-11-15 16:52:29 +01:00
|
|
|
<%= mod.user.username %></a>
|
|
|
|
<% else %>
|
2016-07-05 17:02:14 +02:00
|
|
|
<%= t('.user') %> <%= mod.user_id %> (<%= t('.deleted') %>)
|
2014-11-15 16:52:29 +01:00
|
|
|
<% end %>
|
2012-09-02 16:50:07 +02:00
|
|
|
<% end %></td>
|
|
|
|
</tr>
|
|
|
|
<tr class="row<%= bit %> <%= mod.reason.present?? "nobottom" : "" %>">
|
|
|
|
<td colspan=2></td>
|
2016-07-05 17:02:14 +02:00
|
|
|
<td><%= t('.actionline') %>: <em><%= mod.action %></em></td>
|
2012-09-02 16:50:07 +02:00
|
|
|
</tr>
|
|
|
|
<% if mod.reason.present? %>
|
|
|
|
<tr class="row<%= bit %>">
|
|
|
|
<td colspan=2></td>
|
2016-07-05 17:02:14 +02:00
|
|
|
<td><%= t('.reasonline') %>: <em><%= mod.reason %></em></td>
|
2012-09-02 16:50:07 +02:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% bit = (bit == 1 ? 0 : 1) %>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
2013-10-18 23:05:00 +02:00
|
|
|
</div>
|
2012-09-02 16:50:07 +02:00
|
|
|
|
2013-10-18 23:05:00 +02:00
|
|
|
<div class="morelink">
|
|
|
|
<% if @page > 1 %>
|
2016-07-05 17:02:14 +02:00
|
|
|
<a href="/moderations/page/<%= @page - 1 %>"><< <%= t('.page') %>
|
2013-10-18 23:05:00 +02:00
|
|
|
<%= @page - 1 %></a>
|
|
|
|
<% end %>
|
2012-09-02 16:50:07 +02:00
|
|
|
|
2013-10-18 23:05:00 +02:00
|
|
|
<% if @pages > 1 && @page < @pages %>
|
|
|
|
<% if @page > 1 %>
|
2012-09-02 16:50:07 +02:00
|
|
|
|
|
|
|
|
<% end %>
|
2016-07-05 17:02:14 +02:00
|
|
|
<a href="/moderations/page/<%= @page + 1 %>"><%= t('.page') %> <%= @page + 1
|
2013-10-18 23:05:00 +02:00
|
|
|
%> >></a>
|
|
|
|
<% end %>
|
2012-09-02 16:50:07 +02:00
|
|
|
</div>
|