added "bumplocking" feature

This commit is contained in:
Savetheinternet 2011-10-10 22:37:39 +11:00
parent 851d8eaa9b
commit ffb215eb47
6 changed files with 75 additions and 9 deletions

View file

@ -92,6 +92,9 @@
{% if post.locked %}
<img class="icon" title="Locked" src="{{ config.image_locked }}" alt="Locked" />
{% endif %}
{% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %}
<img class="icon" title="Bumplocked" src="{{ config.image_bumplocked }}" alt="Locked" />
{% endif %}
{% if index %}
<a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page|sprintf(post.id) }}">[Reply]</a>
{% endif %}