From 288b8e110418a334296275a3edf0a50969d68c75 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 3 Apr 2024 11:36:42 +0300 Subject: [PATCH] Add "Blocks on Me" nav tab to block list/show pages --- app/views/user_blocks/_navigation.html.erb | 7 +++++++ config/locales/en.yml | 1 + 2 files changed, 8 insertions(+) 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" -- 2.39.5