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

Loading…
Cancel
Save