From 51cdaaccd1489e7f62d90058d12aa6bceafb2d3f Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 23 Nov 2011 16:12:19 +1100 Subject: Use template instead of inline HTML for ban messages. --- templates/banned.html | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 templates/banned.html (limited to 'templates/banned.html') diff --git a/templates/banned.html b/templates/banned.html new file mode 100644 index 00000000..9b9ad35c --- /dev/null +++ b/templates/banned.html @@ -0,0 +1,70 @@ +{% filter remove_whitespace %} +{# Automatically removes unnecessary whitespace #} +
+

You are banned! ;_;

+

+ You have been banned from + {% if ban.uri %} + {{ config.board_abbreviation|sprintf(ban.uri) }} + {% else %} + all boards + {% endif %} + {% if ban.reason %} + for the following reason: + {% else %} + for an unspecified reason. + {% endif %} +

+ {% if ban.reason %} +

+ {{ ban.reason }} +

+ {% endif %} +

+ Your ban was filed on + {{ ban.set|date(config.ban_date) }} and + {% if ban.expires %} + expires {{ ban.expires|until }} from now, which is on + + {{ ban.expires|date(config.ban_date) }} + + + {% else %} + will not expire. + {% endif %} + +

+

Your IP address is {{ ban.ip }}.

+
+{% endfilter %} -- cgit v1.3