Integrate custom CSS into base.html
This commit is contained in:
@ -14,13 +14,16 @@
|
|||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
||||||
<!-- Theme style -->
|
<!-- Theme style -->
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/3.2.0/css/adminlte.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/3.2.0/css/adminlte.min.css">
|
||||||
|
<!-- iCheck Bootstrap -->
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/icheck-bootstrap@3.0.1/icheck-bootstrap.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/icheck-bootstrap@3.0.1/icheck-bootstrap.min.css">
|
||||||
<!-- SweetAlert2 -->
|
<!-- SweetAlert2 -->
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
|
||||||
|
<!-- Custom CSS -->
|
||||||
|
<link rel="stylesheet" href="{{ url_for('assets', path='css/custom.css') }}">
|
||||||
{% block stylesheets %}{% endblock %}
|
{% block stylesheets %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="hold-transition sidebar-mini layout-footer-fixed sidebar-collapse">
|
<body class="hold-transition sidebar-mini sidebar-collapse">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
|
||||||
<!-- Navbar -->
|
<!-- Navbar -->
|
||||||
@ -116,28 +119,28 @@
|
|||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<footer class="main-footer">
|
<footer class="main-footer">
|
||||||
<div class="d-flex justify-content-between align-items-center">
|
<div class="d-flex justify-content-between align-items-center flex-wrap">
|
||||||
<div>
|
<div>
|
||||||
<a href="https://github.com/ReturnFI/Blitz" target="_blank" class="text-decoration-none">
|
<a href="https://github.com/ReturnFI/Blitz" target="_blank" class="text-decoration-none mr-2 mb-1 d-inline-block">
|
||||||
<span class="badge badge-secondary" style="font-size: 0.9rem;">
|
<img src="https://img.shields.io/badge/GitHub-Repository-181717?logo=github" alt="GitHub">
|
||||||
<i class="fab fa-github"></i> GitHub
|
</a>
|
||||||
</span>
|
<a href="https://t.me/hysteria2_panel" target="_blank" class="text-decoration-none mr-2 mb-1 d-inline-block">
|
||||||
</a>
|
<img src="https://img.shields.io/badge/Telegram-Channel-0088cc?logo=telegram" alt="Telegram">
|
||||||
<a href="https://t.me/hysteria2_panel" target="_blank" class="text-decoration-none ml-2 mr-2">
|
</a>
|
||||||
<span class="badge bg-primary" style="font-size: 0.9rem;">
|
<a href="https://github.com/ReturnFI/Blitz/releases" target="_blank" class="text-decoration-none mr-2 mb-1 d-inline-block">
|
||||||
<i class="fab fa-telegram"></i> Telegram
|
<img id="panel-version" src="https://img.shields.io/github/v/release/ReturnFI/Blitz?label=Release&logo=github" alt="Release Version">
|
||||||
</span>
|
</a>
|
||||||
</a>
|
</div>
|
||||||
<a href="https://github.com/ReturnFI/Blitz/releases" target="_blank" class="text-decoration-none ml-2 mr-2">
|
<div class="mb-1">
|
||||||
<span class="badge badge-success" style="font-size: 0.9rem;">
|
<strong>
|
||||||
<i class="fas fa-code-branch"></i> <span id="panel-version"></span>
|
<img src="https://img.shields.io/badge/Made%20with-%E2%9D%A4-red" alt="Made with Love">
|
||||||
</span>
|
</strong>
|
||||||
</a>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
|
||||||
|
|
||||||
<!-- REQUIRED SCRIPTS -->
|
<!-- REQUIRED SCRIPTS -->
|
||||||
<!-- jQuery -->
|
<!-- jQuery -->
|
||||||
@ -188,7 +191,7 @@
|
|||||||
url: versionUrl,
|
url: versionUrl,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
$('#panel-version').text(`Version: ${response.current_version}`);
|
$('#panel-version').text(`Version: ${response.current_version || 'N/A'}`);
|
||||||
},
|
},
|
||||||
error: function (error) {
|
error: function (error) {
|
||||||
console.error("Error fetching version:", error);
|
console.error("Error fetching version:", error);
|
||||||
@ -217,9 +220,7 @@
|
|||||||
console.error("Server detail:", xhr.responseJSON.detail);
|
console.error("Server detail:", xhr.responseJSON.detail);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
$('.main-footer').addClass('d-flex justify-content-between');
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user