forked from blockparty-sh/slp-explorer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaddress_burn_tx.ejs
33 lines (33 loc) · 1.23 KB
/
address_burn_tx.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<tr>
<td>
<a class="txid" href="/#tx/<%= tx.graphTxn.txid %>"><%= app.util.compress_txid(tx.graphTxn.txid) %></a>
<button class="copybtn" data-clipboard-text="<%= tx.graphTxn.txid %>"></button>
</td>
<td class="amount">
<%= app.util.format_bignum_str(total_burnt) %>
</td>
<td>
<div class="flex-vcenter">
<span class="token-icon-small" data-tokenid="<%= tx.token[0].tokenDetails.tokenIdHex %>" data-tokengroup="<%= tx.token[0].nftParentId %>"></span>
<% if (tx.token[0].tokenDetails.symbol.length > 0) { %>
<a href="/#token/<%= tx.token[0].tokenDetails.tokenIdHex %>"><%= tx.token[0].tokenDetails.name %> $<%= tx.token[0].tokenDetails.symbol %></a>
<% } else { %>
<span class="mono"><a href="/#token/<%= tx.token[0].tokenDetails.tokenIdHex %>" data-i18n="none"></a></span>
<% } %>
</div>
</td>
<td>
<% if (tx.tx && tx.tx.blk) { %>
<a href="/#block/<%= tx.tx.blk.i %>"><%= tx.tx.blk.i %></a>
<% } else { %>
<a href="/#block/mempool" data-i18n="pending"></a>
<% } %>
</td>
<td>
<% if (tx.tx && tx.tx.blk) { %>
<%= new Date(tx.tx.blk.t*1000).toLocaleString() %>
<% } else { %>
<span data-i18n="pending"></span>
<% } %>
</td>
</tr>