From: Anton Khorev Date: Wed, 3 Apr 2024 08:42:49 +0000 (+0300) Subject: Add "Blocks by Me" nav tab to block list/show pages X-Git-Tag: live~670^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/1861bcf640c70def4563c500ae9f6f814ac729c6 Add "Blocks by 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 63f882f6c..b7cc19ecf 100644 --- a/app/views/user_blocks/_navigation.html.erb +++ b/app/views/user_blocks/_navigation.html.erb @@ -11,4 +11,11 @@ :class => ["nav-link", { :active => action_name == "blocks_on" && current_user == @user }] %> <% end %> + <% if current_user&.blocks_created&.exists? %> + + <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 72e2ea05c..de2a4f89c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2988,6 +2988,7 @@ en: navigation: all_blocks: "All Blocks" blocks_on_me: "Blocks on Me" + blocks_by_me: "Blocks by Me" user_mutes: index: title: "Muted Users"