diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/post/post_controls.html | 8 | ||||
| -rw-r--r-- | templates/post_thread.html | 13 | ||||
| -rw-r--r-- | templates/posts.sql | 1 |
3 files changed, 18 insertions, 4 deletions
diff --git a/templates/post/post_controls.html b/templates/post/post_controls.html index 99a8484c..60dc6fc4 100644 --- a/templates/post/post_controls.html +++ b/templates/post/post_controls.html @@ -41,7 +41,6 @@ {% endif %} {% endif %} - {% if mod|hasPermission(config.mod.move, board.uri) %} {% if not post.thread %} <a title="{% trans %}Move thread to another board{% endtrans %}" href="?/{{ board.dir }}move/{{ post.id }}">{{ config.mod.link_move }}</a> @@ -49,6 +48,13 @@ <a title="{% trans %}Move reply to another board{% endtrans %}" href="?/{{ board.dir }}move_reply/{{ post.id }}">{{ config.mod.link_move }}</a> {% endif %} {% endif %} +{% if mod|hasPermission(config.mod.cycle, board.uri) %} + {% if post.cycle %} + <a title="{% trans %}Make thread not cycle{% endtrans %}" href="?/{{ secure_link(board.dir ~ 'uncycle/' ~ post.id) }}">{{ config.mod.link_uncycle }}</a> + {% else %} + <a title="{% trans %}Make thread cycle{% endtrans %}" href="?/{{ secure_link(board.dir ~ 'cycle/' ~ post.id) }}">{{ config.mod.link_cycle }}</a> + {% endif %} +{% endif %} {% if mod|hasPermission(config.mod.editpost, board.uri) %} <a title="{% trans %}Edit post{% endtrans %}" href="?/{{ board.dir }}edit{% if config.mod.raw_html_default %}_raw{% endif %}/{{ post.id }}">{{ config.mod.link_editpost }}</a> {% endif %} diff --git a/templates/post_thread.html b/templates/post_thread.html index 72ca2998..125d5f78 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -19,25 +19,32 @@ <a class="post_no" onclick="citeReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('q', '50') }}{% else %}{{ post.link('q') }}{% endif %}">{{ post.id }}</a> {% if post.sticky %} {% if config.font_awesome %} - <i class="fa fa-thumb-tack"></i> + <i class="fa fa-thumb-tack" title="Sticky"></i> {% else %} <img class="icon" title="Sticky" src="{{ config.image_sticky }}" alt="Sticky" /> {% endif %} {% endif %} {% if post.locked %} {% if config.font_awesome %} - <i class="fa fa-lock"></i> + <i class="fa fa-lock" title="Locked"></i> {% else %} <img class="icon" title="Locked" src="{{ config.image_locked }}" alt="Locked" /> {% endif %} {% endif %} {% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %} {% if config.font_awesome %} - <i class="fa fa-anchor"></i> + <i class="fa fa-anchor" title="Bumplocked"></i> {% else %} <img class="icon" title="Bumplocked" src="{{ config.image_bumplocked }}" alt="Bumplocked" /> {% endif %} {% endif %} + {% if post.cycle %} + {% if config.font_awesome %} + <i class="fa fa-refresh" title="Cyclical"></i> + {% else %} + <img class="icon" title="Cyclical" src="{{ config.image_sticky }}" alt="Cyclical" /> + {% endif %} + {% endif %} {% if index %} <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ link_for(post) }}">[{% trans %}Reply{% endtrans %}]</a> {% endif %} diff --git a/templates/posts.sql b/templates/posts.sql index 6b2249ef..070e687b 100644 --- a/templates/posts.sql +++ b/templates/posts.sql @@ -17,6 +17,7 @@ CREATE TABLE IF NOT EXISTS ``posts_{{ board }}`` ( `ip` varchar(39) CHARACTER SET ascii NOT NULL, `sticky` int(1) NOT NULL, `locked` int(1) NOT NULL, + `cycle` int(1) NOT NULL, `sage` int(1) NOT NULL, `embed` text, `slug` varchar(256) DEFAULT NULL, |
