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

- Impressum hinzugefügt
This commit is contained in:
elias 2026-06-05 20:19:25 +02:00
parent bad79411be
commit f4c66ae552
4 changed files with 47 additions and 1 deletions

View file

@ -10,3 +10,10 @@ DISCORD_CLIENT_ID='1395018660267036712'
DISCORD_CLIENT_SECRET='QVGmwtTDsuE8mh2YlBMqeHndeRRKW9-a'
DISCORD_BOT_TOKEN='MTM5NTAxODY2MDI2NzAzNjcxMg.GJE-k4.W0o09yJZfG3onzyzHLbXu4vBrKPXFS1IVuzhMA'
DISCORD_REDIRECT_URI='https://astra-os.de/callback/discord'
# Impressum (vom Benutzer bereitgestellt)
IMPRESSUM_NAME='Elias Geworski'
IMPRESSUM_ADDRESS='Taiostraße 4b, 90562 Heroldsberg'
IMPRESSUM_EMAIL='elias.gew@hotmail.com'
IMPRESSUM_PHONE=''
IMPRESSUM_COMPANY_REG=''

View file

@ -0,0 +1,26 @@
{% extends "sidebar.html" %}
{% block title %}Impressum — AstraOS{% endblock %}
{% block content %}
<main class="p-6">
<h1 class="text-3xl font-bold mb-4">Impressum</h1>
<div class="bg-black/40 border border-purple-500/20 p-6 rounded-lg">
<p class="mb-2"><strong>Angaben gemäß § 5 TMG:</strong></p>
<p class="mb-2"><strong>Name / Firma:</strong> {{ impressum.name or '—' }}</p>
<p class="mb-2"><strong>Adresse:</strong> {{ impressum.address or '—' }}</p>
<p class="mb-2"><strong>Kontakt:</strong>
{% if impressum.email %}<a href="mailto:{{ impressum.email }}">{{ impressum.email }}</a>{% else %}—{% endif %}
{% if impressum.phone %} | Tel: {{ impressum.phone }}{% endif %}
</p>
<p class="mb-2"><strong>Handelsregister / Reg.-Nr.:</strong> {{ impressum.company_registration or '—' }}</p>
<hr class="my-4 border-gray-700">
<p class="text-sm text-gray-300">Hinweis: Diese Angaben werden aus Umgebungsvariablen geladen. Falls du deine privaten Daten nicht veröffentlichen möchtest, trage hier stattdessen eine Firmenadresse, eine Geschäftsadresse eines Dienstleisters (z. B. Domizilservice) oder die Daten einer juristischen Person ein. Eine Postfachadresse allein ist in der Regel nicht ausreichend.</p>
</div>
</main>
{% endblock %}

View file

@ -366,7 +366,7 @@
{% block content %}{% endblock %}
</main>
<footer>
&copy; 2026 AstraOS
&copy; 2026 AstraOS &nbsp;|&nbsp; <a href="{{ url_for('impressum') }}" class="text-gray-300 hover:underline">Impressum</a>
</footer>
</div>
</div>

View file

@ -1465,6 +1465,19 @@ def maintenance_management():
if 'discord_bots_maintenance' not in maint_info:
maint_info['discord_bots_maintenance'] = False
return render_template('maintenance_management.html', active_page='maintenance_management', maint_info=maint_info)
@app.route('/impressum')
def impressum():
# Impressumsdaten werden aus Umgebungsvariablen geladen, damit keine persönlichen Daten im Code liegen.
impressum_data = {
'name': os.environ.get('IMPRESSUM_NAME'),
'address': os.environ.get('IMPRESSUM_ADDRESS'),
'email': os.environ.get('IMPRESSUM_EMAIL'),
'phone': os.environ.get('IMPRESSUM_PHONE'),
'company_registration': os.environ.get('IMPRESSUM_COMPANY_REG')
}
return render_template('impressum.html', active_page='impressum', impressum=impressum_data)
@app.route('/update_maintenance', methods=['POST'])
@login_required
@permission_required('maintenance_management')