From: Anton Khorev Date: Wed, 3 Apr 2024 08:36:42 +0000 (+0300) Subject: Add "Blocks on Me" nav tab to block list/show pages X-Git-Tag: live~652^2~3 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/288b8e110418a334296275a3edf0a50969d68c75?hp=a57472d28203459b0765e08a4bd004050b97e0ed Add "Blocks on Me" nav tab to block list/show pages --- diff --git a/app/views/user_blocks/_navigation.html.erb b/app/views/user_blocks/_navigation.html.erb index 5ca67afe5..63f882f6c 100644 --- a/app/views/user_blocks/_navigation.html.erb +++ b/app/views/user_blocks/_navigation.html.erb @@ -4,4 +4,11 @@ user_blocks_path, :class => ["nav-link", { :active => action_name == "index" }] %> + <% if current_user&.blocks&.exists? %> + + <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index d4fedb46e..72e2ea05c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2987,6 +2987,7 @@ en: newer: "Newer Blocks" navigation: all_blocks: "All Blocks" + blocks_on_me: "Blocks on Me" user_mutes: index: title: "Muted Users"