Improve sip API error handling

This commit is contained in:
Mononaut
2023-08-25 16:40:03 +09:00
parent 8bc1eaebc0
commit 6852319e4d
3 changed files with 33 additions and 9 deletions

View File

@@ -79,12 +79,14 @@
<td><%= data.block.merkle_root %></td>
</tr>
</table>
<h2><%= data.transactions.length %> Transactions</h2>
<ol>
<% data.transactions.forEach((txid, i) => { %>
<li><a href="/tx/<%= txid %>"><%= txid %></a><% if (i === 0) { %> (Coinbase)<% } %></li>
<% }); %>
</ol>
<% if (data.transactions) { %>
<h2><%= data.transactions.length %> Transactions</h2>
<ol>
<% data.transactions.forEach((txid, i) => { %>
<li><a href="/tx/<%= txid %>"><%= txid %></a><% if (i === 0) { %> (Coinbase)<% } %></li>
<% }); %>
</ol>
<% } %>
</div>
<%- include('footer'); %>
</body>

View File

@@ -1,3 +1,4 @@
<br><hr><br>
<app-global-footer>
<footer>
<div class="container-fluid">