forked from spen/seminar
25 lines
865 B
Plaintext
25 lines
865 B
Plaintext
|
<table class="table main-list">
|
||
|
<thead>
|
||
|
<tr class="sort-header">
|
||
|
<% @table_feed_fields.each do |f| %>
|
||
|
<%= thead(f) %>
|
||
|
<% end %>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @comments.each do |comment| %>
|
||
|
<tr>
|
||
|
<td><%= comment.time %></td>
|
||
|
<td><%= comment.comment.html_safe %></td>
|
||
|
<td>
|
||
|
<%= comment.account %>
|
||
|
<% comment.roles.each do |role| %>
|
||
|
<span class="label"><%= role.title rescue '' %></span>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
<td><%= comment.ip %></td>
|
||
|
<td><%= button_tag (comment.is_hidden ? t('show') : t('is_hidden')), type: 'button',"data-href" => "/#{I18n.locale}/admin/annc-comment-hidden/#{comment.id}",:onclick => "update_status(this)" ,class: (comment.is_hidden ? 'btn btn-primary' : 'btn btn-info') %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|