summaryrefslogtreecommitdiff
path: root/app/views/pages
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pages')
-rw-r--r--app/views/pages/index.html.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/pages/index.html.erb b/app/views/pages/index.html.erb
index 91e5359..da67871 100644
--- a/app/views/pages/index.html.erb
+++ b/app/views/pages/index.html.erb
@@ -1,4 +1,4 @@
1<h1>Listing pages</h1> 1<h1>Pages</h1>
2 2
3<table> 3<table>
4 <tr> 4 <tr>
@@ -12,7 +12,9 @@
12 <td><%=h page.title %></td> 12 <td><%=h page.title %></td>
13 <td><%= link_to 'Show', content_path(:page_path => page.node.unique_path) %></td> 13 <td><%= link_to 'Show', content_path(:page_path => page.node.unique_path) %></td>
14 <td><%= link_to 'Edit', edit_page_path(page) %></td> 14 <td><%= link_to 'Edit', edit_page_path(page) %></td>
15 <td><%= button_to 'Destroy', page, method: :delete, form: { data: { confirm: 'Are you sure?' } } %></td> 15 <td><%= button_to page, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } do %>
16 <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy
17 <% end %></td>
16 </tr> 18 </tr>
17<% end %> 19<% end %>
18</table> 20</table>