1 <% content_for :heading do %>
2 <div <% if @user %> id="userinformation"<% end %>>
4 <%= user_image @user %>
8 <ul class='secondary-actions clearfix'>
9 <% unless params[:friends] or params[:nearby] -%>
10 <li><%= rss_link_to :action => "rss", :language => params[:language] %></li>
13 <% if @user && @user == current_user || !@user && current_user %>
14 <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
17 <% if !@user && current_user %>
18 <li><%= link_to t(".my_diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %></li>
24 <% if @entries.empty? %>
25 <h4><%= t ".no_entries" %></h4>
27 <h4><%= t ".recent_entries" %></h4>
29 <%= render @entries %>
31 <div class="pagination">
32 <% if @entries.size < @page_size -%>
33 <%= t(".older_entries") %>
35 <%= link_to t(".older_entries"), @params.merge(:page => @page + 1) %>
41 <%= link_to t(".newer_entries"), @params.merge(:page => @page - 1) %>
43 <%= t(".newer_entries") %>
48 <% unless params[:friends] or params[:nearby] -%>
49 <% content_for :auto_discovery_link_tag do -%>
50 <%= auto_discovery_link_tag :rss, :action => "rss", :language => params[:language] %>