]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/list.rhtml
Add a stylesheet targeted at print media to get nice printouts.
[rails.git] / app / views / diary_entry / list.rhtml
index 873528bd8138e08a45358cb8d0da4b9bbc464040..a7aa84c6f232cb6ea18e348fb7f5688340ce59bc 100644 (file)
@@ -1,8 +1,12 @@
 <% if @this_user %>
-  <h2><%= link_to @this_user.display_name, :controller => 'user', :action => 'view', :display_name => @this_user.display_name %>'s diary</h2>
-
-  <% if @user and @this_user.id == @user.id %>
-    <%= link_to 'new post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
+  <h2><%= @this_user.display_name %>'s diary</h2>
+  <% if @user == @this_user %>
+    <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
+  <% end %>
+<% else %>
+  <h2>Users' diaries</h2>
+  <% if @user %>
+    <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
   <% end %>
 <% end %>