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 %>
32 <ul class="pagination">
33 <% if @entries.size >= @page_size -%>
34 <li class="page-item">
35 <%= link_to t(".older_entries"), @params.merge(:page => @page + 1), :class => "page-link" %>
38 <li class="page-item disabled">
39 <span class="page-link"><%= t(".older_entries") %></span>
44 <li class="page-item">
45 <%= link_to t(".newer_entries"), @params.merge(:page => @page - 1), :class => "page-link" %>
48 <li class="page-item disabled">
49 <span class="page-link"><%= t(".newer_entries") %></span>
56 <% unless params[:friends] or params[:nearby] -%>
57 <% content_for :auto_discovery_link_tag do -%>
58 <%= auto_discovery_link_tag :rss, :action => "rss", :language => params[:language] %>