mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-06-28 01:07:03 +00:00
Updated indentation
This commit is contained in:
parent
1a68ad1344
commit
15cb2f705a
@ -1,8 +1,8 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if wireguard_instances %}
|
{% if wireguard_instances %}
|
||||||
<div class="card card-primary card-outline">
|
<div class="card card-primary card-outline">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
{% for wgconf in wireguard_instances %}
|
{% for wgconf in wireguard_instances %}
|
||||||
@ -78,10 +78,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Peer Preview Modal -->
|
<!-- Peer Preview Modal -->
|
||||||
<div class="modal fade" id="peerPreviewModal" tabindex="-1" aria-labelledby="peerPreviewModalLabel" aria-hidden="true">
|
<div class="modal fade" id="peerPreviewModal" tabindex="-1" aria-labelledby="peerPreviewModalLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
@ -108,22 +108,22 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="alert alert-warning" role="alert">
|
<div class="alert alert-warning" role="alert">
|
||||||
<h4 class="alert-heading">No WireGuard Instances Found</h4>
|
<h4 class="alert-heading">No WireGuard Instances Found</h4>
|
||||||
<p>There are no WireGuard instances configured. You can add a new instance by clicking the button below.</p>
|
<p>There are no WireGuard instances configured. You can add a new instance by clicking the button below.</p>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<a href="/server/manage/" class="btn btn-primary">Add WireGuard Instance</a>
|
<a href="/server/manage/" class="btn btn-primary">Add WireGuard Instance</a>
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block custom_page_scripts %}
|
{% block custom_page_scripts %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Function to open the peer preview modal and fetch its details
|
// Function to open the peer preview modal and fetch its details
|
||||||
function openPeerModal(uuid) {
|
function openPeerModal(uuid) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -154,9 +154,9 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
//const fetchWireguardStatus = async () => {
|
//const fetchWireguardStatus = async () => {
|
||||||
// try {
|
// try {
|
||||||
@ -268,13 +268,10 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function openImageLightbox(url) {
|
function openImageLightbox(url) {
|
||||||
window.open(url, 'Image', 'width=500,height=500,toolbar=0,location=0,menubar=0');
|
window.open(url, 'Image', 'width=500,height=500,toolbar=0,location=0,menubar=0');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user