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(
|
return jsonify(
|
||||||
{
|
{
|
||||||
"address": address,
|
"address": address,
|
||||||
"updated_at": datetime.utcnow().isoformat() + "Z",
|
"updated_at": datetime.now(UTC).isoformat(),
|
||||||
"summary": {
|
"summary": {
|
||||||
"matching_workers": len(matching_workers),
|
"matching_workers": len(matching_workers),
|
||||||
"hashrate": total_hashrate,
|
"hashrate": total_hashrate,
|
||||||
@@ -460,4 +460,4 @@ def not_found(e):
|
|||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
if __name__ == "__main__":
|
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);
|
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) {
|
@media (min-width: 920px) {
|
||||||
.panel.split {
|
.panel.split {
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
|
|||||||
@@ -330,7 +330,7 @@
|
|||||||
<td data-label="Address">${p.address || "-"}</td>
|
<td data-label="Address">${p.address || "-"}</td>
|
||||||
<td data-label="Amount (FBC)">${fmtFbc(Number(p.amount || 0) / 1000000)}</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="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>
|
<td data-label="Time">${fmtTime(p.time)}</td>
|
||||||
</tr>
|
</tr>
|
||||||
`),
|
`),
|
||||||
|
|||||||
Reference in New Issue
Block a user