Added Latest Blocks and improved network ifs
This commit is contained in:
@@ -18,16 +18,29 @@
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
}
|
||||
span.success {
|
||||
.success {
|
||||
font-weight: bold;
|
||||
color: green;
|
||||
}
|
||||
.warning {
|
||||
color: yellow;
|
||||
}
|
||||
.error {
|
||||
color: red;
|
||||
}
|
||||
.node_data {
|
||||
font-family: monospace, monospace;
|
||||
}
|
||||
table {
|
||||
border: 2px solid;
|
||||
}
|
||||
thead {
|
||||
|
||||
}
|
||||
th, td {
|
||||
border: 1px solid;
|
||||
padding: 7px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -77,7 +90,10 @@
|
||||
<p>Total Received Today: <span class="node_data">{{ network_if.total_received_today }}</span></p>
|
||||
<p>Average Rate: <span class="node_data">{{ network_if.average_rate_today }}</span></p>
|
||||
{% endfor %}
|
||||
<p>
|
||||
{% for network_if in system.network_ifs_errored %}
|
||||
<h3 class="error">interface <span class="node_data">{{ network_if[0] }}</span> has an error</h3>
|
||||
<p>Error: <span class="node_data">{{ network_if[1] }}</span></p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<h1>Monerod Status</h1>
|
||||
@@ -114,10 +130,33 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h1>Node Peers</h1>
|
||||
<div class="nodelist">
|
||||
|
||||
<h1>Latest 20 Blocks</h1>
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Height</th>
|
||||
<th scope="col">Size</th>
|
||||
<th scope="col">Transactions</th>
|
||||
<th scope="col">Timestamp (UTC)</th>
|
||||
<th scope="col">Hash</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{% for block in latest_twenty_blocks | reverse %}
|
||||
<tr>
|
||||
<th scope="row" class="node_data">{{ block.height }}</th>
|
||||
<td class="node_data">{{ block.block_size }}</td>
|
||||
<td class="node_data">{{ block.num_txes }}</td>
|
||||
<td class="node_data">{{ block.timestamp_pretty }}</td>
|
||||
<td class="node_data">{{ block.hash }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
{{__tera_context}}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user