Move new diary entry link to the end

This commit is contained in:
Anton Khorev 2024-01-03 13:18:08 +03:00
parent f4d84c4806
commit 57d4b3d8ce

View file

@ -20,13 +20,13 @@
<li><%= link_to t(".in_language_title", :language => language.name), :action => "index", :language => language.code %></li>
<% end %>
<% if @user && @user == current_user || !@user && current_user %>
<li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></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", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
<% end %>
</ul>
</nav>
</div>