summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-03-02 17:22:48 +0100
committerhukl <contact@smyck.org>2009-03-02 17:22:48 +0100
commit113449eacba67625004b14081f4cc0cc3b984553 (patch)
tree1114418aa27ffc3f815a05caba16c4d80395163f /app/views
parentddc961fd81b37b44078fba35f0769b661e1e81ce (diff)
added unlock functionality. not yet hooked up with permissions though. anybody can unlock. put a confirmation in front of it. destroy has to be confirmed as well
Diffstat (limited to 'app/views')
-rw-r--r--app/views/nodes/index.html.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb
index 1429d1a..833ffed 100644
--- a/app/views/nodes/index.html.erb
+++ b/app/views/nodes/index.html.erb
@@ -23,7 +23,8 @@
23 <td> 23 <td>
24 <%= link_to 'Show', node_path(node) %> 24 <%= link_to 'Show', node_path(node) %>
25 <%= link_to 'Edit', edit_node_path(node) %> 25 <%= link_to 'Edit', edit_node_path(node) %>
26 <%= link_to 'Destroy', node, :method => :delete %> 26 <%= link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %>
27 <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %>
27 </td> 28 </td>
28 <td> 29 <td>
29 <%= "#{node.draft.user.login}" if node.draft && node.draft.user %> 30 <%= "#{node.draft.user.login}" if node.draft && node.draft.user %>