From 27ebc0d46b3656bee5da44cc82cb941d55c87ebe Mon Sep 17 00:00:00 2001 From: Leszek Stachowski Date: Mon, 16 Oct 2023 11:57:26 +0200 Subject: [PATCH 1/2] Rename "Downtime" tab to "Unsigned Blocks" for validator addresses --- .../lib/block_scout_web/templates/address/_tabs.html.eex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex index e913383c1420..236ac97f7d5f 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex @@ -38,7 +38,7 @@ ) %> <%= if BlockScoutWeb.AddressView.is_validator_signer?(@address) do %> <%= link( - gettext("Downtime"), + gettext("Unsigned Blocks"), class: "card-tab #{tab_status("signed", @conn.request_path)}", "data-test": "signed_tab_link", to: AccessHelpers.get_path(@conn, :address_signed_path, :index, @address.hash) From 4deba2fba088cc3a3f6fbc7bc75538fb57a3ef12 Mon Sep 17 00:00:00 2001 From: Leszek Stachowski Date: Mon, 16 Oct 2023 12:27:53 +0200 Subject: [PATCH 2/2] change page title/text as well + mix gettext --- .../templates/address_signed/index.html.eex | 4 ++-- apps/block_scout_web/priv/gettext/default.pot | 18 +++++++++++------- .../priv/gettext/en/LC_MESSAGES/default.po | 18 +++++++++++------- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address_signed/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address_signed/index.html.eex index 97c82a2644af..2eb50df87119 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address_signed/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address_signed/index.html.eex @@ -20,12 +20,12 @@ <%= gettext "Connection Lost, click to load newer blocks" %> -

<%=gettext("Downtime")%>

+

<%=gettext("Unsigned Blocks")%>

<%= render BlockScoutWeb.CommonComponentsView, "_pagination_container.html", position: "top", cur_page_number: "1", show_pagination_limit: true, data_next_page_button: true, data_prev_page_button: true %>