1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {% extends "admin/admin/list.html" %}
- {% block action_body %}
- {% if monitor.users_inactive|int > 0 %}
- <div class="alert alert-info alert-form">
- <div class="alert-icon"><span><i class="icon-info-sign icon-white"></i></span></div>
- <p><a href="{{ url('admin_users_inactive') }}">{%- trans count=monitor.users_inactive|int, total=monitor.users_inactive|int|intcomma -%}
- There is one inactive user.
- {%- pluralize -%}
- There are {{ total }} inactive users.
- {%- endtrans -%}</a></p>
- </div>
- {% endif %}
- {{ super() }}
- {% endblock %}
- {% block table_head scoped %}
- <th> </th>
- {{ super() }}
- {% endblock %}
- {% block table_row scoped %}
- <td class="avatar-small"><img src="{{ item.get_avatar(28) }}" class="avatar-small" alt=""></td>
- <td class="lead-cell">
- <strong><a href="{{ url('user', username=item.username_slug, user=item.pk) }}">{{ item.username }}</a></strong> <span class="muted">{{ item.email }}</span>{% if item.activation > 0 %} <span class="label tooltip-top" title="{% if item.activation == 1 -%}
- {% trans %}This user has not yet validated his e-mail address.{% endtrans %}
- {%- else -%}
- {% trans %}This user is awaiting admin approval.{% endtrans %}
- {%- endif %}">{% trans %}Inactive{% endtrans %}</span>{% endif %}
- </td>
- <td>
- {{ item.join_date|date("DATETIME_FORMAT") }}
- </td>
- {% endblock%}
- {% block search_form %}
- {{ form_theme.row(search_form.username, attrs={'class': 'span3', 'placeholder': lang_username_contains()}) }}
- {{ form_theme.row(search_form.email, attrs={'class': 'span3', 'placeholder': lang_email_address_contains()}) }}
- {{ form_theme.row(search_form.activation, attrs={'class': 'span3'}) }}
- {{ form_theme.row(search_form.rank, attrs={'class': 'span3'}) }}
- {{ form_theme.row(search_form.role, attrs={'class': 'span3'}) }}
- {% endblock %}
- {# Translation strings #}
- {% macro lang_username_contains() -%}
- {% trans %}Username contains...{% endtrans %}
- {%- endmacro %}
- {% macro lang_email_address_contains() -%}
- {% trans %}E-mail address contains...{% endtrans %}
- {%- endmacro %}
|