Browse Source

Display correct labels on bans list.

Ralfp 12 years ago
parent
commit
13ee85b0f3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      templates/admin/bans/list.html

+ 3 - 3
templates/admin/bans/list.html

@@ -5,9 +5,9 @@
 
 {% block table_row scoped %}
   <td class="lead-cell">
-  	<strong>{{ item.ban }}</strong> <span class="label {% if item.type == 0 -%}label-inverse">{% trans %}Username and E-mail{% endtrans %}
-  	{%- elif item.type == 1 -%}label-important">{% trans %}Username{% endtrans %}
-  	{%- elif item.type == 2 -%}label-warning">{% trans %}E-mail{% endtrans %}
+  	<strong>{{ item.ban }}</strong> <span class="label {% if item.test == 0 -%}label-inverse">{% trans %}Username and E-mail{% endtrans %}
+  	{%- elif item.test == 1 -%}label-important">{% trans %}Username{% endtrans %}
+  	{%- elif item.test == 2 -%}label-warning">{% trans %}E-mail{% endtrans %}
   	{%- else -%}label-info">{% trans %}IP Address{% endtrans %}
   	{%- endif %}</span>
   </td>