diff options
Diffstat (limited to 'app/views/pages/index.html.erb')
| -rw-r--r-- | app/views/pages/index.html.erb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/views/pages/index.html.erb b/app/views/pages/index.html.erb new file mode 100644 index 00000000..41c8bae0 --- /dev/null +++ b/app/views/pages/index.html.erb | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | <h1>Listing pages</h1> | ||
| 2 | |||
| 3 | <table> | ||
| 4 | <tr> | ||
| 5 | <th>Node</th> | ||
| 6 | <th>Title</th> | ||
| 7 | <th>Abstract</th> | ||
| 8 | <th>Body</th> | ||
| 9 | <th>Revision</th> | ||
| 10 | </tr> | ||
| 11 | |||
| 12 | <% for page in @pages %> | ||
| 13 | <tr> | ||
| 14 | <td><%=h page.node_id %></td> | ||
| 15 | <td><%=h page.title %></td> | ||
| 16 | <td><%=h page.abstract %></td> | ||
| 17 | <td><%=h page.body %></td> | ||
| 18 | <td><%=h page.revision %></td> | ||
| 19 | <td><%= link_to 'Show', page %></td> | ||
| 20 | <td><%= link_to 'Edit', edit_page_path(page) %></td> | ||
| 21 | <td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td> | ||
| 22 | </tr> | ||
| 23 | <% end %> | ||
| 24 | </table> | ||
| 25 | |||
| 26 | <br /> | ||
| 27 | |||
| 28 | <%= link_to 'New page', new_page_path %> | ||
