generated from nathanwoodburn/python-webserver-template
feat: Add link for payout txs
This commit is contained in:
@@ -420,7 +420,7 @@ def pool_miner():
|
||||
return jsonify(
|
||||
{
|
||||
"address": address,
|
||||
"updated_at": datetime.utcnow().isoformat() + "Z",
|
||||
"updated_at": datetime.now(UTC).isoformat(),
|
||||
"summary": {
|
||||
"matching_workers": len(matching_workers),
|
||||
"hashrate": total_hashrate,
|
||||
@@ -460,4 +460,4 @@ def not_found(e):
|
||||
|
||||
# endregion
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True, port=5000, host="0.0.0.0")
|
||||
app.run(debug=True, port=5000, host="127.0.0.1")
|
||||
|
||||
@@ -277,6 +277,16 @@ th {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.txid-link {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: 12px;
|
||||
}
|
||||
.txid-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@media (min-width: 920px) {
|
||||
.panel.split {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
|
||||
@@ -330,7 +330,7 @@
|
||||
<td data-label="Address">${p.address || "-"}</td>
|
||||
<td data-label="Amount (FBC)">${fmtFbc(Number(p.amount || 0) / 1000000)}</td>
|
||||
<td data-label="Status"><span class="pill ${String(p.status || "pending").toLowerCase()}">${p.status || "pending"}</span></td>
|
||||
<td data-label="TXID" title="${p.txid || ""}">${shortTxid(p.txid)}</td>
|
||||
<td data-label="TXID" title="${p.txid || ""}"><a href="https://explorer.fistbump.org/tx/${p.txid}" target="_blank" rel="noopener" class="txid-link">${shortTxid(p.txid)}</a></td>
|
||||
<td data-label="Time">${fmtTime(p.time)}</td>
|
||||
</tr>
|
||||
`),
|
||||
|
||||
Reference in New Issue
Block a user