{# standard macros for the 'members' page. DO NOT OVERRIDE. Instead, you should override 'members_macros.html'. This allow to override only some of the macros without copying all others. #} {% from "macros/user.html" import m_user_link, m_user_photo %} {% macro std_thead() %} Last Name First Name {{ _('Name') }} {# last activity seconds since epoch #} {{ _('Role') }} {% if is_manager %} {{ _('Action') }} {% endif %} {% endmacro %} {% macro std_table_config() %} { "aoColumns": [ { "bVisible": false }, { "bVisible": false }, { "aDataSort": [0, 1], "asSorting": [ "asc", "desc" ] }, { "bVisible": false }, { "aDataSort": [3], "asSorting": [ "asc", "desc" ] }, { "asSorting": [ "asc", "desc" ]} {%- if is_manager %} , { } {% endif %} ], "sPaginationType": "bootstrap", "bFilter": true, "bLengthChange": false } {% endmacro %} {% macro std_member_row(user, m_id, role, last_activity_date) %} {{ user.last_name }} {{ user.first_name }}
{% call m_user_link(user, css="media-object") %} {{ m_user_photo(user, size="32") }} {%- endcall %}
{%- if not user.can_login %} {%- endif %} {{ m_user_link(user) }}
({{ user.email }}) {%- if not user.can_login %}
{%- endif %}
{%- if is_manager == False %} {{ _(role) }} {%- else %}
{{ csrf.field() }}
{% endif %} {% endmacro %}