1 <% content_for :heading do %>
2 <div <% if @user %> id="userinformation"<% end %>>
4 <%= user_image @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 == current_user %>
16 <li><%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t(".new"), diary_new_path, :title => t(".new_title") %></li>
22 <li><%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t(".new"), diary_new_path, :title => t(".new_title") %></li>
30 <% if @entries.empty? %>
31 <h4><%= t ".no_entries" %></h4>
33 <h4><%= t ".recent_entries" %></h4>
36 <%= render :partial => "diary_entry", :collection => @entries %>
38 <%= render :partial => "diary_index_entry", :collection => @entries %>
41 <div class="pagination">
42 <% if @entries.size < @page_size -%>
43 <%= t(".older_entries") %>
45 <%= link_to t(".older_entries"), @params.merge(:page => @page + 1) %>
51 <%= link_to t(".newer_entries"), @params.merge(:page => @page - 1) %>
53 <%= t(".newer_entries") %>
58 <% unless params[:friends] or params[:nearby] -%>
59 <% content_for :auto_discovery_link_tag do -%>
60 <%= auto_discovery_link_tag :rss, :action => "rss", :language => params[:language] %>