From 55800bf0565f392a48b6d3a673da60525aad423b Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 21 Feb 2009 14:55:39 +0100 Subject: wiring together some views to make basic navigation in the admin interface possible --- app/views/admin/index.html.erb | 5 +---- app/views/layouts/admin.html.erb | 7 ++++++- app/views/nodes/show.html.erb | 13 ++++--------- 3 files changed, 11 insertions(+), 14 deletions(-) (limited to 'app/views') diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb index 0a9874f..e23e69b 100644 --- a/app/views/admin/index.html.erb +++ b/app/views/admin/index.html.erb @@ -1,5 +1,2 @@

Admin#index

-

Find me in app/views/admin/index.html.erb

- - -<%= link_to 'nodes', :controller => :nodes, :action => :index %> \ No newline at end of file +

Find me in app/views/admin/index.html.erb

\ No newline at end of file diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index 93ac0a5..2bde5dd 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb @@ -25,7 +25,12 @@ +
+ <%= flash[:notice] %>
<%= yield :layout %> diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index bbf11c0..dd37c28 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb @@ -1,10 +1,5 @@ -

Nodes

+

Node

- - <% @nodes.each do |node| %> - - - - - <% end %> -
<%= link_to node.unique_name, node_path(node) %><%= link_to 'Edit', edit_node_path(node) %>
\ No newline at end of file +<%= @node.unique_name %> + +<%= link_to 'Edit', edit_node_path %> \ No newline at end of file -- cgit v1.3