1 <% content_for :heading do %>
2 <div <% if @this_user %> id="userinformation"<% end %> >
4 <%= user_image @this_user %>
6 <h2><%= h(@title) %></h2>
8 <ul class='secondary-actions clearfix'>
9 <% unless params[:friends] or params[:nearby] -%>
10 <li><%= rss_link_to :action => 'rss', :language => params[:language] %></li>
14 <%= if_user(@this_user) do %>
15 <li><%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('diary_entry.list.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('diary_entry.list.new_title')} %></li>
18 <%= if_logged_in do %>
19 <li><%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('diary_entry.list.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('diary_entry.list.new_title')} %></li>
26 <% if @entries.empty? %>
27 <h4><%= t 'diary_entry.list.no_entries' %></h4>
29 <h4><%= t 'diary_entry.list.recent_entries' %></h4>
32 <%= render :partial => 'diary_entry', :collection => @entries %>
34 <%= render :partial => 'diary_list_entry', :collection => @entries %>
38 <%= link_to t('diary_entry.list.older_entries'), params.merge(:page => @page - 1 ) %>
40 <%= t('diary_entry.list.older_entries') %>
45 <% if @entries.size < @page_size -%>
46 <%= t('diary_entry.list.newer_entries') %>
48 <%= link_to t('diary_entry.list.newer_entries'), params.merge(:page => @page + 1) %>
52 <% unless params[:friends] or params[:nearby] -%>
53 <% content_for :head do -%>
54 <%= auto_discovery_link_tag :atom, :action => 'rss', :language => params[:language] %>