From 2ea79e21a04b71434a233cda13fddcaceca40e1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20de=20Metz?= Date: Tue, 12 May 2020 11:37:43 +0200 Subject: [PATCH] Add link to my diary in the diary index. --- app/views/diary_entries/index.html.erb | 4 ++++ config/locales/en.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/app/views/diary_entries/index.html.erb b/app/views/diary_entries/index.html.erb index 1940e798b..96c052da6 100644 --- a/app/views/diary_entries/index.html.erb +++ b/app/views/diary_entries/index.html.erb @@ -13,6 +13,10 @@ <% if @user && @user == current_user || !@user && current_user %>
  • <%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %>
  • <% end %> + + <% if !@user && current_user %> +
  • <%= link_to t(".my_diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %>
  • + <% end %> <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index f9ea78ef3..1ee3f2378 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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 -- 2.39.5