mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-06-28 01:07:03 +00:00
improve peer list
This commit is contained in:
parent
b11ccb44ba
commit
da0fc7ed3c
@ -15,7 +15,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content" id="custom-content-below-tabContent">
|
<div class="tab-content" id="custom-content-below-tabContent">
|
||||||
<div class="tab-pane fade show active" id="custom-content-below-home" role="tabpanel" aria-labelledby="custom-content-below-home-tab">
|
<div class="tab-pane fade show active" id="custom-content-below-home" role="tabpanel" aria-labelledby="custom-content-below-home-tab">
|
||||||
<div class="row">
|
<div class="row" style="padding-top: 15px">
|
||||||
{% for peer in peer_list %}
|
{% for peer in peer_list %}
|
||||||
<div class="col-md-6" id="peer-{{ peer.public_key }}" data-uuid="{{ peer.uuid }}">
|
<div class="col-md-6" id="peer-{{ peer.public_key }}" data-uuid="{{ peer.uuid }}">
|
||||||
<div class="callout">
|
<div class="callout">
|
||||||
@ -70,7 +70,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% if add_peer_enabled %}
|
{% if add_peer_enabled %}
|
||||||
<a class="btn btn-primary" href="/peer/manage/?instance={{ current_instance.uuid }}">Create Peer</a>
|
<a class="btn btn-primary" href="/peer/manage/?instance={{ current_instance.uuid }}" onclick="return confirm('Are you sure you want to create a new peer?');">Create Peer</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="btn btn-primary disabled" href="">Create Peer</a>
|
<a class="btn btn-primary disabled" href="">Create Peer</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -177,6 +177,7 @@
|
|||||||
$(".qr-code-content").hide();
|
$(".qr-code-content").hide();
|
||||||
$(".info-content").show();
|
$(".info-content").show();
|
||||||
$("#qrCodeImg").attr("src", "");
|
$("#qrCodeImg").attr("src", "");
|
||||||
|
$('#graphImg').attr('src', '').hide();
|
||||||
// Find the peer element by its data-uuid attribute
|
// Find the peer element by its data-uuid attribute
|
||||||
var peerElem = document.querySelector('[data-uuid="' + uuid + '"]');
|
var peerElem = document.querySelector('[data-uuid="' + uuid + '"]');
|
||||||
if (peerElem) {
|
if (peerElem) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user