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