1 <% content_for :heading do %>
2 <div <% if @this_user %> id="userinformation"<% end %> >
4 <%= user_image @this_user %>
6 <h1><%= h(@title) %></h1>
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 %>
37 <% if @entries.size < @page_size -%>
38 <%= t('diary_entry.list.older_entries') %>
40 <%= link_to t('diary_entry.list.older_entries'), @params.merge(:page => @page + 1 ) %>
46 <%= link_to t('diary_entry.list.newer_entries'), @params.merge(:page => @page - 1) %>
48 <%= t('diary_entry.list.newer_entries') %>
52 <% unless params[:friends] or params[:nearby] -%>
53 <% content_for :auto_discovery_link_tag do -%>
54 <%= auto_discovery_link_tag :rss, :action => 'rss', :language => params[:language] %>