Added start of templating for Tor and ports etc

Also added the missing example and fixed some HTML
This commit is contained in:
2024-05-27 23:55:00 +01:00
parent 07fe0ca003
commit 8d1535f75a
2 changed files with 31 additions and 3 deletions

View File

@@ -96,6 +96,24 @@
<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>
{% if connection_info %}
<div class="infocard">
<h2>Connectivity</h2>
{% if connection_info.tor %}
<h3>Tor</h3>
<p>URL: <span class="node_data">{# connection_info.tor.url #}</span></p>
<p>Restricted RPC Port: <span class="node_data">{# connection_info.tor.restricted_rpc_port #}</span></p>
<p>P2P Port: <span class="node_data">{# connection_info.tor.p2p_port #}</span></p>
{% endif %}
{% if connection_info.clear %}
<h3>Clear Web</h3>
<p>URL: <span class="node_data">{# connection_info.clear_url #}</span></p>
<p>Restricted RPC Port: <span class="node_data">{# connection_info.clear.restricted_rpc_port #}</span></p>
<p>P2P Port: <span class="node_data">{# connection_info.clear.p2p_port #}</span></p>
{% endif %}
</div>
{% endif %}
</div>
</div>
<h1>Monerod Status</h1>
@@ -158,7 +176,6 @@
</tbody>
</table>
</div>
<hr>
{{__tera_context}}
{#__tera_context#}
</body>
</html>