Show nil block.size as N/A bytes

pull/4810/head
nikitosing 3 years ago
parent c8b3d281f5
commit 8506b0e923
  1. 1
      CHANGELOG.md
  2. 2
      apps/block_scout_web/lib/block_scout_web/templates/block/overview.html.eex
  3. 5
      apps/block_scout_web/priv/gettext/default.pot
  4. 7
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

@ -23,6 +23,7 @@
- [#4579](https://github.com/blockscout/blockscout/pull/4579) - Write contract page: Resize inputs; Improve multiplier selector
### Fixes
- [#4810](https://github.com/blockscout/blockscout/pull/4810) - Show `nil` block.size as `N/A bytes`
- [#4798](https://github.com/blockscout/blockscout/pull/4798) - Token instance View contract icon Safari fix
- [#4796](https://github.com/blockscout/blockscout/pull/4796) - Fix nil.timestamp issue
- [#4764](https://github.com/blockscout/blockscout/pull/4764) - Add cleaning of substrings of `require` messages from parsed constructor arguments

@ -107,7 +107,7 @@
text: gettext("Size of the block in bytes.") %>
<%= gettext("Size") %>
</dt>
<dd class="col-sm-9 col-lg-10"><%= Cldr.Unit.new(:byte, @block.size) |> cldr_unit_to_string!() %></dd>
<dd class="col-sm-9 col-lg-10"><%= if !is_nil(@block.size), do: (Cldr.Unit.new(:byte, @block.size) |> cldr_unit_to_string!()), else: gettext("N/A bytes") %></dd>
</dl>
<!-- Hash -->
<dl class="row">

@ -3216,3 +3216,8 @@ msgstr ""
#: lib/block_scout_web/templates/address_token/overview.html.eex:66
msgid "Shows the total CRC balance in the address."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/block/overview.html.eex:110
msgid "N/A bytes"
msgstr ""

@ -3212,7 +3212,12 @@ msgstr ""
msgid "CRC Worth"
msgstr ""
#, elixir-format, fuzzy
#, elixir-format
#: lib/block_scout_web/templates/address_token/overview.html.eex:66
msgid "Shows the total CRC balance in the address."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/block/overview.html.eex:110
msgid "N/A bytes"
msgstr ""

Loading…
Cancel
Save