]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/view.html.erb
More whitespace fixes. Attempting to get tests to pass.
[rails.git] / app / views / diary_entry / view.html.erb
index 5735188a7473ac6014cec17d1f6cfbbbd9e2961b..8bc2b64693aa34ecb90339c83d54d46ae8c960ea 100644 (file)
@@ -2,6 +2,7 @@
   <div id="userinformation" >
     <%= user_image @entry.user %>
     <h2><%= link_to t('diary_entry.view.user_title', :user => h(@entry.user.display_name)), :action => :list %></h2>
+    <p><%= rss_link_to :action => :rss, :display_name => @entry.user.display_name %></p>
   </div>
 <% end %>
 
@@ -9,7 +10,11 @@
 
 <a id="comments"></a>
 <div class='comments'>
-<%= render :partial => 'diary_comment', :collection => @entry.visible_comments %>
+  <% if @reported_comment %>
+    <%= render :partial => 'diary_comment', :collection => @reported_comment %>
+  <% else %>
+    <%= render :partial => 'diary_comment', :collection => @entry.visible_comments %>
+  <% end %>
 </div>
 <%= if_logged_in(:div) do %>
   <h3 id="newcomment"><%= t 'diary_entry.view.leave_a_comment' %></h3>
@@ -24,4 +29,8 @@
 
 <%= if_not_logged_in(:div) do %>
   <h3 id="newcomment"><%= raw t("diary_entry.view.login_to_leave_a_comment", :login_link => link_to(t("diary_entry.view.login"), :controller => 'user', :action => 'login', :referer => request.fullpath)) %></h3>
-<% end %>
\ No newline at end of file
+<% end %>
+
+<% content_for :auto_discovery_link_tag do -%>
+<%= auto_discovery_link_tag :rss, :action => :rss, :display_name => @entry.user.display_name %>
+<% end -%>