Add bilingual UI and improve event actions layout
Add persistent German/English switching, translated UI messages and English 12-hour times. Align desktop event actions while preserving mobile layouts and record bilingual project guidance. Include pending diary deletion exclusions. Validate both languages with nine tests.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<!DOCTYPE html><html lang="de"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Nutzungsstatistik · MetalCircle</title><link rel="icon" type="image/png" href="/static/images/metalcircle-circle.png"><link rel="stylesheet" href="/static/css/style.css"></head><body>
|
||||
<header><div class="header-inner"><a href="/" class="logo"><img class="brand-logo" src="/static/images/metalcircle-full.png" alt="MetalCircle"></a>{% include '_user_menu.html' %}</div></header>
|
||||
<main><div class="page-title"><h1>📊 Nutzungsstatistik</h1><p>Aktuelle Gesamtzahlen der Plattform.</p></div>{% set admin_section = 'statistics' %}{% include '_admin_nav.html' %}
|
||||
<!DOCTYPE html><html lang="{{ language() }}"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>{{ _('Nutzungsstatistik · MetalCircle') }}</title><link rel="icon" type="image/png" href="/static/images/metalcircle-circle.png"><link rel="stylesheet" href="/static/css/style.css"><link rel="stylesheet" href="/static/css/language.css">
|
||||
</head><body>
|
||||
<header><div class="header-inner"><a href="/" class="logo"><img class="brand-logo" src="/static/images/metalcircle-full.png" alt="MetalCircle"></a>{% include '_user_menu.html' %}</div> {% include '_language_switch.html' %}
|
||||
</header>
|
||||
<main><div class="page-title"><h1>{{ _('📊 Nutzungsstatistik') }}</h1><p>{{ _('Aktuelle Gesamtzahlen der Plattform.') }}</p></div>{% set admin_section = 'statistics' %}{% include '_admin_nav.html' %}
|
||||
<section class="stats-grid">
|
||||
{% for key, label in [('users','Benutzer'),('events','Veranstaltungen'),('upcoming','Bevorstehende Veranstaltungen'),('comments','Kommentare'),('attendance','Teilnahmen'),('friendships','Freundschaften'),('messages','Nachrichten')] %}<div class="stat-card"><strong>{{ stats[key] }}</strong><span>{{ label }}</span></div>{% endfor %}
|
||||
{% for key, label in [('users',_('Benutzer')),('events',_('Veranstaltungen')),('upcoming',_('Bevorstehende Veranstaltungen')),('comments',_('Kommentare')),('attendance',_('Teilnahmen')),('friendships',_('Freundschaften')),('messages',_('Nachrichten'))] %}<div class="stat-card"><strong>{{ stats[key] }}</strong><span>{{ label | t }}</span></div>{% endfor %}
|
||||
</section></main></body></html>
|
||||
|
||||
Reference in New Issue
Block a user