diff --git a/apps/block_scout_web/assets/package-lock.json b/apps/block_scout_web/assets/package-lock.json
index a03732e4e0..36068a9e80 100644
--- a/apps/block_scout_web/assets/package-lock.json
+++ b/apps/block_scout_web/assets/package-lock.json
@@ -4333,8 +4333,7 @@
"version": "2.1.1",
"resolved": false,
"integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
- "dev": true,
- "optional": true
+ "dev": true
},
"aproba": {
"version": "1.2.0",
@@ -4799,8 +4798,7 @@
"version": "5.1.1",
"resolved": false,
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==",
- "dev": true,
- "optional": true
+ "dev": true
},
"safer-buffer": {
"version": "2.1.2",
@@ -4864,7 +4862,6 @@
"resolved": false,
"integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
"dev": true,
- "optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@@ -4913,15 +4910,13 @@
"version": "1.0.2",
"resolved": false,
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
- "dev": true,
- "optional": true
+ "dev": true
},
"yallist": {
"version": "3.0.2",
"resolved": false,
"integrity": "sha1-hFK0u36Dx8GI2AQcGoN8dz1ti7k=",
- "dev": true,
- "optional": true
+ "dev": true
}
}
},
diff --git a/apps/block_scout_web/lib/block_scout_web/templates/block/overview.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/block/overview.html.eex
index 65e785920f..289fb7b230 100644
--- a/apps/block_scout_web/lib/block_scout_web/templates/block/overview.html.eex
+++ b/apps/block_scout_web/lib/block_scout_web/templates/block/overview.html.eex
@@ -4,11 +4,11 @@
-
+
<%= gettext("%{block_type} Details", block_type: block_type(@block)) %>
-
+
<%= if block_type(@block) == "Block" do %>
<%= gettext("Block Height: %{height}", height: @block.number) %> <%= if @block.number == 0, do: "- " <> gettext("Genesis Block")%>
<% else %>
@@ -35,8 +35,9 @@
- - <%= gettext "Hash" %>
- - <%= to_string(@block.hash) %>
+ - <%= gettext "Hash" %>
+
+ - <%= to_string(@block.hash) %>
<%= unless @block.number == 0 do %>
@@ -44,11 +45,13 @@
- <%= gettext "Parent Hash" %>
-
+
<%= link(
@block.parent_hash,
class: "transaction__link",
to: block_path(@conn, :show, @block.number - 1)
) %>
+
<% end %>
@@ -56,8 +59,8 @@
- <%= gettext "Difficulty" %>
- -
- <%= @block.difficulty |> BlockScoutWeb.Cldr.Number.to_string! %>
+
-
+ <%= @block.difficulty |> BlockScoutWeb.Cldr.Number.to_string! %>
@@ -65,13 +68,13 @@
- <%= gettext "Total Difficulty" %>
- - <%= @block.total_difficulty |> BlockScoutWeb.Cldr.Number.to_string! %>
+ - <%= @block.total_difficulty |> BlockScoutWeb.Cldr.Number.to_string! %>
- <%= gettext "Nonce" %>
- - <%= to_string(@block.nonce) %>
+ - <%= to_string(@block.nonce) %>
<%= if length(@block.uncle_relations) > 0 do %>
@@ -94,17 +97,17 @@
<%= if show_reward?(@block.rewards) do %>
-
+
- <%= gettext "Gas Used" %>
-
<%= @block.gas_used |> BlockScoutWeb.Cldr.Number.to_string! %>
- (<%= (Decimal.to_integer(@block.gas_used) / Decimal.to_integer(@block.gas_limit)) |> BlockScoutWeb.Cldr.Number.to_string!(format: "#.#%") %>)
+ (<%= (Decimal.to_integer(@block.gas_used) / Decimal.to_integer(@block.gas_limit)) |> BlockScoutWeb.Cldr.Number.to_string!(format: "#.#%") %>)
- <%= gettext "Gas Limit" %>
-
- <%= BlockScoutWeb.Cldr.Number.to_string!(@block.gas_limit) %>
+ <%= BlockScoutWeb.Cldr.Number.to_string!(@block.gas_limit) %>
<% end %>
@@ -121,7 +124,7 @@
<%= gettext "Miner" %>
-
+
<%= render BlockScoutWeb.AddressView,
"_link.html",
address: @block.miner,
@@ -133,8 +136,10 @@
-
-
+
+
<%= if show_reward?(@block.rewards) do %>
<%= gettext "Block Rewards" %>