bots/LogBot/template.html

41 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2021-02-27 20:20:19 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>{{ title }} - (Generator: LogBot)</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Refresh" content="300">
2021-02-27 20:20:19 +01:00
</head>
<body>
<h1>{{ title }}</h1>
<p> {{ description }} </p>
2022-02-18 16:19:30 +01:00
(Follow this log: <a href="./feed.rss.xml">RSS</a>)
2021-04-23 20:05:15 +02:00
<div id="container">
{% for num in sorted_numbering | reverse %}
<div id="{{ num }}" class="post">
<p class="key">{{ num }}</p>
<p class="date">{{ db[num]['date'] }}</p>
{% if 'media' in db[num] %}
2022-02-18 17:11:12 +01:00
<p class="message">
{% if 'image' in db[num]['media']['type'] %}
<a href="{{ db[num]['media']['path'] }}"><img class='thumbnail' src="{{ db[num]['media']['data_url'] }}"></a>
{% elif 'application' in db[num]['media']['type'] %}
<a href="{{ db[num]['media']['path'] }}" loading="lazy">{{ db[num]['media']['filename']}}</a>
{% elif 'audio' in db[num]['media']['type'] %}
<audio src="{{ db[num]['media']['path'] }}" preload="none" controls></audio>
{% elif 'video' in db[num]['media']['type'] %}
<video src="{{ db[num]['media']['path'] }}" preload="none" controls></video>
{% endif %}
<figcaption>{{ db[num]['media']['caption'] | join("") }}</figcaption>
</p>
{% else %}
2022-02-18 17:11:12 +01:00
<p class="message">{{ db[num]['post'] }}</p>
{% endif %}
2021-04-23 20:05:15 +02:00
</div>
{% endfor %}
</div>
<footer></footer>
2021-02-27 20:20:19 +01:00
</body>
</html>