- <h1><%= h(@title) %></h1>
-
- <ul class='secondary-actions clearfix'>
- <% unless params[:friends] or params[:nearby] -%>
- <li><%= rss_link_to :action => "rss", :language => params[:language] %></li>
- <% end -%>
-
- <% if @user %>
- <% if @user == current_user %>
- <div>
- <li><%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
- </div>
- <% end %>
- <% else %>
- <% if current_user %>
- <div>
- <li><%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
- </div>
- <% end %>
- <% end %>
- </ul>
+
+ <div class="col">
+ <h1><%= @title %></h1>
+
+ <nav class="secondary-actions">
+ <ul class="clearfix">
+ <% unless params[:friends] or params[:nearby] -%>
+ <li><%= rss_link_to :action => "rss", :language => params[:language] %></li>
+ <% end -%>
+
+ <% @languages&.each do |language| %>
+ <li><%= link_to t(".in_language_title", :language => language.name), :action => "index", :language => language.code %></li>
+ <% end %>
+
+ <% if !@user && current_user %>
+ <li><%= link_to t(".my_diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %></li>
+ <% end %>
+
+ <% if @user && @user == current_user || !@user && current_user %>
+ <li><%= link_to image_tag("new.png") + t(".new"), new_diary_entry_path, :class => "icon-link", :title => t(".new_title") %></li>
+ <% end %>
+ </ul>
+ </nav>
+ </div>