123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- {% extends "misago/admin/generic/list.html" %}
- {% load i18n misago_avatars misago_forms %}
- {% block page-actions %}
- <div class="page-actions">
- <a href="{% url 'misago:admin:users:accounts:new' %}" class="btn btn-success">
- <span class="fa fa-plus-circle"></span>
- {% trans "New user" %}
- </a>
- </div>
- {% endblock %}
- {% block table-header %}
- <th style="width: 1%;"> </th>
- <th>{% trans "User" %}</th>
- <th style="width: 1%;"> </th>
- <th style="width: 1%;"> </th>
- <th style="width: 200px;">{% trans "E-mail" %}</th>
- <th style="width: 150px;">{% trans "Rank" %}</th>
- <th style="width: 200px;">{% trans "Joined" %}</th>
- <th style="width: 128px;">{% trans "Posts" %}</th>
- {% for action in extra_actions %}
- <th style="width: 1%;"> </th>
- {% endfor %}
- <th style="width: 1%;"> </th>
- {% endblock table-header %}
- {% block table-row %}
- <td>
- <a href="{{ item.get_absolute_url }}">
- <img src="{{ item|avatar:24 }}" alt="{% trans "Avatar" %}" width="24" height="24">
- </a>
- </td>
- <td class="item-name {% if item.requires_activation %}text-muted{% endif %}">
- <a href="{{ item.get_absolute_url }}">{{ item }}</a>
- </td>
- <td class="lead text-muted">
- {% if item.requires_activation_by_admin %}
- <span class="fa fa-eye tooltip-top" title="{% trans "Requires activation by administrator" %}"></span>
- {% elif item.requires_activation_by_user %}
- <span class="fa fa-ticket tooltip-top" title="{% trans "Has to activate account" %}"></span>
- {% else %}
-
- {% endif %}
- </td>
- <td class="lead text-muted">
- {% if item.is_superuser %}
- <span class="fa fa-star tooltip-top" title="{% trans "Super administrator" %}"></span>
- {% elif item.is_staff %}
- <span class="fa fa-star-half-o tooltip-top" title="{% trans "Administrator" %}"></span>
- {% else %}
-
- {% endif %}
- </td>
- <td>
- <a href="mailto:{{ item.email }}">{{ item.email }}</a>
- </td>
- <td>
- {{ item.rank }}
- </td>
- <td>
- <abbr class="tooltip-top dynamic time-ago" title="{{ item.joined_on }}" data-timestamp="{{ item.joined_on|date:"c" }}">
- {{ item.joined_on|date }}
- </abbr>
- </td>
- <td>
- {{ item.posts }}
- </td>
- {% for action in extra_actions %}
- <td class="row-action">
- <a href="{% url action.link user_id=item.id %}" class="btn btn-{% if action.style %}{{ action.style }}{% else %}default{% endif %} tooltip-top" title="{{ action.name }}">
- <span class="{{ action.icon }}"></span>
- </a>
- </td>
- {% endfor %}
- <td class="row-action">
- <a href="{% url 'misago:admin:users:accounts:edit' user_id=item.id %}" class="btn btn-primary tooltip-top" title="{% trans "Edit user" %}">
- <span class="fa fa-pencil"></span>
- </a>
- </td>
- {% endblock table-row %}
- {% block emptylist %}
- <td colspan="{{ 11|add:extra_actions_len }}">
- <p>{% trans "No users matching search criteria have been found." %}</p>
- </td>
- {% endblock emptylist %}
- {% block modal-title %}
- {% trans "Search users" %}
- {% endblock modal-title %}
- {% block modal-body %}
- <div class="row">
- <div class="col-md-6">
- {% form_row search_form.username %}
- </div>
- <div class="col-md-6">
- {% form_row search_form.email %}
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- {% form_row search_form.rank %}
- </div>
- <div class="col-md-6">
- {% form_row search_form.role %}
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- {% form_row search_form.inactive %}
- </div>
- <div class="col-md-6">
- {% form_row search_form.is_staff %}
- </div>
- </div>
- {% endblock modal-body %}
|