list.html 704 B

1234567891011121314151617
  1. {% extends "admin/admin/list.html" %}
  2. {% load i18n %}
  3. {% load l10n %}
  4. {% load url from future %}
  5. {% block table_row scoped %}
  6. <td class="lead-cell">
  7. <strong>{{ item.ban }}</strong> <span class="label {% if item.type == 0 -%}label-inverse">{% trans %}Username and E-mail{% endtrans %}
  8. {%- elif item.type == 1 -%}label-important">{% trans %}Username{% endtrans %}
  9. {%- elif item.type == 2 -%}label-warning">{% trans %}E-mail{% endtrans %}
  10. {%- else -%}label-info">{% trans %}IP Address{% endtrans %}
  11. {%- endif %}</span>
  12. </td>
  13. <td>
  14. {% if item.expires %}{{ item.expires|date }}{% else %}<em>{% trans %}Permanent ban{% endtrans %}</em>{% endif %}
  15. </td>
  16. {% endblock%}