Browse Source

Merge branch 'config' into dockerize2

Zankaria 1 month ago
parent
commit
f6b0a33b96
  1. BIN
      static/banned.jpg
  2. 8
      templates/banned.html

BIN
static/banned.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 KiB

8
templates/banned.html

@ -1,7 +1,7 @@
{% filter remove_whitespace %} {% filter remove_whitespace %}
{# Automatically removes unnecessary whitespace #} {# Automatically removes unnecessary whitespace #}
<div class="ban"> <div class="ban">
<iframe width="420" height="315" src="https://www.youtube.com/embed/FXPKJUE86d0" frameborder="0" allowfullscreen></iframe> <img style="display:block;margin-left:auto;margin-right:auto;" width="420" height="600" src="static/banned.jpg" alt="Purge list: you">
{% if ban.expires and time() >= ban.expires %} {% if ban.expires and time() >= ban.expires %}
<h2>{% trans %}You were banned! ;_;{% endtrans %}</h2> <h2>{% trans %}You were banned! ;_;{% endtrans %}</h2>
{% else %} {% else %}
@ -31,7 +31,7 @@
{% endif %} {% endif %}
<p> <p>
{% trans %}Your ban was filed on{% endtrans %} {% trans %}Your ban was filed on{% endtrans %}
<strong>{{ ban.created|date(config.ban_date) }}</strong> <strong> {{ ban.created|date(config.ban_date) }}</strong>
{% if config.show_modname %} {% if config.show_modname %}
{% if ban.username %} {% if ban.username %}
{% trans %}by{% endtrans %} <strong> {{ ban.username }} </strong> {% trans %}by{% endtrans %} <strong> {{ ban.username }} </strong>
@ -44,9 +44,7 @@
{% trans %} has since expired. Refresh the page to continue.{% endtrans %} {% trans %} has since expired. Refresh the page to continue.{% endtrans %}
{% elseif ban.expires %} {% elseif ban.expires %}
{% trans %}expires{% endtrans %} <span id="countdown">{{ ban.expires|until }}</span> {% trans %}from now, which is on{% endtrans %} {% trans %}expires{% endtrans %} <span id="countdown">{{ ban.expires|until }}</span> {% trans %}from now, which is on{% endtrans %}
<strong> <strong> {{ ban.expires|date(config.ban_date) }} </strong>
{{ ban.expires|date(config.ban_date) }}
</strong>
<script> <script>
var secondsLeft = {{ ban.expires - time() }}; var secondsLeft = {{ ban.expires - time() }};
var end = new Date().getTime() + secondsLeft*1000; var end = new Date().getTime() + secondsLeft*1000;

Loading…
Cancel
Save