38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
<h2><%= t("admin.comments.index.title") %></h2>
|
|
|
|
<!-- Filters for pending and archived comments (example on "/admin/organizations/index.html.erb")-->
|
|
<dl class="sub-nav">
|
|
<dt><%= t("admin.comments.index.filter") %>:</dt>
|
|
<dd class="active"><%= t("admin.comments.filters.all") %></dd>
|
|
<dd><%= t("admin.comments.filters.pending") %></dd>
|
|
<dd><%= t("admin.comments.filters.archived") %></dd>
|
|
</dl>
|
|
<!-- Filters for pending and archived comments (example on "/admin/organizations/index.html.erb")-->
|
|
|
|
<h3><%= page_entries_info @comments %></h3>
|
|
|
|
<ul class="admin-list">
|
|
<% @comments.each do |comment| %>
|
|
<li id="<%= dom_id(comment) %>">
|
|
<div class="row">
|
|
<div class="small-12 medium-8 column">
|
|
<%= comment.body %>
|
|
<!-- Link to debate of this comment -->
|
|
<%= link_to t("admin.comments.index.show_debate"), "#" %>
|
|
<!-- /. Link to debate of this comment -->
|
|
</div>
|
|
<div class="small-6 medium-4 column text-right">
|
|
<!-- Link to archive this comment -->
|
|
<%= link_to t("admin.actions.archive"), "#", class: "button radius tiny warning" %>
|
|
<!-- /. Link to archive this comment -->
|
|
<%= link_to t("admin.actions.restore"), restore_admin_comment_path(comment),
|
|
method: :put, data: { confirm: t("admin.actions.confirm") },
|
|
class: "button radius tiny success" %>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
|
|
<%= paginate @comments %>
|