Browse Source
I'll add to the list over time, but I'm happy with the structure.fix-133-memory-crash
Dan Janosik
7 years ago
5 changed files with 104 additions and 42 deletions
@ -0,0 +1,45 @@ |
|||||
|
extends layout |
||||
|
|
||||
|
block headContent |
||||
|
title Bitcoin History |
||||
|
|
||||
|
block content |
||||
|
h1(class="h2") Bitcoin History |
||||
|
hr |
||||
|
|
||||
|
:markdown-it |
||||
|
Below is a list of fun/interesting things in the Bitcoin blockchain. Some are historical firsts, others are just fun or cool. |
||||
|
|
||||
|
table(class="table table-striped table-responsive-sm mt-4") |
||||
|
thead |
||||
|
tr |
||||
|
th(class="data-header") Date |
||||
|
th(class="data-header") Description |
||||
|
th(class="data-header") Link |
||||
|
th(class="data-header") Reference |
||||
|
tbody |
||||
|
each item, index in historicalData |
||||
|
tr |
||||
|
td(class="data-cell") #{item.date} |
||||
|
|
||||
|
td(class="data-cell") #{item.note} |
||||
|
|
||||
|
td(class="data-cell monospace") |
||||
|
if (item.type == "tx") |
||||
|
a(href=("/tx/" + item.txid)) Tx:#{item.txid.substring(0, 23)}... |
||||
|
else if (item.type == "block") |
||||
|
a(href=("/block/" + item.blockHash)) Block:#{item.blockHash.substring(0, 20)}... |
||||
|
|
||||
|
td(class="data-cell") |
||||
|
if (item.referenceUrl && item.referenceUrl.trim().length > 0) |
||||
|
- var matches = item.referenceUrl.match(/^https?\:\/\/([^\/:?#]+)(?:[\/:?#]|$)/i); |
||||
|
|
||||
|
- var domain = null; |
||||
|
- var domain = matches && matches[1]; |
||||
|
|
||||
|
if (domain) |
||||
|
a(href=item.referenceUrl, rel="nofollow") #{domain} |
||||
|
else |
||||
|
a(href=item.referenceUrl, rel="nofollow") Reference |
||||
|
else |
||||
|
span - |
@ -1,28 +0,0 @@ |
|||||
extends layout |
|
||||
|
|
||||
block headContent |
|
||||
title Interesting Transactions |
|
||||
|
|
||||
block content |
|
||||
h1(class="h2") Interesting Transactions |
|
||||
hr |
|
||||
|
|
||||
table(class="table table-striped table-responsive-sm mt-4") |
|
||||
thead |
|
||||
tr |
|
||||
th(class="data-header") Note |
|
||||
th(class="data-header") TxID |
|
||||
th(class="data-header") Read More |
|
||||
tbody |
|
||||
each tx, index in interestingTransactions |
|
||||
tr |
|
||||
td(class="data-cell") #{tx.note} |
|
||||
|
|
||||
td(class="data-cell monospace") |
|
||||
a(href=("/tx/" + tx.txid)) #{tx.txid.substring(0, 25)}... |
|
||||
|
|
||||
td(class="data-cell") |
|
||||
if (tx.referenceUrl && tx.referenceUrl.trim().length > 0) |
|
||||
a(href=tx.referenceUrl) Read More |
|
||||
else |
|
||||
span - |
|
Loading…
Reference in new issue