2026-03-16 19:19:22 +01:00
|
|
|
<!DOCTYPE html>
|
Oberfläche eingedeutscht: Radio, Bücher/Reader, Fokus, Konto, Anmeldung; sw v71
- app.js, Templates, Stream-Fenster, Manifest: alle sichtbaren Texte deutsch
(Eingabefenster "Abbrechen", Markierungs-Export, Lesezeichen, Reader-Einstellungen …)
- LANGUAGE_CODE 'de': Formular-, Passwort- und Validierungsmeldungen von Django deutsch
- Empfehlungen: "Was du unter der Woche abends oft hörst:"
- Fehlercodes der API bleiben englisch (Vertrag für Clients und Tests); was die
Seite davon zeigt, übersetzt _germanError()
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 13:53:01 +02:00
|
|
|
<html lang="de">
|
2026-03-16 19:19:22 +01:00
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<meta name="theme-color" content="#000000">
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
|
|
<meta name="apple-mobile-web-app-title" content="diora">
|
Oberfläche eingedeutscht: Radio, Bücher/Reader, Fokus, Konto, Anmeldung; sw v71
- app.js, Templates, Stream-Fenster, Manifest: alle sichtbaren Texte deutsch
(Eingabefenster "Abbrechen", Markierungs-Export, Lesezeichen, Reader-Einstellungen …)
- LANGUAGE_CODE 'de': Formular-, Passwort- und Validierungsmeldungen von Django deutsch
- Empfehlungen: "Was du unter der Woche abends oft hörst:"
- Fehlercodes der API bleiben englisch (Vertrag für Clients und Tests); was die
Seite davon zeigt, übersetzt _germanError()
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 13:53:01 +02:00
|
|
|
<meta name="description" content="Bücher, Podcasts und Radio">
|
2026-03-19 21:29:51 +01:00
|
|
|
{% if user.is_authenticated %}<meta name="username" content="{{ user.username }}">{% endif %}
|
2026-03-16 19:19:22 +01:00
|
|
|
<link rel="manifest" href="/static/manifest.json">
|
|
|
|
|
<link rel="apple-touch-icon" href="/static/icon-192.png">
|
2026-10-14 18:02:33 +02:00
|
|
|
<script>
|
|
|
|
|
// Light and dark (docs/theme.md): the choice is "dark", "light" or "auto" (as the
|
|
|
|
|
// system says). Set before anything paints; every page has it, app.js or not.
|
|
|
|
|
// Plain ES5: old e-reader WebViews run this too.
|
|
|
|
|
(function () {
|
|
|
|
|
var KEY = 'diora_theme';
|
|
|
|
|
var LABELS = {dark: 'Dunkel', light: 'Hell', auto: 'Automatisch'};
|
|
|
|
|
var mq = window.matchMedia ? window.matchMedia('(prefers-color-scheme: light)') : null;
|
|
|
|
|
function choice() {
|
|
|
|
|
var v = null;
|
|
|
|
|
try { v = localStorage.getItem(KEY); } catch (e) {}
|
|
|
|
|
return v === 'light' || v === 'auto' ? v : 'dark';
|
|
|
|
|
}
|
|
|
|
|
function scheme() {
|
|
|
|
|
var c = choice();
|
|
|
|
|
return c === 'light' || (c === 'auto' && mq && mq.matches) ? 'light' : 'dark';
|
|
|
|
|
}
|
|
|
|
|
function apply() {
|
|
|
|
|
var s = scheme();
|
|
|
|
|
document.documentElement.setAttribute('data-theme', s);
|
|
|
|
|
var meta = document.querySelector('meta[name="theme-color"]');
|
|
|
|
|
if (meta) meta.setAttribute('content', s === 'light' ? '#f6f5f1' : '#000000');
|
|
|
|
|
var b = document.getElementById('theme-toggle');
|
|
|
|
|
if (b) {
|
|
|
|
|
var c = choice();
|
|
|
|
|
b.textContent = c === 'light' ? '\u2600' : c === 'auto' ? '\u25D0' : '\u263E';
|
|
|
|
|
b.title = 'Erscheinungsbild: ' + LABELS[c];
|
|
|
|
|
}
|
|
|
|
|
try { window.dispatchEvent(new CustomEvent('diora-theme', {detail: s})); } catch (e) {}
|
|
|
|
|
}
|
|
|
|
|
window.__dioraTheme = choice;
|
|
|
|
|
window.__dioraSetTheme = function (c) {
|
|
|
|
|
try { localStorage.setItem(KEY, LABELS[c] ? c : 'dark'); } catch (e) {}
|
|
|
|
|
apply();
|
|
|
|
|
};
|
|
|
|
|
window.cycleTheme = function () {
|
|
|
|
|
var order = ['dark', 'light', 'auto'];
|
|
|
|
|
window.__dioraSetTheme(order[(order.indexOf(choice()) + 1) % order.length]);
|
|
|
|
|
};
|
|
|
|
|
if (mq && mq.addEventListener) mq.addEventListener('change', function () { if (choice() === 'auto') apply(); });
|
|
|
|
|
document.addEventListener('DOMContentLoaded', apply);
|
|
|
|
|
document.documentElement.setAttribute('data-theme', scheme());
|
|
|
|
|
})();
|
|
|
|
|
</script>
|
2026-03-16 19:19:22 +01:00
|
|
|
<link rel="stylesheet" href="/static/css/app.css">
|
|
|
|
|
<title>{% block title %}diora{% endblock %}</title>
|
2026-04-04 21:10:14 +02:00
|
|
|
<script>const DIORA_CONFIG = { ebookMaxBytes: {{ EBOOK_MAX_BYTES }}, bgMaxBytes: {{ BG_MAX_BYTES }}, podcastInboxPageSize: {{ PODCAST_INBOX_PAGE_SIZE }} };</script>
|
2026-03-19 13:39:59 +01:00
|
|
|
{% if encrypted_bg_json %}
|
|
|
|
|
<script>const ENCRYPTED_BG = {{ encrypted_bg_json|safe }};</script>
|
2026-03-16 19:19:22 +01:00
|
|
|
{% endif %}
|
|
|
|
|
</head>
|
2026-03-19 13:39:59 +01:00
|
|
|
<body>
|
2026-03-16 19:19:22 +01:00
|
|
|
<nav class="navbar">
|
|
|
|
|
<a href="/" class="navbar-brand">diora</a>
|
|
|
|
|
<div class="navbar-links">
|
2026-10-14 18:02:33 +02:00
|
|
|
<button class="btn-icon theme-toggle" id="theme-toggle" onclick="cycleTheme()" title="Erscheinungsbild">☾</button>
|
|
|
|
|
<button class="btn-icon contrast-toggle" id="contrast-toggle" onclick="toggleContrast()" title="Kontrast zum Hintergrundbild" hidden>◑</button>
|
2026-03-16 19:19:22 +01:00
|
|
|
{% if user.is_authenticated %}
|
|
|
|
|
<span class="navbar-user">{{ user.username }}</span>
|
Oberfläche eingedeutscht: Radio, Bücher/Reader, Fokus, Konto, Anmeldung; sw v71
- app.js, Templates, Stream-Fenster, Manifest: alle sichtbaren Texte deutsch
(Eingabefenster "Abbrechen", Markierungs-Export, Lesezeichen, Reader-Einstellungen …)
- LANGUAGE_CODE 'de': Formular-, Passwort- und Validierungsmeldungen von Django deutsch
- Empfehlungen: "Was du unter der Woche abends oft hörst:"
- Fehlercodes der API bleiben englisch (Vertrag für Clients und Tests); was die
Seite davon zeigt, übersetzt _germanError()
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 13:53:01 +02:00
|
|
|
<a href="{% url 'settings' %}">Einstellungen</a>
|
2026-03-16 19:19:22 +01:00
|
|
|
<form method="post" action="{% url 'logout' %}" class="inline-form">
|
|
|
|
|
{% csrf_token %}
|
Oberfläche eingedeutscht: Radio, Bücher/Reader, Fokus, Konto, Anmeldung; sw v71
- app.js, Templates, Stream-Fenster, Manifest: alle sichtbaren Texte deutsch
(Eingabefenster "Abbrechen", Markierungs-Export, Lesezeichen, Reader-Einstellungen …)
- LANGUAGE_CODE 'de': Formular-, Passwort- und Validierungsmeldungen von Django deutsch
- Empfehlungen: "Was du unter der Woche abends oft hörst:"
- Fehlercodes der API bleiben englisch (Vertrag für Clients und Tests); was die
Seite davon zeigt, übersetzt _germanError()
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 13:53:01 +02:00
|
|
|
<button type="submit" class="btn-link">Abmelden</button>
|
2026-03-16 19:19:22 +01:00
|
|
|
</form>
|
|
|
|
|
{% else %}
|
Oberfläche eingedeutscht: Radio, Bücher/Reader, Fokus, Konto, Anmeldung; sw v71
- app.js, Templates, Stream-Fenster, Manifest: alle sichtbaren Texte deutsch
(Eingabefenster "Abbrechen", Markierungs-Export, Lesezeichen, Reader-Einstellungen …)
- LANGUAGE_CODE 'de': Formular-, Passwort- und Validierungsmeldungen von Django deutsch
- Empfehlungen: "Was du unter der Woche abends oft hörst:"
- Fehlercodes der API bleiben englisch (Vertrag für Clients und Tests); was die
Seite davon zeigt, übersetzt _germanError()
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 13:53:01 +02:00
|
|
|
<a href="{% url 'login' %}">Anmelden</a>
|
|
|
|
|
<a href="{% url 'register' %}">Registrieren</a>
|
2026-03-16 19:19:22 +01:00
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<main class="main-content">
|
|
|
|
|
{% if messages %}
|
|
|
|
|
<div class="messages">
|
|
|
|
|
{% for message in messages %}
|
|
|
|
|
<div class="message message-{{ message.tags }}">{{ message }}</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
|
</main>
|
|
|
|
|
|
2026-03-19 21:35:41 +01:00
|
|
|
{% if BUILD_TIME %}<span class="build-time">{{ BUILD_TIME|slice:":16"|cut:"T" }}</span>{% endif %}
|
2026-03-19 13:39:59 +01:00
|
|
|
<script src="/static/js/jszip.min.js"></script>
|
|
|
|
|
<script src="/static/js/pdf.min.js"></script>
|
2026-03-16 19:19:22 +01:00
|
|
|
{% block extra_js %}{% endblock %}
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|