AstraOS Ver. 1.25:
All checks were successful
Deploy AstraOS Panel / deploy (push) Successful in 12s
All checks were successful
Deploy AstraOS Panel / deploy (push) Successful in 12s
- Impressum hinzugefügt
This commit is contained in:
parent
bad79411be
commit
f4c66ae552
|
|
@ -10,3 +10,10 @@ DISCORD_CLIENT_ID='1395018660267036712'
|
||||||
DISCORD_CLIENT_SECRET='QVGmwtTDsuE8mh2YlBMqeHndeRRKW9-a'
|
DISCORD_CLIENT_SECRET='QVGmwtTDsuE8mh2YlBMqeHndeRRKW9-a'
|
||||||
DISCORD_BOT_TOKEN='MTM5NTAxODY2MDI2NzAzNjcxMg.GJE-k4.W0o09yJZfG3onzyzHLbXu4vBrKPXFS1IVuzhMA'
|
DISCORD_BOT_TOKEN='MTM5NTAxODY2MDI2NzAzNjcxMg.GJE-k4.W0o09yJZfG3onzyzHLbXu4vBrKPXFS1IVuzhMA'
|
||||||
DISCORD_REDIRECT_URI='https://astra-os.de/callback/discord'
|
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=''
|
||||||
|
|
|
||||||
26
AstraOS/Frontend/HTML/impressum.html
Normal file
26
AstraOS/Frontend/HTML/impressum.html
Normal 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 %}
|
||||||
|
|
||||||
|
|
@ -366,7 +366,7 @@
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
© 2026 AstraOS
|
© 2026 AstraOS | <a href="{{ url_for('impressum') }}" class="text-gray-300 hover:underline">Impressum</a>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1465,6 +1465,19 @@ def maintenance_management():
|
||||||
if 'discord_bots_maintenance' not in maint_info:
|
if 'discord_bots_maintenance' not in maint_info:
|
||||||
maint_info['discord_bots_maintenance'] = False
|
maint_info['discord_bots_maintenance'] = False
|
||||||
return render_template('maintenance_management.html', active_page='maintenance_management', maint_info=maint_info)
|
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'])
|
@app.route('/update_maintenance', methods=['POST'])
|
||||||
@login_required
|
@login_required
|
||||||
@permission_required('maintenance_management')
|
@permission_required('maintenance_management')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue