From 1692a120a0a96f7649dc7da1cf4649635975b6ef Mon Sep 17 00:00:00 2001
From: Espen Antonsen
<%= link_to("Delete user", { :action => "destroy", :id => @user },
- :confirm => "Are you sure you want to delete this user?",
- :method => :delete) %>
-
<%= link_to "All users", users_path %>
\ No newline at end of file
+
+<% content_for :action_links do %>
+<%= link_to("Delete user", { :action => "destroy", :id => @user },
+ :confirm => "Are you sure you want to delete this user?",
+ :method => :delete) %>
+<% end %>
\ No newline at end of file
diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb
index f30cfc3..4c74ef2 100644
--- a/app/views/admin/users/index.html.erb
+++ b/app/views/admin/users/index.html.erb
@@ -2,4 +2,6 @@
<%= link_to user.name || user.email , user %>
<% end %>
-
<%= link_to "New user", new_user_path %>
\ No newline at end of file
+<% content_for :action_links do %>
+<%= link_to "New user", new_user_path %>
+<% end %>
\ No newline at end of file
diff --git a/app/views/admin/users/new.html.erb b/app/views/admin/users/new.html.erb
index 72387ee..fd293b1 100644
--- a/app/views/admin/users/new.html.erb
+++ b/app/views/admin/users/new.html.erb
@@ -4,6 +4,4 @@
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Register" %>
-<% end %>
-
-
<%= link_to "All users", users_path %>
\ No newline at end of file
+<% end %>
\ No newline at end of file
diff --git a/app/views/admin/users/show.html.erb b/app/views/admin/users/show.html.erb
index bbc6bb1..507e2cc 100644
--- a/app/views/admin/users/show.html.erb
+++ b/app/views/admin/users/show.html.erb
@@ -39,6 +39,7 @@
<%=h @user.current_login_ip %>