modified: templates/global_admin_dashboard.html

modified:   templates/server_admin_dashboard.html
	modified:   templates/server_giveaways.html
	modified:   templates/user_dashboard.html
	modified:   templates/user_landing_page.html
This commit is contained in:
SimolZimol
2024-10-25 09:56:14 +02:00
parent 488b0903fe
commit 2733d8971a
5 changed files with 80 additions and 222 deletions

View File

@@ -9,22 +9,9 @@
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Multus Bot - Global Admin Dashboard</a>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a href="{{ url_for('user_server_data', guild_id=guild_id) }}">Switch to Server Selection</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('logout') }}">Logout</a>
</li>
</ul>
</div>
</nav>
{% include 'navigation.html' %}
<div class="container mt-5">
<h1 class="text-center">Welcome, {{ user_info.username }} (Global Admin)</h1>
<h1 class="text-center">Welcome, {{ g.user_info['username'] }} (Global Admin)</h1>
<p class="text-center">Manage global bot settings and controls.</p>
<div class="card mt-4">
@@ -35,12 +22,15 @@
{{ "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">Global Settings</a>
<a href="{{ url_for('view_logs') }}" class="btn btn-warning btn-block">View Logs</a>
<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>
</div>
</div>
<div class="card mt-4">
<div class="card-body">
<h5 class="card-title">View Logs</h5>
<a href="{{ url_for('view_logs') }}" class="btn btn-warning btn-block">Logs</a>
</div>
</div>
</div>