3 * Copyright © 2003-2024 The Galette Team
5 * This file is part of Galette (https://galette.eu).
7 * Galette is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
12 * Galette is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
21 {% extends 'elements/list.html.twig' %}
23 {% set nb = members|length %}
24 {% set no_action = true %}
25 {% set is_public = not login.isLogged() %}
38 'label': _Tn("%count member", "%count members", nb_members)|replace({'%count': nb_members}),
40 'name': 'filterPublicList',
51 {'label': _T('Name'), order: constant("Galette\\Repository\\Members::ORDERBY_NAME")},
52 {'label': _T("Nickname"), order: constant("Galette\\Repository\\Members::ORDERBY_NICKNAME")},
55 {% if login.isLogged() %}
56 {% set columns = columns|merge([
57 {'label': _T("Email")}
61 {% set columns = columns|merge([
62 {'label': _T("Information")}
69 <div class="ui icon info visible message">
70 <i class="info circle blue icon" aria-hidden="true"></i>
72 {{ _T("This page shows only members who have choosen to be visible on the public lists and are up-to-date within their contributions. If you want your account to be visible here, edit your profile and check 'Be visible in the members list'") }}
78 {% for member in members %}
79 {% set rclass = member.getRowClass() %}
81 <td class="{{ rclass }} username_row" data-scope="row">
82 {% if member.isCompany() %}
84 <i class="ui building outline icon tooltip" title="{{ _T('Is a company') }}" aria-hidden="true"></i>
85 <span class="ui special popup">{{ _T('Is a company') }}</span>
87 {% elseif member.isMan() %}
89 <i class="ui male icon tooltip" title="{{ _T('Is a man') }}" aria-hidden="true"></i>
90 <span class="ui special popup">{{ _T('Is a man') }}</span>
92 {% elseif member.isWoman() %}
94 <i class="ui female icon tooltip" title="{{ _T('Is a woman') }}" aria-hidden="true"></i>
95 <span class="ui special popup">{{ _T('Is a woman') }}</span>
98 <i class="ui icon" aria-hidden="true"></i>
100 {% if member.website != '' %}
101 <a href="{{ member.website }}">{{ member.sfullname }}</a>
103 {{ member.sfullname }}
106 <td class="{{ rclass }}" data-col-label="{{ _T('Nickname') }}">{{ member.nickname|escape }}</td>
107 {% if login.isLogged() %}
108 <td class="{{ rclass }}" data-col-label="{{ _T('Email') }}"><a href="mailto:{{ member.email }}">{{ member.email }}</a></td>
110 <td class="{{ rclass }}" data-col-label="{{ _T('Information') }}">{{ member.others_infos }}</td>
114 <td class="emptylist" colspan="4">
115 {{ _T('No member') }}