Skip to content

Commit

Permalink
Block/Transaction text updates
Browse files Browse the repository at this point in the history
-Locale string tx_hash was changed from "Hash" to "Tx Hash" to be clearer about which Hash it refers to
-TXid was renamed to "Tx Hash" throughout the site
-Removed the coin name from the tx hash label on the transaction page
-Removed the coin name from the block hash label on the block page and changed the text "block" to "Block Hash"
  • Loading branch information
joeuhren committed Jul 9, 2022
1 parent e7fcc64 commit 41a62c9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ module.exports = {
// add or update a single masternode
add_update_masternode(masternode, add, cb) {
if (masternode.proTxHash == null && masternode.txhash == null) {
console.log('Masternode update error: TXid is missing');
console.log('Masternode update error: Tx Hash is missing');

return cb(false);
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ exports.tx_description = "Viewing tx data from {1} block # {2}",
exports.tx_block_hash = "Block Hash",
exports.tx_recipients = "Recipients",
exports.tx_contributors = "Contributor(s)",
exports.tx_hash = "Hash",
exports.tx_hash = "Tx Hash",
exports.tx_address = "Address",
exports.tx_nonstandard = "NONSTANDARD TX",
exports.view_raw_tx_data = "View Raw Transaction Data",
Expand Down
2 changes: 1 addition & 1 deletion locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"tx_block_hash": "Block Hash",
"tx_recipients": "Recipients",
"tx_contributors": "Input Addresses",
"tx_hash": "Hash",
"tx_hash": "Tx Hash",
"tx_address": "Address",
"tx_nonstandard": "NONSTANDARD TX",
"view_raw_tx_data": "View Raw Transaction Data",
Expand Down
4 changes: 2 additions & 2 deletions views/block.pug
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ block content
if block.previousblockhash != null
a(href='/block/' + block.previousblockhash)
span.fa.fa-chevron-left.block-last(data-bs-toggle='tooltip', data-bs-placement='top', title=settings.locale.block_previous, style='color: var(--bs-body-color);')
strong.d-none.d-md-block #{settings.coin.symbol} block: #{block.hash}
strong.d-none.d-md-block #{settings.locale.tx_block_hash}: #{block.hash}
strong.d-block.d-md-none #{settings.locale.ex_summary}
else
strong.d-none.d-md-block(style='margin-left:10px;') #{settings.coin.symbol} #{settings.locale.ex_block}: #{block.hash}
strong.d-none.d-md-block(style='margin-left:10px;') #{settings.locale.tx_block_hash}: #{block.hash}
strong.d-block.d-md-none(style='margin-left:10px;') #{settings.locale.ex_summary}
if block.nextblockhash != null
a(href='/block/' + block.nextblockhash)
Expand Down
2 changes: 1 addition & 1 deletion views/tx.pug
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ block content
.cardSpacer.clearfix
.card.card-default.border-0.cardSpacer
.card-header
strong=settings.coin.symbol + ' TXid: ' + tx.txid
strong=settings.locale.tx_hash + ': ' + tx.txid
if settings.api_page.public_apis.rpc.getrawtransaction.enabled == true
a.d-none.d-md-inline(href=`/api/getrawtransaction?txid=${tx.txid}&decrypt=1`, style='color: var(--bs-body-color);')
span.fa.fa-info-circle.float-end(data-bs-toggle='tooltip', data-bs-placement='top', title=settings.locale.view_raw_tx_data)
Expand Down

0 comments on commit 41a62c9

Please sign in to comment.