Browse Source

fix template errors for unconfirmed transactions

fix-133-memory-crash
Dan Janosik 8 years ago
parent
commit
f5c0a9b125
  1. 7
      views/transaction.pug

7
views/transaction.pug

@ -14,6 +14,8 @@ block content
a(href="/")
strong #{host}
span :#{port}
if (result.getrawtransaction.blockhash)
li(class="breadcrumb-item")
a(href=("/block/" + result.getrawtransaction.blockhash)) Block #{result.getblock.height}
li(class="breadcrumb-item active") Transaction
@ -61,6 +63,7 @@ block content
th(class="table-active properties-header") Included in Block
td
a(href=("/block/" + result.getrawtransaction.blockhash)) #{result.getrawtransaction.blockhash}
if (result.getblock && result.getblock.height)
span(class="text-muted") (#{result.getblock.height})
tr
@ -107,8 +110,8 @@ block content
tr
th(class="table-active properties-header") Confirmations
td
if (result.getrawtransaction.confirmations == 0)
strong(class="text-danger") #{result.getrawtransaction.confirmations} (Unconfirmed!)
if (!result.getrawtransaction.confirmations || result.getrawtransaction.confirmations == 0)
strong(class="text-danger") 0 (unconfirmed)
else if (result.getrawtransaction.confirmations < 6)
strong(class="text-warning") #{result.getrawtransaction.confirmations}
else

Loading…
Cancel
Save