summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/mod/inbox.html2
-rw-r--r--templates/mod/themes.html2
-rw-r--r--templates/mod/user.html2
-rw-r--r--templates/mod/view_ip.html6
-rw-r--r--templates/themes/basic/index.html2
-rw-r--r--templates/themes/categories/news.html2
-rw-r--r--templates/themes/frameset/news.html2
-rw-r--r--templates/themes/recent/recent.html2
8 files changed, 10 insertions, 10 deletions
diff --git a/templates/mod/inbox.html b/templates/mod/inbox.html
index 614c1020..63f4de5c 100644
--- a/templates/mod/inbox.html
+++ b/templates/mod/inbox.html
@@ -1,4 +1,4 @@
-{% if messages|default([])|length == 0 %}
+{% if not messages %}
<p style="text-align:center" class="unimportant">({% trans 'No private messages for you.' %})</p>
{% else %}
<table class="modlog">
diff --git a/templates/mod/themes.html b/templates/mod/themes.html
index 99aaadf5..87639dbc 100644
--- a/templates/mod/themes.html
+++ b/templates/mod/themes.html
@@ -1,4 +1,4 @@
-{% if themes|default([])|length == 0 %}
+{% if not themes %}
<p style="text-align:center" class="unimportant">({% trans 'There are no themes available.' %})</p>
{% else %}
<table class="modlog">
diff --git a/templates/mod/user.html b/templates/mod/user.html
index d72ac535..6cc454d8 100644
--- a/templates/mod/user.html
+++ b/templates/mod/user.html
@@ -87,7 +87,7 @@
</ul>
</form>
-{% if logs|default([])|length > 0 %}
+{% if logs and logslength > 0 %}
<table class="modlog" style="width:600px">
<tr>
<th>{% trans 'IP address' %}</th>
diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html
index 6735ff6f..20a4573d 100644
--- a/templates/mod/view_ip.html
+++ b/templates/mod/view_ip.html
@@ -18,7 +18,7 @@
<legend>{{ notes|count }} {% trans notes_on_record %}</legend>
</legend>
- {% if notes|default([])|length > 0 %}
+ {% if notes and noteslength > 0 %}
<table class="modlog">
<tr>
<th>{% trans 'Staff' %}</th>
@@ -81,7 +81,7 @@
</fieldset>
{% endif %}
-{% if bans|default([])|length > 0 and mod|hasPermission(config.mod.view_ban) %}
+{% if bans and bans|length > 0 and mod|hasPermission(config.mod.view_ban) %}
<fieldset id="bans">
{% set bans_on_record = 'ban' ~ (bans|count != 1 ? 's' : '') ~ ' on record' %}
<legend>{{ bans|count }} {% trans bans_on_record %}</legend>
@@ -174,7 +174,7 @@
</fieldset>
{% endif %}
-{% if logs|default([])|length > 0 %}
+{% if logs and logs|length > 0 %}
<fieldset id="history">
<legend>History</legend>
<table class="modlog" style="width:100%">
diff --git a/templates/themes/basic/index.html b/templates/themes/basic/index.html
index a444be71..94bc79d0 100644
--- a/templates/themes/basic/index.html
+++ b/templates/themes/basic/index.html
@@ -24,7 +24,7 @@
<img src="static/lain_is_cute_datass_small_teal.png" alt="mascot"/>
</center>
<div class="ban">
- {% if news|default([])|length == 0 %}
+ {% if not news %}
<p style="text-align:center" class="unimportant">(No news to show.)</p>
{% else %}
{% for entry in news %}
diff --git a/templates/themes/categories/news.html b/templates/themes/categories/news.html
index a51cc0f6..dc6387c5 100644
--- a/templates/themes/categories/news.html
+++ b/templates/themes/categories/news.html
@@ -14,7 +14,7 @@
</header>
<div class="ban">
- {% if news|default([])|length == 0 %}
+ {% if not news %}
<p style="text-align:center" class="unimportant">{% trans %}(No news to show.){% endtrans %}</p>
{% else %}
{% for entry in news %}
diff --git a/templates/themes/frameset/news.html b/templates/themes/frameset/news.html
index 04f89f87..0719079f 100644
--- a/templates/themes/frameset/news.html
+++ b/templates/themes/frameset/news.html
@@ -13,7 +13,7 @@
</header>
<div class="ban">
- {% if news|default([])|length == 0 %}
+ {% if not news %}
<p style="text-align:center" class="unimportant">(No news to show.)</p>
{% else %}
{% for entry in news %}
diff --git a/templates/themes/recent/recent.html b/templates/themes/recent/recent.html
index 02132d03..0d131bff 100644
--- a/templates/themes/recent/recent.html
+++ b/templates/themes/recent/recent.html
@@ -36,7 +36,7 @@
<br>
<div class="ban" id="global3">
<h2>Latest News</h2>
- {% if recent_news|default([])|length == 0 %}
+ {% if not recent_news %}
<p style="text-align:center" class="unimportant">(No news to show.)</p>
{% else %}
{% for entry in recent_news %}