Files
interchan/board/templates/board/ban_success.html
Alek Ratzloff 412045e015 Convert templates to use translate instead of localize
Not sure what the difference is but most things tend to use translate.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-24 15:56:36 -07:00

29 lines
566 B
HTML

{% extends "board/base.html" %}
{% load i18n %}
{# Title #}
{% block title %}{% translate "Ban success" %}{% endblock %}
{# Body #}
{% block content %}
<div class="row" id="message">
{% translate "A ban has been created. This window will close in 1 second." %}
</div>
<script>
function isIframe() {
try {
return window.self !== window.top;
} catch (_) {
return true;
}
}
setTimeout(function() {
if(isIframe()) {
window.top.banWindow.close();
} else {
window.close();
}
}, 1000);
</script>
{% endblock %}