]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/list.rhtml
Improve the layout of the browse sidebar a bit.
[rails.git] / app / views / diary_entry / list.rhtml
index 4fd5e7bc26f6dd4af4d057e70e0e3654ec49f386..e648e46f21c21b4cce6e02eeb56a4edccba84546 100644 (file)
@@ -1,7 +1,7 @@
-<h2><%= @title %></h2>
+<h2><%= h(@title) %></h2>
 
-<% if @user.image %>
- <%= image_tag url_for_file_column(@user, "image") %>
+<% if @this_user && @this_user.image %>
+ <%= image_tag url_for_file_column(@this_user, "image") %>
 <% end %>
 
 <br />
@@ -28,5 +28,5 @@
 
 <br />
 
-<%= link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), :action => 'rss') %>
-<%= auto_discovery_link_tag(:atom, :action => 'rss') %>
+<%= rss_link_to :action => 'rss' %>
+<%= auto_discovery_link_tag :atom, :action => 'rss' %>