mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
25 lines
568 B
Elixir
25 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>
|