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 10:49:13 +02:00
parent 36ff99eab0
commit 7cf9aa452d
5 changed files with 16 additions and 16 deletions

View File

@@ -31,12 +31,12 @@
<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 class="badge badge-{{ 'success' if g.bot_running else 'danger' }}">
{{ "Running" if g.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('start') }}" class="btn btn-primary btn-block {{ 'disabled' if g.bot_running else '' }}">Start Bot</a>
<a href="{{ url_for('stop') }}" class="btn btn-danger btn-block {{ 'disabled' if not g.bot_running else '' }}">Stop Bot</a>
<a href="{{ url_for('view_logs') }}" class="btn btn-warning btn-block">View Logs</a>
</div>
</div>