Files
danbooru/app/views/user_feedbacks/index.html.erb
Toks 4f42ab8bdb adds support for user level-dependent classes
all links to users should have their class attribute set to that user's
level_class
2013-03-30 12:04:58 -04:00

41 lines
1.3 KiB
Plaintext

<div id="c-user-feedbacks">
<div id="a-index">
<h1>User Feedback</h1>
<table class="striped" width="100%">
<thead>
<tr>
<th width="15%">User</th>
<th width="15%">Creator</th>
<th width="15%">When</th>
<th width="45%">Message</th>
<th></th>
</tr>
</thead>
<tbody>
<% @user_feedbacks.each do |feedback| %>
<tr class="feedback-category-<%= feedback.category %>">
<td><%= link_to feedback.user_name, user_path(feedback.user_id), { :class => feedback.user.level_class } %></td>
<td><%= link_to feedback.creator_name, user_path(feedback.creator_id), { :class => feedback.creator.level_class } %></td>
<td><%= compact_time(feedback.created_at) %></td>
<td><%= format_text(feedback.body) %></td>
<td>
<% if CurrentUser.user.is_moderator? %>
<%= link_to "delete", user_feedback_path(feedback), :method => :delete %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
<%= numbered_paginator(@user_feedbacks) %>
<%= render "secondary_links" %>
</div>
</div>
<% content_for(:page_title) do %>
Edit Feedback - <%= Danbooru.config.app_name %>
<% end %>