From 73a87b1113394dc88ac9d2b7201987f4a5de16f9 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 15 May 2025 13:09:51 +0300 Subject: [PATCH] Add diary entries navigation template --- app/views/diary_entries/_navigation.html.erb | 26 ++++++++++++++++++ app/views/diary_entries/index.html.erb | 28 +------------------- config/locales/en.yml | 8 +++--- 3 files changed, 32 insertions(+), 30 deletions(-) create mode 100644 app/views/diary_entries/_navigation.html.erb diff --git a/app/views/diary_entries/_navigation.html.erb b/app/views/diary_entries/_navigation.html.erb new file mode 100644 index 000000000..01f37f27c --- /dev/null +++ b/app/views/diary_entries/_navigation.html.erb @@ -0,0 +1,26 @@ + diff --git a/app/views/diary_entries/index.html.erb b/app/views/diary_entries/index.html.erb index f6ef9bb59..1368a304d 100644 --- a/app/views/diary_entries/index.html.erb +++ b/app/views/diary_entries/index.html.erb @@ -9,33 +9,7 @@

<%= @title %>

- - + <%= render :partial => "navigation" %>
<% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index d0cca87e8..a77f46623 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -583,9 +583,6 @@ en: title_nearby: "Nearby Users' Diaries" user_title: "%{user}'s Diary" 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 page: recent_entries: "Recent diary entries" @@ -645,6 +642,11 @@ en: unsubscribe: heading: Unsubscribe from the following diary entry discussion? button: Unsubscribe from discussion + navigation: + in_language: "Diary Entries in %{language}" + my_diary: My Diary + new: New Diary Entry + new_title: Compose a new entry in my user diary diary_comments: new: heading: Add a comment to the following diary entry discussion? -- 2.39.5