{% apply spaceless %}
{# Automatically removes unnecessary whitespace #}
<div class="ban">
	{% if ban.expires and time() >= ban.expires %}
		<h2>{% trans %}You were issued a warning!{% endtrans %}</h2>
	{% else %}
		<h2>{% trans %}You have been issued a warning!{% endtrans %}</h2>
	{% endif %}
	<p>
		{% if ban.expires and time() >= ban.expires %}
			{% trans %}You were warned for your behavior on{% endtrans %}
		{% else %}
			{% trans %}You have been warned for your behavior on{% endtrans %}
		{% endif %}
			{% if ban.board %}
				 <strong>{{ config.board_abbreviation|sprintf(ban.board) }}</strong>
			{% else %}
				 {% trans %}all boards{% endtrans %}
			{% endif %}
			{% if ban.reason %}
				 {% trans %}for the following reason:{% endtrans %}
			{% else %}
				 {% trans %}for an unspecified reason.{% endtrans %}
			{% endif %}
	</p>
	{% if ban.reason %}
		<p class="reason">
			{{ ban.reason }}
		</p>
	{% endif %}
	<p>
		{% if ban.expires and time() >= ban.expires %}
			{% trans %}This warning was issued on&nbsp;{% endtrans %}
		{% else %}
			{% trans %}This warning was issued on&nbsp;{% endtrans %}
		{% endif %}
			<strong>{{ ban.created|date(config.ban_date) }}</strong>
			{% if config.show_modname %}
				{% if ban.username %}
					{% trans %}by{% endtrans %} <strong> {{ ban.username }} </strong>
				{% else %}
					{% trans %}by{% endtrans %} <em> 'system' </em>
				{% endif %}
			{% endif %}
		</span>
	</p>
	<p>{% trans %}Your IP address is{% endtrans %} <strong>{{ ban.ip }}</strong>.</p>

	{% if config.ban_page_extra %}
		<p>{{ config.ban_page_extra }}</p>
	{% endif %}

	{% if post and config.ban_show_post %}
		<hr>
		{% if ban.expires and time() >= ban.expires %}
			<p>{% trans %}You were warned for the following post on{% endtrans %} {{ board.url }}:</p>
		{% else %}
			<p>{% trans %}You were warned for the following post on{% endtrans %} {{ board.url }}:</p>
		{% endif %}
		{{ post }}
		<br>
	{% endif %}

	<p><strong>{% trans %}Warnings cannot be appealed. Click continue.{% endtrans %}</strong></p>

	<p>
		<form method="post" action="{{ config.root }}warning.php?id={{ ban.id }}" style="display: inline;">
			<input type="submit" value="{% trans %}Continue{% endtrans %}" class="btn">
		</form>
	</p>
</div>
{% endapply %}