mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-02 23:57:59 +01:00
24 lines
568 B
Elixir
24 lines
568 B
Elixir
<h1>Listing Comments</h1>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<%= for comment <- @comments do %>
|
|
<tr>
|
|
|
|
<td>
|
|
<%= link "Show", to: Routes.comment_path(@conn, :show, comment) %>
|
|
<%= link "Edit", to: Routes.comment_path(@conn, :edit, comment) %>
|
|
<%= link "Delete", to: Routes.comment_path(@conn, :delete, comment), method: :delete, data: [confirm: "Are you sure?"] %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<span><%= link "New Comment", to: Routes.comment_path(@conn, :new) %></span>
|