legendary-doc-site/apps/content/lib/content_web/templates/wp_comment/index.html.eex
2020-07-22 19:22:44 +00:00

24 lines
738 B
Elixir

<h2>Listing comments</h2>
<table class="table">
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
<%= for comment <- @comments do %>
<tr>
<td class="text-right">
<span><%= link "Show", to: Routes.comment_path(@conn, :show, comment), class: "btn btn-default btn-xs" %></span>
<span><%= link "Edit", to: Routes.comment_path(@conn, :edit, comment), class: "btn btn-default btn-xs" %></span>
<span><%= link "Delete", to: Routes.comment_path(@conn, :delete, comment), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
</td>
</tr>
<% end %>
</tbody>
</table>
<span><%= link "New comment", to: Routes.comment_path(@conn, :new) %></span>