mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 12:23:48 +01:00
Bugfix: Don't show cycle link on replies
This commit is contained in:
parent
edeb3df3ce
commit
7df34415bf
@ -42,6 +42,13 @@
|
||||
<a title="{% trans %}Lock thread{% endtrans %}" href="?/{{ secure_link(board.dir ~ 'lock/' ~ post.id) }}">{{ config.mod.link_lock }}</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 %}
|
||||
|
||||
{% endif %}
|
||||
{% if mod|hasPermission(config.mod.move, board.uri) %}
|
||||
@ -51,13 +58,6 @@
|
||||
<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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user