summaryrefslogtreecommitdiff
path: root/app/views/pages
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-02-07 15:51:29 +0100
committerhukl <hukl@eight.local>2009-02-07 15:51:29 +0100
commit5f976b4483609fbcd32236c92459df2527c30947 (patch)
tree42b27fbc3c63fbb0bad0ba2eca9da516c609c692 /app/views/pages
parent36a2f1f3c085dd81171cf7d8220770d4ff921ab3 (diff)
added new helper code to create links for a given
node path.
Diffstat (limited to 'app/views/pages')
-rw-r--r--app/views/pages/index.html.erb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/views/pages/index.html.erb b/app/views/pages/index.html.erb
index 41c8bae..f5918f0 100644
--- a/app/views/pages/index.html.erb
+++ b/app/views/pages/index.html.erb
@@ -13,10 +13,7 @@
13 <tr> 13 <tr>
14 <td><%=h page.node_id %></td> 14 <td><%=h page.node_id %></td>
15 <td><%=h page.title %></td> 15 <td><%=h page.title %></td>
16 <td><%=h page.abstract %></td> 16 <td><%= link_to 'Show', link_to_path(page.node.unique_path) %></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> 17 <td><%= link_to 'Edit', edit_page_path(page) %></td>
21 <td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td> 18 <td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td>
22 </tr> 19 </tr>