Add mod auto-reload

This commit is contained in:
discomrade 2021-09-28 01:35:12 +00:00
parent 5bb8505dfd
commit 37bfc3beeb
2 changed files with 296 additions and 0 deletions

View file

@ -1,4 +1,5 @@
<script src="{{ config.additional_javascript_url }}js/mod/recent_posts.js"></script>
<script src="{{ config.additional_javascript_url }}js/mod/recent-posts-auto-reload.js"></script>
{% if not posts %}
<p style="text-align:center" class="unimportant">({% trans 'There are no active posts.' %})</p>
{% else %}
@ -17,3 +18,9 @@
{% endfor %}
{% endif %}
<a href="/mod.php?/recent/{{ limit|e }}&amp;last={{ last_time|e }}">Next {{ limit }} posts</a>
<div class="bar bottom">
<div class="bar-bottom">
<span class="threadlink"></span>
</div>
<div class=pages></div>
</div>