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 %>
 
  15           <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
 
  19           <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
 
  26 <% if @entries.empty? %>
 
  27   <h4><%= t ".no_entries" %></h4>
 
  29   <h4><%= t ".recent_entries" %></h4>
 
  31   <%= render @entries %>
 
  33   <div class="pagination">
 
  34     <% if @entries.size < @page_size -%>
 
  35       <%= t(".older_entries") %>
 
  37       <%= link_to t(".older_entries"), @params.merge(:page => @page + 1) %>
 
  43       <%= link_to t(".newer_entries"), @params.merge(:page => @page - 1) %>
 
  45       <%= t(".newer_entries") %>
 
  50 <% unless params[:friends] or params[:nearby] -%>
 
  51   <% content_for :auto_discovery_link_tag do -%>
 
  52   <%= auto_discovery_link_tag :rss, :action => "rss", :language => params[:language] %>