summaryrefslogtreecommitdiff
path: root/app/views/nodes
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-10-17 23:32:18 +0200
committerhukl <contact@smyck.org>2009-10-17 23:32:18 +0200
commit443947a319692e0462024c99f06e4d18ab5f0344 (patch)
tree652caf728cb07d0eebb3777482f8c1408a32cac0 /app/views/nodes
parentc7c4b007621fd28c88b65db5fd3296ef730097d9 (diff)
changed some node related methods and implementation of unlock
Diffstat (limited to 'app/views/nodes')
-rw-r--r--app/views/nodes/index.html.erb6
-rw-r--r--app/views/nodes/show.html.erb4
2 files changed, 4 insertions, 6 deletions
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb
index d78a997..46c58f6 100644
--- a/app/views/nodes/index.html.erb
+++ b/app/views/nodes/index.html.erb
@@ -20,10 +20,8 @@
20 <p><%= link_to_path(node.unique_name, node.unique_name) %></p> 20 <p><%= link_to_path(node.unique_name, node.unique_name) %></p>
21 </td> 21 </td>
22 <td class="actions"> 22 <td class="actions">
23 <%= link_to 'show', node_path(node) %> 23 <%= link_to 'show', node_path(node) %>
24 <%= link_to 'Revisions', node_revisions_path(node) %> 24 <%= link_to 'Revisions', node_revisions_path(node) %>
25 <%# link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %>
26 <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %>
27 </td> 25 </td>
28 <td> 26 <td>
29 <%= node.lock_owner.login if node.lock_owner %> 27 <%= node.lock_owner.login if node.lock_owner %>
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb
index 99fb264..87f65f5 100644
--- a/app/views/nodes/show.html.erb
+++ b/app/views/nodes/show.html.erb
@@ -2,7 +2,7 @@
2 <%= link_to 'Edit', edit_node_path(@node), :class => "unselected" %> 2 <%= link_to 'Edit', edit_node_path(@node), :class => "unselected" %>
3 <%= link_to 'Preview', preview_page_path(@page) %> 3 <%= link_to 'Preview', preview_page_path(@page) %>
4 <%= link_to 'Revisions', node_revisions_path(@node) %> 4 <%= link_to 'Revisions', node_revisions_path(@node) %>
5 <%= link_to 'Unlock', unlock_node_path(@node), :method => :put, :confirm => "Are you sure you want to unlock?" %> 5 <%= unlock_link if @node.locked? %>
6<% end %> 6<% end %>
7 7
8 8
@@ -19,7 +19,7 @@
19 <% if @page.node.locked? %> 19 <% if @page.node.locked? %>
20 <tr> 20 <tr>
21 <td class="description">Locked by</td> 21 <td class="description">Locked by</td>
22 <td><%= @page.node.lock_owner.login %></td> 22 <td><span class="warning"><%= @page.node.lock_owner.login %></span></td>
23 </tr> 23 </tr>
24 <% end %> 24 <% end %>
25 <tr> 25 <tr>