parent
72e887a777
commit
0466761253
@ -1,30 +1,32 @@ |
|||||||
<div class="col-lg-3 fade-up-blocks-chain" data-selector="chain-block" data-block-number="<%= @block.number %>"> |
<div class="col-lg-3 fade-up-blocks-chain" data-selector="chain-block" data-block-number="<%= @block.number %>"> |
||||||
<div class="tile tile-type-block d-flex flex-column"> |
<div class="tile tile-type-block n-p d-flex flex-column"> |
||||||
<%= link( |
<%= link( |
||||||
@block, |
@block, |
||||||
class: "tile-title", |
class: "tile-title", |
||||||
to: block_path(BlockScoutWeb.Endpoint, :show, @block), |
to: block_path(BlockScoutWeb.Endpoint, :show, @block), |
||||||
"data-selector": "block-number" |
"data-selector": "block-number" |
||||||
) %> |
) %> |
||||||
<div> |
<div class="tile-bottom-contents"> |
||||||
|
<div class="tile-transactions"> |
||||||
<span class="mr-2"> <%= gettext("%{count} Transactions", count: Enum.count(@block.transactions)) %> </span> |
<span class="mr-2"> <%= gettext("%{count} Transactions", count: Enum.count(@block.transactions)) %> </span> |
||||||
<span class="text-nowrap" data-from-now="<%= @block.timestamp %>"> </span> |
<span class="text-nowrap" data-from-now="<%= @block.timestamp %>"> </span> |
||||||
</div> |
</div> |
||||||
<span class="text-truncate"> |
<div class="text-truncate"> |
||||||
<%= gettext "Miner" %> |
<%= gettext "Miner" %> |
||||||
|
|
||||||
<%= render BlockScoutWeb.AddressView, |
<%= render BlockScoutWeb.AddressView, |
||||||
"_link.html", |
"_link.html", |
||||||
address: @block.miner, |
address: @block.miner, |
||||||
contract: false %> |
contract: false %> |
||||||
</span> |
</div> |
||||||
|
|
||||||
<%= if BlockScoutWeb.BlockView.show_reward?(@block.rewards) do %> |
<%= if BlockScoutWeb.BlockView.show_reward?(@block.rewards) do %> |
||||||
<span class="text-truncate"> |
<div class="text-truncate"> |
||||||
<%= gettext "Reward" %> |
<%= gettext "Reward" %> |
||||||
|
|
||||||
<%= BlockScoutWeb.BlockView.combined_rewards_value(@block) %> |
<%= BlockScoutWeb.BlockView.combined_rewards_value(@block) %> |
||||||
</span> |
</div> |
||||||
<% end %> |
<% end %> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
</div> |
||||||
|
Loading…
Reference in new issue