1
0
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:
Savetheinternet 2011-11-23 21:28:59 +11:00
parent a83d584255
commit eca3ac079d

View File

@ -71,15 +71,15 @@
{% trans %}Flags{% endtrans %}
</th>
<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>
<input title="{% trans %}Sticky{% endtrans %}" type="checkbox" name="sticky" id="sticky" /><br />
</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 />
<input title="{% trans %}Lock{% endtrans %}" type="checkbox" name="lock" id="lock" />
</div>{% endif %}
{% if true %}<div>
{% if post.mod|hasPermission(config.mod.rawhtml, board.uri) %}<div>
<label for="raw">{% trans %}Raw HTML{% endtrans %}</label><br />
<input title="{% trans %}Raw HTML{% endtrans %}" type="checkbox" name="raw" id="raw" />
</div>{% endif %}