Browse Source

Update 'LogBot/template.html'

master
mb 3 years ago
parent
commit
4308acab56
  1. 26
      LogBot/template.html

26
LogBot/template.html

@ -8,18 +8,20 @@
</head>
<body>
<h1>{{ title }}</h1>
<div id="container">
{% set sorted = [] %}
{% for num in db %}
{% set int_num = num | int %}
<div style="display: none;">{{ sorted.append(int_num) }}</div>
{% endfor %}
{% 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 %}
<div class="post">
<p class="key">[{{ num | string }}]</p>
<p class="message">{{ db[num|string] }}</p>
</div>
{% endfor %}
{% for num in sorted | sort %}
<div class="post">
<p class="key">[{{ num | string }}]</p>
<p class="message">{{ db[num|string] }}</p>
</div>
{% endfor %}
</div>
<footer></footer>
</body>
</html>

Loading…
Cancel
Save