From b9828d7dbd5bcc9adb1f3af15b27cebb46fb58d7 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 16 Aug 2024 13:27:10 +0300 Subject: [PATCH 1/1] Add navigation tabs to edit block pages --- app/views/user_blocks/_navigation.html.erb | 2 +- app/views/user_blocks/edit.html.erb | 9 +++------ config/locales/en.yml | 2 -- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/views/user_blocks/_navigation.html.erb b/app/views/user_blocks/_navigation.html.erb index f53f5cf28..f4f9b04f8 100644 --- a/app/views/user_blocks/_navigation.html.erb +++ b/app/views/user_blocks/_navigation.html.erb @@ -38,7 +38,7 @@ <% end %> diff --git a/app/views/user_blocks/edit.html.erb b/app/views/user_blocks/edit.html.erb index 88441a15d..12b875f2f 100644 --- a/app/views/user_blocks/edit.html.erb +++ b/app/views/user_blocks/edit.html.erb @@ -1,12 +1,9 @@ <% @title = t ".title", :name => @user_block.user.display_name %> + +<% content_for :heading_class, "pb-0" %> <% content_for :heading do %>

<%= t(".heading_html", :name => link_to(@user_block.user.display_name, @user_block.user)) %>

- + <%= render :partial => "navigation" %> <% end %> <%= bootstrap_form_for(@user_block) do |f| %> diff --git a/config/locales/en.yml b/config/locales/en.yml index c4cae4b22..a97eca9c0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2941,8 +2941,6 @@ en: title: "Editing block on %{name}" heading_html: "Editing block on %{name}" period: "How long, starting now, the user will be blocked from the API for." - show: "View this block" - back: "View all blocks" filter: block_period: "The blocking period must be one of the values selectable in the drop-down list." create: -- 2.39.5