mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
Only show posting flags relevant to your mod status
This commit is contained in:
parent
a83d584255
commit
eca3ac079d
@ -71,15 +71,15 @@
|
|||||||
{% trans %}Flags{% endtrans %}
|
{% trans %}Flags{% endtrans %}
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
{% if not id %}<div>
|
{% if not id and post.mod|hasPermission(config.mod.sticky, board.uri) %}<div>
|
||||||
<label for="sticky">{% trans %}Sticky{% endtrans %}</label>
|
<label for="sticky">{% trans %}Sticky{% endtrans %}</label>
|
||||||
<input title="{% trans %}Sticky{% endtrans %}" type="checkbox" name="sticky" id="sticky" /><br />
|
<input title="{% trans %}Sticky{% endtrans %}" type="checkbox" name="sticky" id="sticky" /><br />
|
||||||
</div>{% endif %}
|
</div>{% endif %}
|
||||||
{% if not id %}<div>
|
{% if not id and post.mod|hasPermission(config.mod.lock, board.uri) %}<div>
|
||||||
<label for="lock">{% trans %}Lock{% endtrans %}</label><br />
|
<label for="lock">{% trans %}Lock{% endtrans %}</label><br />
|
||||||
<input title="{% trans %}Lock{% endtrans %}" type="checkbox" name="lock" id="lock" />
|
<input title="{% trans %}Lock{% endtrans %}" type="checkbox" name="lock" id="lock" />
|
||||||
</div>{% endif %}
|
</div>{% endif %}
|
||||||
{% if true %}<div>
|
{% if post.mod|hasPermission(config.mod.rawhtml, board.uri) %}<div>
|
||||||
<label for="raw">{% trans %}Raw HTML{% endtrans %}</label><br />
|
<label for="raw">{% trans %}Raw HTML{% endtrans %}</label><br />
|
||||||
<input title="{% trans %}Raw HTML{% endtrans %}" type="checkbox" name="raw" id="raw" />
|
<input title="{% trans %}Raw HTML{% endtrans %}" type="checkbox" name="raw" id="raw" />
|
||||||
</div>{% endif %}
|
</div>{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user