list.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends "admin/admin/list.html" %}
  2. {% load i18n %}
  3. {% load l10n %}
  4. {% load url from future %}
  5. {% block action_body %}
  6. {% if monitor.users_inactive|int > 0 %}
  7. <div class="alert alert-info alert-form">
  8. <div class="alert-icon"><span><i class="icon-info-sign icon-white"></i></span></div>
  9. <p><a href="{% url 'admin_users_inactive' %}">{%- trans count=monitor.users_inactive|int, total=monitor.users_inactive|int|intcomma -%}
  10. There is one inactive user.
  11. {%- pluralize -%}
  12. There are {{ total }} inactive users.
  13. {%- endtrans -%}</a></p>
  14. </div>
  15. {% endif %}
  16. {{ super() }}
  17. {% endblock %}
  18. {% block table_head scoped %}
  19. <th>&nbsp;</th>
  20. {{ super() }}
  21. {% endblock %}
  22. {% block table_row scoped %}
  23. <td class="avatar-small"><img src="{{ item.get_avatar('small') }}" class="avatar-small" alt="{% trans %}User Avatar{% endtrans %}"></td>
  24. <td colspan="2" class="lead-cell">
  25. <strong>{{ item.username }}</strong> <span class="muted">{{ item.email }}</span>{% if item.is_admin() %} <span class="label label-important">{% trans %}Admin{% endtrans %}</span>{% elif item.is_protected() %} <span class="label label-info">{% trans %}Team{% endtrans %}</span>{% endif %}{% if item.activation > 0 %} <span class="label tooltip-top" title="{% if item.activation == 1 -%}
  26. {% trans %}This user has not yet validated his e-mail address.{% endtrans %}
  27. {%- elif item.activation == 2 -%}
  28. {% trans %}This user is awaiting admin approval.{% endtrans %}
  29. {%- else -%}
  30. {% trans %}This user is changing his sign-in credentials.{% endtrans %}
  31. {%- endif %}">{% trans %}Inactive{% endtrans %}</span>{% endif %}
  32. </td>
  33. {% endblock%}