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="tile tile-type-block d-flex flex-column"> |
||||
<div class="tile tile-type-block n-p d-flex flex-column"> |
||||
<%= link( |
||||
@block, |
||||
class: "tile-title", |
||||
to: block_path(BlockScoutWeb.Endpoint, :show, @block), |
||||
"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="text-nowrap" data-from-now="<%= @block.timestamp %>"> </span> |
||||
</div> |
||||
<span class="text-truncate"> |
||||
<div class="text-truncate"> |
||||
<%= gettext "Miner" %> |
||||
|
||||
<%= render BlockScoutWeb.AddressView, |
||||
"_link.html", |
||||
address: @block.miner, |
||||
contract: false %> |
||||
</span> |
||||
</div> |
||||
|
||||
<%= if BlockScoutWeb.BlockView.show_reward?(@block.rewards) do %> |
||||
<span class="text-truncate"> |
||||
<div class="text-truncate"> |
||||
<%= gettext "Reward" %> |
||||
|
||||
<%= BlockScoutWeb.BlockView.combined_rewards_value(@block) %> |
||||
</span> |
||||
</div> |
||||
<% end %> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
Loading…
Reference in new issue