<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>