summaryrefslogtreecommitdiff
path: root/app/views/nodes
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.local>2009-03-18 11:36:10 +0100
committererdgeist <erdgeist@bauklotz.local>2009-03-18 11:36:10 +0100
commitd957a33a0d50f00c1968c5d12e728bd73ea186b3 (patch)
tree8d7ecce1fc6c82abea10b8b8be868a92746cbd89 /app/views/nodes
parentce55ed022fd373af58f7bd25cdd3f092f5698c54 (diff)
parentca08b36ca6bd874abbb7207495860eeeb53884e0 (diff)
Merge branch 'master' of ssh://git@svn.medienhaus.udk-berlin.de/usr/local/git/cccms
Diffstat (limited to 'app/views/nodes')
-rw-r--r--app/views/nodes/edit.html.erb2
-rw-r--r--app/views/nodes/index.html.erb7
-rw-r--r--app/views/nodes/show.html.erb8
3 files changed, 12 insertions, 5 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb
index 2dade0f..577a075 100644
--- a/app/views/nodes/edit.html.erb
+++ b/app/views/nodes/edit.html.erb
@@ -2,6 +2,8 @@
2 <%= link_to 'Show', @node %> 2 <%= link_to 'Show', @node %>
3 <%= link_to 'Back', nodes_path %> 3 <%= link_to 'Back', nodes_path %>
4 <%= link_to 'Publish', publish_node_path, :method => :put %> 4 <%= link_to 'Publish', publish_node_path, :method => :put %>
5 <%= link_to 'Diff revisions', :controller => :revisions, :action => :diff, :id => params[:id] %>
6
5</div> 7</div>
6 8
7<h1>Editing page</h1> 9<h1>Editing page</h1>
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb
index a2a42b1..ad60498 100644
--- a/app/views/nodes/index.html.erb
+++ b/app/views/nodes/index.html.erb
@@ -23,15 +23,16 @@
23 <td><%= node.unique_name %></td> 23 <td><%= node.unique_name %></td>
24 <td> 24 <td>
25 <%= link_to 'Show', node_path(node) %> 25 <%= link_to 'Show', node_path(node) %>
26 <%= link_to 'Edit', edit_node_path(node) %> 26 <%= link_to 'Edit', edit_node_path(node) %>
27 <%= link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %> 27 <%= link_to 'Revision', :controller => :revisions, :action => :show, :id => node.id %>
28 <%# link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %>
28 <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %> 29 <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %>
29 </td> 30 </td>
30 <td> 31 <td>
31 <%= "#{node.draft.user.login}" if node.draft && node.draft.user %> 32 <%= "#{node.draft.user.login}" if node.draft && node.draft.user %>
32 </td> 33 </td>
33 <td> 34 <td>
34 <%= node.head.revision if node.head %> 35 <%= node.pages.length %>
35 </td> 36 </td>
36 </tr> 37 </tr>
37 <% end %> 38 <% end %>
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb
index 67dd7fc..bbbefe9 100644
--- a/app/views/nodes/show.html.erb
+++ b/app/views/nodes/show.html.erb
@@ -1,5 +1,9 @@
1<h1>Node</h1> 1<h1>Node</h1>
2 2<p>
3There is no draft to preview. Click <%= link_to 'edit', edit_node_path %> to 3There is no draft to preview. Click <%= link_to 'edit', edit_node_path %> to
4create one or view the currently 4create one or view the currently
5<%= link_to_path 'published version', @node.unique_path %>. \ No newline at end of file 5<%= link_to_path 'published version', @node.unique_path %>.
6</p>
7<p>
8 View the revisions of this node
9</p> \ No newline at end of file