Browse Source
Auto-tagging was omitted as warnings are visible anyway. Co-Authored-By: Discomrade <[email protected]>main
fallenPineapple
7 years ago
committed by
-
13 changed files with 401 additions and 4 deletions
@ -0,0 +1,62 @@ |
|||||
|
{% if post and board %} |
||||
|
{% set action = '?/' ~ board ~ '/warning/' ~ post %} |
||||
|
{% else %} |
||||
|
{% set action = '?/warning' %} |
||||
|
{% endif %} |
||||
|
|
||||
|
<form action="{{ action }}" method="post"> |
||||
|
<input type="hidden" name="token" value="{{ token }}"> |
||||
|
{% if redirect %} |
||||
|
<input type="hidden" name="redirect" value="{{ redirect|e }}"> |
||||
|
{% endif %} |
||||
|
{% if post and board %} |
||||
|
<input type="hidden" name="delete" value="{% if delete %}1{% else %}0{% endif %}"> |
||||
|
{% endif %} |
||||
|
|
||||
|
<table> |
||||
|
|
||||
|
<tr> |
||||
|
<th> |
||||
|
<label for="ip">{% trans 'IP' %}</label> |
||||
|
</th> |
||||
|
<td> |
||||
|
{% if not hide_ip %} |
||||
|
<input type="text" name="ip" id="ip" size="30" maxlength="40" value="{{ ip|e }}"> |
||||
|
{% else %} |
||||
|
<em>{% trans 'hidden' %}</em> |
||||
|
{% endif %} |
||||
|
</td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<th> |
||||
|
<label for="reason">{% trans 'Reason' %}</label> |
||||
|
</th> |
||||
|
<td> |
||||
|
<textarea name="reason" id="reason" rows="5" cols="30">{{ reason|e }}</textarea> |
||||
|
</td> |
||||
|
</tr> |
||||
|
{% if post and board %} |
||||
|
<tr> |
||||
|
<th> |
||||
|
<label for="reason">{% trans 'Message' %}</label> |
||||
|
</th> |
||||
|
<td> |
||||
|
<input type="checkbox" id="public_message" name="public_message"{% if config.mod.check_warning_message %} checked{% endif %}> |
||||
|
<input type="text" name="message" id="message" size="35" maxlength="200" value="{{ config.mod.default_warning_message|e }}"> |
||||
|
<span class="unimportant">({% trans 'public; attached to post' %})</span> |
||||
|
<script type="text/javascript"> |
||||
|
document.getElementById('message').disabled = !document.getElementById('public_message').checked; |
||||
|
document.getElementById('public_message').onchange = function() { |
||||
|
document.getElementById('message').disabled = !this.checked; |
||||
|
} |
||||
|
</script> |
||||
|
</td> |
||||
|
</tr> |
||||
|
{% endif %} |
||||
|
<tr> |
||||
|
<td></td> |
||||
|
<td><input name="new_warning" type="submit" value="{% trans 'New Warning' %}"></td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
</form> |
||||
|
|
@ -0,0 +1,38 @@ |
|||||
|
{% filter remove_whitespace %} |
||||
|
{# Automatically removes unnecessary whitespace #} |
||||
|
<div class="ban"> |
||||
|
<h2>{% trans %}You were issued an warning!{% endtrans %}</h2> |
||||
|
{% if warning.reason %} |
||||
|
<p> |
||||
|
{% trans %}for the following reason:{% endtrans %} |
||||
|
</p> |
||||
|
<p class="reason"> |
||||
|
{{ warning.reason }} |
||||
|
</p> |
||||
|
{% endif %} |
||||
|
<p> |
||||
|
{% trans %}Your warning was filed on{% endtrans %} |
||||
|
<strong>{{ warning.created|date(config.ban_date) }}</strong> |
||||
|
{% if config.show_modname %} |
||||
|
{% if warning.username %} |
||||
|
{% trans %}by{% endtrans %} <strong> {{ warning.username }} </strong> |
||||
|
{% else %} |
||||
|
{% trans %}by{% endtrans %} <em> 'system' </em> |
||||
|
{% endif %} |
||||
|
{% endif %} |
||||
|
</p> |
||||
|
<p>{% trans %}Your IP address is{% endtrans %} <strong>{{ warning.ip }}</strong>.</p> |
||||
|
|
||||
|
{% if config.warning_page_extra %} |
||||
|
<p>{{ config.warning_page_extra }}</p> |
||||
|
{% endif %} |
||||
|
|
||||
|
{% if post and config.warning_show_post %} |
||||
|
<hr> |
||||
|
<p>{% trans %}You were issued an warning for the following post on{% endtrans %} {{ board.url }}:</p> |
||||
|
{{ post }} |
||||
|
<br> |
||||
|
{% endif %} |
||||
|
|
||||
|
</div> |
||||
|
{% endfilter %} |
Loading…
Reference in new issue