feat(frontend): Conditionally render URI cards on sub page
This commit is contained in:
@ -107,19 +107,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="card uri-section {% if blocked %}blocked{% endif %}">
|
{% if local_uris and not blocked %}
|
||||||
|
<section class="card uri-section">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<i class="fas fa-server"></i>
|
<i class="fas fa-server"></i>
|
||||||
<h2>Manual Connection URIs</h2>
|
<h2>Manual Connection URIs</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
{% if blocked %}
|
|
||||||
<div class="blocked-message">
|
|
||||||
<i class="fas fa-ban"></i>
|
|
||||||
<h3>Connections Disabled</h3>
|
|
||||||
<p>{{ usage_raw }}</p>
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
<div class="qr-grid">
|
<div class="qr-grid">
|
||||||
{% for item in local_uris %}
|
{% for item in local_uris %}
|
||||||
<div class="qr-item">
|
<div class="qr-item">
|
||||||
@ -135,9 +129,9 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if node_uris and not blocked %}
|
{% if node_uris and not blocked %}
|
||||||
<section class="card uri-section">
|
<section class="card uri-section">
|
||||||
|
|||||||
Reference in New Issue
Block a user