forked from blockparty-sh/slp-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblock_tx.ejs
28 lines (28 loc) · 1.14 KB
/
block_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
<tr>
<td>
<a class="txid" href="/#tx/<%= tx.tx.h %>"><%= app.util.compress_txid(tx.tx.h) %></a>
<button class="copybtn" data-clipboard-text="<%= tx.tx.h %>"></button>
</td>
<td><%= app.util.transaction_type_trans(tx.slp.detail.transactionType) %></td>
<td class="amount">
<% if (tx.slp.detail.transactionType === 'SEND') { %>
<%= app.extract_sent_amount_from_tx(tx); %>
<% } %>
<% if (tx.slp.detail.transactionType === 'GENESIS'
|| tx.slp.detail.transactionType === 'MINT') { %>
<%= tx.slp.detail.outputs[0].amount %>
<% } %>
</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.slp.detail.tokenIdHex %>">
<%= tx.token[0].tokenDetails.name %> $<%= tx.token[0].tokenDetails.symbol %>
</a>
<% } else { %>
<span class="mono"><a href="/#token/<%= tx.slp.detail.tokenIdHex %>" data-i18n="none"></a></span>
<% } %>
</div>
</td>
</tr>