<p>In app/views/diary_entry/list.html.erb:</p>
<pre style='color:#555'>> -<% if @this_user %>
> - <%= user_image @this_user %>
> -<% end %>
> -
> -<h2><%= h(@title) %></h2>
> -
> -<% if @this_user %>
> - <%= if_user(@this_user) do %>
> - <%= link_to image_tag("new.png", :border=>0) + t('diary_entry.list.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('diary_entry.list.new_title')} %>
> - <% end %>
> -<% else %>
> - <%= if_logged_in do %>
> - <%= link_to image_tag("new.png", :border=>0) + t('diary_entry.list.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('diary_entry.list.new_title')} %>
> +<% content_for :heading do %>
> +
> + <% if @this_user %><div id="userinformation"><% end %>
</pre>
<p>This is confusing. Can we conditionalize just the presence/absence of the <code>id</code> attribute rather than the entire tag structure?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
—<br>
Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/150/files#r2560592'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/Jshd8sI44GVrKZBvymxqKJq93CYNVBBdqrknFFP5ZEX4hHjJrsiHRGKHf7AELd8v.gif' height='1' width='1'>