modified: templates/index.html

modified:   templates/login.html
	modified:   templates/settings.html
This commit is contained in:
SimolZimol
2024-09-02 20:33:35 +02:00
parent 4189fe68b4
commit fa95c96c12
3 changed files with 63 additions and 23 deletions

View File

@@ -1,17 +1,31 @@
<!-- templates/index.html -->
<!-- web_panel/templates/index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Panel</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<h1>Discord Bot Admin Panel</h1>
<p>Bot Status: {{ "Running" if bot_running else "Stopped" }}</p>
<a href="{{ url_for('start') }}">Start Bot</a>
<a href="{{ url_for('stop') }}">Stop Bot</a>
<a href="{{ url_for('settings') }}">Settings</a>
<a href="{{ url_for('logout') }}">Logout</a>
<div class="container mt-5">
<h1 class="text-center">Discord Bot Admin Panel</h1>
<div class="card mt-4">
<div class="card-body">
<h5 class="card-title">Bot Status</h5>
<p class="card-text">Status:
<span class="badge badge-{{ 'success' if bot_running else 'danger' }}">
{{ "Running" if bot_running else "Stopped" }}
</span>
</p>
<a href="{{ url_for('start') }}" class="btn btn-primary btn-block {{ 'disabled' if bot_running else '' }}">Start Bot</a>
<a href="{{ url_for('stop') }}" class="btn btn-danger btn-block {{ 'disabled' if not bot_running else '' }}">Stop Bot</a>
<a href="{{ url_for('settings') }}" class="btn btn-secondary btn-block">Settings</a>
<a href="{{ url_for('logout') }}" class="btn btn-outline-secondary btn-block">Logout</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>