Added in some display for the node_info

And cleaned up a couple of things.
Started on the pretty printing of some of the Monerod stuff
This commit is contained in:
2024-05-26 16:35:08 +01:00
parent e04351ca3d
commit 39cfdbfe4c
3 changed files with 47 additions and 8 deletions

View File

@@ -18,6 +18,13 @@
font-weight: bold;
color: red;
}
span.success {
font-weight: bold;
color: green;
}
.warning {
color: yellow;
}
</style>
</head>
<body>
@@ -61,7 +68,30 @@
</div>
<h1>Monerod Status</h1>
<div class="monerodstatus">
<
<div class="monerodinfocard">
{% if node_info.synchronized %}
<p><span class="success">Synchronised</span> to {{ node_info.nettype }}</p>
{% else %}
<p><span class="warning">Synchronising</span> to {{ node_info.nettype }}</p>
{% endif %}
<p> Running version {{ node_info.version }}
{% if node_info.update_available %}
<p class="warning">Which can be updated</p>
{% endif %}
</div>
<div class="monerodinfocard">
<p>Txs in pool: <span>{{ node_info.tx_pool_size }}</span></p>
<p>Total Txs: <span>{{ node_info.tx_count }}</span></p>
</div>
<div class="moneroinfocard">
<p>Incoming Connections: <span>{{ node_info.incoming_connections_count }}</span></p>
<p>Outgoing Connections: <span>{{ node_info.outgoing_connections_count }}</span></p>
<p>RPC Connections: <span>{{ node_info.rpc_connections_count }}</span></p>
</div>
<div class="moneroinfocard">
<p>Blockheight: <span>{{ node_info.height }}</span></p>
<p>Latest block hash: <span>{{ node_info.top_block_hash }}</span></p>
</div>
</div>
<h1>Node Peers</h1>