Refactor the link to create a new entry diary.

This commit is contained in:
François de Metz 2020-05-12 11:27:08 +02:00
parent 8cae0dfb65
commit 43385325a8
No known key found for this signature in database
GPG key ID: E1FA0E57091784E3

View file

@ -10,14 +10,8 @@
<li><%= rss_link_to :action => "rss", :language => params[:language] %></li>
<% end -%>
<% if @user %>
<% if @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 %>
<% else %>
<% if 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 && @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>
</div>