Browse Source

simplified the template, moved the data processing to the python script

master
manetta 3 years ago
parent
commit
d63c0320f8
  1. 15
      LogBot/template.html

15
LogBot/template.html

@ -8,17 +8,12 @@
</head>
<body>
<h1>{{ title }}</h1>
(Follow this log: <a href="./feed.rss">RSS</a>)
<div id="container">
{% set sorted = [] %}
{% for num in db %}
{% set int_num = num | int %}
<div style="display: none;">{{ sorted.append(int_num) }}</div>
{% endfor %}
{% for num in sorted | sort | reverse %}
<div class="post">
<p class="key">{{ num | string }}</p>
<p class="message">{{ db[num|string] | href_wrap }}</p>
{% for num in sorted_keys | reverse %}
<div id="{{ num }}" class="post">
<p class="key">{{ num }}</p>
<p class="message">{{ db[num] | href_wrap }}</p>
</div>
{% endfor %}
</div>

Loading…
Cancel
Save