From 6c54648697e0f45076760c88143992980f926508 Mon Sep 17 00:00:00 2001 From: Cesium-Ice Date: Thu, 26 Dec 2024 03:38:58 -0800 Subject: [PATCH] add admin nav menu --- app/views/admin/_header.html.erb | 11 +++++++++-- config/locales/views/en.yml | 6 +++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/views/admin/_header.html.erb b/app/views/admin/_header.html.erb index 9c7ae29136..5571f3f3fe 100644 --- a/app/views/admin/_header.html.erb +++ b/app/views/admin/_header.html.erb @@ -67,8 +67,15 @@ <% if policy(:wrangling).full_access? %>
  • <%= link_to t(".nav.wrangling"), tag_wranglings_path %>
  • <% end %> - <% if policy(Locale).index? %> -
  • <%= link_to t(".nav.locales"), locales_path %>
  • + <% if policy(Locale).index? || policy(LocaleLanguage).index? || policy(Language).index? %> + <% end %> <% if policy(AdminActivity).index? %> diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 7dfe2bcb1b..e81517240f 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -275,7 +275,11 @@ en: queue: Manage Queue requests: Manage Requests label: Admin - locales: Locales + locales_and_languages: + locale_languages: Locale Languages + locales: Locales + menu: Locales and Languages + work_languages: Work Languages posts: admin_posts: Admin Posts faqs: Archive FAQ