Add link to my diary in the diary index.

This commit is contained in:
François de Metz 2020-05-12 11:37:43 +02:00
parent 43385325a8
commit 2ea79e21a0
No known key found for this signature in database
GPG key ID: E1FA0E57091784E3
2 changed files with 5 additions and 0 deletions

View file

@ -13,6 +13,10 @@
<% 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 %>
</ul>
</div>
<% end %>

View file

@ -373,6 +373,7 @@ en:
in_language_title: "Diary Entries in %{language}"
new: New Diary Entry
new_title: Compose a new entry in my user diary
my_diary: My Diary
no_entries: No diary entries
recent_entries: "Recent diary entries"
older_entries: Older Entries