AstraOS Ver. 1.38:
All checks were successful
Deploy AstraOS Panel / deploy (push) Successful in 12s

- Fixed, dass Tracker und ETS2 DLC zusammenbuggen in sidebar
This commit is contained in:
elias 2026-06-07 13:46:13 +02:00
parent a0246e9f6b
commit a77e00f674

View file

@ -199,12 +199,10 @@
<div>
<button class="w-full text-left px-3 py-2 rounded-md transition flex justify-between items-center collapsible flex-shrink-0
{% if maintenance_active %}hover:bg-yellow-500/10 hover:text-yellow-300{% else %}hover:bg-purple-500/10 hover:text-purple-300{% endif %}"
data-open="{% if active_page in ['user_management', 'role_management', 'maintenance_management'] %}true{% else %}false{% endif %}">
data-open="{% if active_page in ['user_management', 'role_management', 'maintenance_management', 'logs'] %}true{% else %}false{% endif %}">
<span>Administration</span>
<svg class="w-4 h-4 transform transition-transform"
fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7"></path>
<svg class="w-4 h-4 transform transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
</svg>
</button>
@ -243,17 +241,16 @@
<div>
<button class="w-full text-left px-3 py-2 rounded-md transition flex justify-between items-center collapsible
{% if maintenance_active %}hover:bg-yellow-500/10 hover:text-yellow-300{% else %}hover:bg-purple-500/10 hover:text-purple-300{% endif %}"
data-open="{% if active_page in ['discord_bots', 'ets2_dlcs'] %}true{% else %}false{% endif %}">
data-open="{% if active_page in ['discord_bots', 'ets2_dlcs', 'ayrantracker'] %}true{% else %}false{% endif %}">
<span>Private Tools</span>
<svg class="w-4 h-4 transform transition-transform"
fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7"></path>
<svg class="w-4 h-4 transform transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
</svg>
</button>
<div class="pl-4 mt-1 space-y-1 content hidden">
{% set private_tools = namespace(has_access=false) %}
{% if 'manage_discord_bots' in session.get('permissions', []) %}
{% set private_tools.has_access = true %}
<a href="{{ url_for('discord_bots') }}"
@ -263,6 +260,7 @@
🤖 Discord Bots
</a>
{% endif %}
{% if 'view_ets2_dlcs' in session.get('permissions', []) %}
{% set private_tools.has_access = true %}
<a href="{{ url_for('ets2_dlcs') }}"
@ -272,16 +270,17 @@
🚚 ETS2 DLCs
</a>
{% endif %}
{% if 'view_ayrantracker' in session.get('permissions', []) %}
<a href="{{ url_for('ayrantracker') }}" class="px-3 py-2 rounded-md transition flex-shrink-0
{% if active_page == 'ayrantracker' %}
{% if maintenance_active %}bg-yellow-500/10 text-yellow-300{% else %}bg-purple-500/10 text-purple-300{% endif %}
{% else %}
{% if maintenance_active %}hover:bg-yellow-500/10 hover:text-yellow-300{% else %}hover:bg-purple-500/10 hover:text-purple-300{% endif %}
{% endif %}">
{% set private_tools.has_access = true %}
<a href="{{ url_for('ayrantracker') }}"
class="block px-3 py-1 rounded-md transition
{% if active_page == 'ayrantracker' %}{% if maintenance_active %}bg-yellow-500/10 text-yellow-300{% else %}bg-purple-500/10 text-purple-300{% endif %}{% else %}
{% if maintenance_active %}hover:bg-yellow-500/10 hover:text-yellow-300{% else %}hover:bg-purple-500/10 hover:text-purple-300{% endif %}{% endif %}">
🥛 AyranTracker
</a>
{% endif %}
{% if not private_tools.has_access %}
<div class="block px-3 py-1 rounded-md text-gray-500 text-sm italic">
Du hast nicht genügend Berechtigungen für diesen Bereich.
@ -293,12 +292,10 @@
<div>
<button class="w-full text-left px-3 py-2 rounded-md transition flex justify-between items-center collapsible
{% if maintenance_active %}hover:bg-yellow-500/10 hover:text-yellow-300{% else %}hover:bg-purple-500/10 hover:text-purple-300{% endif %}"
data-open="{% if active_page in ['ip_analyzer'] %}true{% else %}false{% endif %}">
data-open="{% if active_page in ['ip_analyzer', 'age_verification'] %}true{% else %}false{% endif %}">
<span>Moonlab Tools</span>
<svg class="w-4 h-4 transform transition-transform"
fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7"></path>
<svg class="w-4 h-4 transform transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
</svg>
</button>