- Split the gigantic mess that web.rs was into seperate files - Split the app into two clear functions: web and bot - Add privacy policy - Add privacy - Make the site respect GDPR and Discord ToS - Add basic API - Add timezone detection and automatic time changes
44 lines
1.8 KiB
HTML
44 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html class="theme-{{theme}}" lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{ title }} - TG Archive</title>
|
|
<link rel="stylesheet" href="/theme.css">
|
|
{% if detect_timezone %} <script src="/timezone.js" defer></script>
|
|
{% endif %}
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<strong class="site-brand">TG Archive</strong>
|
|
{% if logged_in %} <nav class="site-navigation">
|
|
<a href="/">Home</a> |
|
|
<a href="/servers">Servers</a> |
|
|
<a href="/channels">Channels</a> |
|
|
<a href="/users">Users</a> |
|
|
<a href="/messages">Messages</a> |
|
|
<form method="post" action="/logout"><button type="submit">Log out</button></form>
|
|
</nav>{% endif %}
|
|
</header>
|
|
<main class="page-content">
|
|
{{ body|safe }}
|
|
</main>
|
|
<footer class="site-footer">
|
|
<p class="footer-legal">{% if logged_in %}<a href="/privacy">Privacy</a><br>{% endif %}
|
|
Source code available <a href="https://git.ewenlau.net/ewenlau/tg-archive-bot">here</a>.<br>
|
|
Copyright © 2026 Ewi and contributors<br>
|
|
This content is licensed under GPL-3.0.</p>
|
|
<form class="footer-theme" method="post" action="/theme">
|
|
<label>Theme
|
|
<select name="theme">
|
|
<option value="white"{% if theme == "white" %} selected{% endif %}>White</option>
|
|
<option value="black"{% if theme == "black" %} selected{% endif %}>Black</option>
|
|
<option value="oled"{% if theme == "oled" %} selected{% endif %}>OLED</option>
|
|
</select>
|
|
</label>
|
|
<button type="submit">Apply</button>
|
|
</form>
|
|
</footer>
|
|
</body>
|
|
</html>
|