feat(frontend): Conditionally render URI cards on sub page
This commit is contained in:
@ -107,37 +107,31 @@
|
|||||||
</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="qr-grid">
|
||||||
<div class="blocked-message">
|
{% for item in local_uris %}
|
||||||
<i class="fas fa-ban"></i>
|
<div class="qr-item">
|
||||||
<h3>Connections Disabled</h3>
|
<h3 class="qr-title">{{ item.label }}</h3>
|
||||||
<p>{{ usage_raw }}</p>
|
{% if item.qrcode %}
|
||||||
|
<img src="{{ item.qrcode }}" alt="{{ item.label }} QR Code" class="qrcode">
|
||||||
|
<button class="btn btn-secondary" onclick="copyToClipboard('{{ item.uri }}')">
|
||||||
|
<i class="fas fa-copy"></i> Copy URI
|
||||||
|
</button>
|
||||||
|
{% else %}
|
||||||
|
<p class="uri-unavailable">URI not available</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% endfor %}
|
||||||
<div class="qr-grid">
|
</div>
|
||||||
{% for item in local_uris %}
|
|
||||||
<div class="qr-item">
|
|
||||||
<h3 class="qr-title">{{ item.label }}</h3>
|
|
||||||
{% if item.qrcode %}
|
|
||||||
<img src="{{ item.qrcode }}" alt="{{ item.label }} QR Code" class="qrcode">
|
|
||||||
<button class="btn btn-secondary" onclick="copyToClipboard('{{ item.uri }}')">
|
|
||||||
<i class="fas fa-copy"></i> Copy URI
|
|
||||||
</button>
|
|
||||||
{% else %}
|
|
||||||
<p class="uri-unavailable">URI not available</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</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