Skip to content

Commit

Permalink
Rename "Downtime" tab to "Unsigned Blocks" for validator addresses (#977
Browse files Browse the repository at this point in the history
)
  • Loading branch information
shazarre authored Oct 17, 2023
1 parent 2779d49 commit 09a4951
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
<a href="#" class="alert-link"><%= gettext "Connection Lost, click to load newer blocks" %></a>
</div>
</div>
<h2 class="card-title"><%=gettext("Downtime")%></h2>
<h2 class="card-title"><%=gettext("Unsigned Blocks")%></h2>

<%= 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 %>

<div data-empty-response-message class="tile tile-muted text-center" style="display: none;">
<span><%= gettext "There are no downtime blocks for this address." %></span>
<span><%= gettext "There are no unsigned blocks for this address." %></span>
</div>
<button data-error-message class="alert alert-danger col-12 text-left" style="display: none;">
<span class="alert-link">
Expand Down
18 changes: 11 additions & 7 deletions apps/block_scout_web/priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -3468,8 +3468,6 @@ msgstr ""
msgid "Domain"
msgstr ""

#: lib/block_scout_web/templates/address/_tabs.html.eex:41
#: lib/block_scout_web/templates/address_signed/index.html.eex:23
#: lib/block_scout_web/templates/block_signers/index.html.eex:27
#, elixir-autogen, elixir-format
msgid "Downtime"
Expand Down Expand Up @@ -3722,11 +3720,6 @@ msgstr ""
msgid "The requested path was not found on BlockScout."
msgstr ""

#: lib/block_scout_web/templates/address_signed/index.html.eex:28
#, elixir-autogen, elixir-format
msgid "There are no downtime blocks for this address."
msgstr ""

#: lib/block_scout_web/templates/address_epoch_transaction/index.html.eex:40
#, elixir-autogen, elixir-format
msgid "There are no epoch transactions for this address."
Expand Down Expand Up @@ -3885,3 +3878,14 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "sent to Community Fund for this transaction. Equals Block Base Fee per Gas * Gas Used."
msgstr ""

#: lib/block_scout_web/templates/address/_tabs.html.eex:41
#: lib/block_scout_web/templates/address_signed/index.html.eex:23
#, elixir-autogen, elixir-format
msgid "Unsigned Blocks"
msgstr ""

#: lib/block_scout_web/templates/address_signed/index.html.eex:28
#, elixir-autogen, elixir-format
msgid "There are no unsigned blocks for this address."
msgstr ""
18 changes: 11 additions & 7 deletions apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -3468,8 +3468,6 @@ msgstr ""
msgid "Domain"
msgstr ""

#: lib/block_scout_web/templates/address/_tabs.html.eex:41
#: lib/block_scout_web/templates/address_signed/index.html.eex:23
#: lib/block_scout_web/templates/block_signers/index.html.eex:27
#, elixir-autogen, elixir-format
msgid "Downtime"
Expand Down Expand Up @@ -3722,11 +3720,6 @@ msgstr ""
msgid "The requested path was not found on BlockScout."
msgstr ""

#: lib/block_scout_web/templates/address_signed/index.html.eex:28
#, elixir-autogen, elixir-format, fuzzy
msgid "There are no downtime blocks for this address."
msgstr ""

#: lib/block_scout_web/templates/address_epoch_transaction/index.html.eex:40
#, elixir-autogen, elixir-format, fuzzy
msgid "There are no epoch transactions for this address."
Expand Down Expand Up @@ -3885,3 +3878,14 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "sent to Community Fund for this transaction. Equals Block Base Fee per Gas * Gas Used."
msgstr ""

#: lib/block_scout_web/templates/address/_tabs.html.eex:41
#: lib/block_scout_web/templates/address_signed/index.html.eex:23
#, elixir-autogen, elixir-format
msgid "Unsigned Blocks"
msgstr ""

#: lib/block_scout_web/templates/address_signed/index.html.eex:28
#, elixir-autogen, elixir-format, fuzzy
msgid "There are no unsigned blocks for this address."
msgstr ""

0 comments on commit 09a4951

Please sign in to comment.