Skip to content

Commit

Permalink
blockExplorerLink config
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy0803 committed Apr 9, 2024
1 parent 3219a00 commit a0cdad3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion www/app/templates/account/payouts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<tr>
<td>{{format-date-locale tx.timestamp}}</td>
<td>
<a href="https://etc.blockscout.com/tx/{{tx.tx}}" class="hash" rel="nofollow" target="_blank">{{tx.tx}}</a>
<a href="{{config.blockExplorerLink_tx}}{{tx.tx}}" class="hash" rel="nofollow" target="_blank">{{tx.tx}}</a>
</td>
<td>{{format-balance tx.amount}}</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions www/app/templates/blocks/block.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<tr>
<td>
{{#if block.uncle}}
<a href="https://etc.blockscout.com/block/{{block.uncleHeight}}" rel="nofollow" target="_blank">{{format-number
<a href="{{config.blockExplorerLink_uncle}}{{block.uncleHeight}}" rel="nofollow" target="_blank">{{format-number
block.height}}</a>
{{else}}
<a href="https://etc.blockscout.com/block/{{block.height}}" rel="nofollow" target="_blank">{{format-number
<a href="{{config.blockExplorerLink_block}}{{block.height}}" rel="nofollow" target="_blank">{{format-number
block.height}}</a>
{{/if}}
</td>
Expand Down
2 changes: 1 addition & 1 deletion www/app/templates/blocks/pending.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<tbody>
{{#each model.candidates as |block|}}
<tr>
<td><a href="https://etc.blockscout.com/block/{{block.height}}" rel="nofollow" target="_blank">{{format-number
<td><a href="{{config.blockExplorerLink_block}}{{block.height}}" rel="nofollow" target="_blank">{{format-number
block.height}}</a></td>
<td>{{#link-to 'account' block.finder class='hash'}}{{block.finder}}{{/link-to}}</td>
<td>{{format-date-locale block.timestamp}}</td>
Expand Down
4 changes: 2 additions & 2 deletions www/app/templates/payments.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
<td>{{format-date-locale tx.timestamp}}</td>
<td>{{format-number tx.formatAmount}}</td>
<td>
<a href="https://etc.blockscout.com/address/{{tx.address}}" class="hash" rel="nofollow"
<a href="{{config.blockExplorerLink_address}}{{tx.address}}" class="hash" rel="nofollow"
target="_blank">{{wallet tx.address}}</a>
</td>
<td>
<a href="https://etc.blockscout.com/tx/{{tx.tx}}" class="hash" rel="nofollow" target="_blank">{{format-tx
<a href="{{config.blockExplorerLink_tx}}{{tx.tx}}" class="hash" rel="nofollow" target="_blank">{{format-tx
tx.tx}}</a>
</td>
</tr>
Expand Down
6 changes: 6 additions & 0 deletions www/config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ module.exports = function (environment) {
StratumHost: '192.168.178.41',
StratumPort: 8008,

blockExplorerLink: 'https://explorer.test.network/',
blockExplorerLink_tx: 'https://explorer.test.network/tx/',
blockExplorerLink_uncle: 'https://explorer.test.network/uncles/',
blockExplorerLink_block: 'https://etc.explorer.com/block/',
blockExplorerLink_address: 'https://explorer.test.network/address/',

// The ETC network
Unit: 'ETC',
Mining: 'SOLO',
Expand Down
9 changes: 0 additions & 9 deletions www/translations/en-us.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
links:
blockExplorerLink: 'https://explorer.test.network/'
blockExplorerLink_tx: 'https://explorer.test.network/tx/'
blockExplorerLink_uncle: 'https://explorer.test.network/uncles/'
blockExplorerLink_block: 'https://etc.blockscout.com/block/'
blockExplorerLink_address: 'https://explorer.test.network/address/'
wallet:
dapp_html: <a href="https://test.io/nautilus-wallet/#download">https://test.io/nautilus-wallet/#download</a>
online_html: <a href="https://wallet.test.io/">https://wallet.test.io</a> official online test wallet

errors:
header: Stats API Temporarily Down
Expand Down

0 comments on commit a0cdad3

Please sign in to comment.