Browse Source

Update block.hbs

master
yuriy0803 2 years ago committed by GitHub
parent
commit
77ed13403d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 26
      www/app/templates/blocks/block.hbs

26
www/app/templates/blocks/block.hbs

@ -1,10 +1,10 @@
<tr> <tr>
<td> <td>
{{#if block.uncle}} {{#if block.uncle}}
<a href="https://expedition.dev/uncle/{{block.uncleHeight}}" rel="nofollow" target="_blank">{{format-number <a href="{{t " links.blockExplorerLink_uncle"}}{{block.uncleHeight}}" rel="nofollow" target="_blank">{{format-number
block.height}}</a> block.height}}</a>
{{else}} {{else}}
<a href="https://expedition.dev/block/{{block.height}}" rel="nofollow" target="_blank">{{format-number <a href="{{t " links.blockExplorerLink_block"}}{{block.height}}" rel="nofollow" target="_blank">{{format-number
block.height}}</a> block.height}}</a>
{{/if}} {{/if}}
</td> </td>
@ -12,11 +12,22 @@
{{#if block.uncle}} {{#if block.uncle}}
<td>{{#link-to 'account' block.finder class='hash'}}{{block.finder}}{{/link-to}}</td> <td>{{#link-to 'account' block.finder class='hash'}}{{block.finder}}{{/link-to}}</td>
{{else if block.orphan}} {{else if block.orphan}}
<span class="label label-danger">Orphan</span> <span class="label label-danger">{{t "block.orphan"}}</span>
{{else}} {{else}}
<td>{{#link-to 'account' block.finder class='hash'}}{{block.finder}}{{/link-to}}</td> <td>{{#link-to 'account' block.finder class='hash'}}{{block.finder}}{{/link-to}}</td>
{{/if}} {{/if}}
</td> </td>
<td>
{{#if block.uncle}}
<a href="{{t " links.blockExplorerLink_uncle"}}{{block.hash}}" class="hash" rel="nofollow"
target="_blank">{{block.hash}}</a>
{{else if block.orphan}}
<span class="label label-danger">{{t "block.orphan"}}</span>
{{else}}
<a href="{{t " links.blockExplorerLink_block"}}{{block.hash}}" class="hash" rel="nofollow"
target="_blank">{{block.hash}}</a>
{{/if}}
</td>
<td>{{format-date-locale block.timestamp}}</td> <td>{{format-date-locale block.timestamp}}</td>
<td> <td>
{{#if block.isLucky}} {{#if block.isLucky}}
@ -36,13 +47,6 @@
<span class="label label-primary">{{block.formatReward}}</span> <span class="label label-primary">{{block.formatReward}}</span>
{{/if}} {{/if}}
</td> </td>
<td>
{{#if block.uncle}}
<span class="label label-default">Uncle</span>
{{else if block.isOk}}
<span class="label label-primary">Block</span>
{{/if}}
</td>
<td>{{format-hashrate block.shareDiff}}</td> <td>{{format-hashrate block.shareDiff}}</td>
<td>{{block.worker}}</td> <td>{{block.worker}}</td>
</tr> </tr>

Loading…
Cancel
Save