]> git.agnieray.net Git - galette.git/blob - galette/templates/default/pages/members_public_list.html.twig
Use consistant empty sentence accross screens
[galette.git] / galette / templates / default / pages / members_public_list.html.twig
1 {#
2 /**
3 * Copyright © 2003-2024 The Galette Team
4 *
5 * This file is part of Galette (https://galette.eu).
6 *
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.
11 *
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.
16 *
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/>.
19 */
20 #}
21 {% extends 'elements/list.html.twig' %}
22
23 {% set nb = members|length %}
24 {% set no_action = true %}
25 {% set is_public = not login.isLogged() %}
26
27 {% set form = {
28 'order': {
29 'name': 'publicList',
30 'args': {
31 "type": "list"
32 }
33 }
34 } %}
35
36 {% block infoline %}
37 {% set infoline = {
38 'label': _Tn("%count member", "%count members", nb_members)|replace({'%count': nb_members}),
39 'route': {
40 'name': 'filterPublicList',
41 'args': {
42 "type": "list"
43 }
44 }
45 } %}
46 {{ parent() }}
47 {% endblock %}
48
49 {% block header %}
50 {% set columns = [
51 {'label': _T('Name'), order: constant("Galette\\Repository\\Members::ORDERBY_NAME")},
52 {'label': _T("Nickname"), order: constant("Galette\\Repository\\Members::ORDERBY_NICKNAME")},
53 ] %}
54
55 {% if login.isLogged() %}
56 {% set columns = columns|merge([
57 {'label': _T("Email")}
58 ]) %}
59 {% endif %}
60
61 {% set columns = columns|merge([
62 {'label': _T("Information")}
63 ]) %}
64
65 {{ parent() }}
66 {% endblock %}
67
68 {% block search %}
69 <div class="ui icon info visible message">
70 <i class="info circle blue icon" aria-hidden="true"></i>
71 <div class="content">
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'") }}
73 </div>
74 </div>
75 {% endblock %}
76
77 {% block body %}
78 {% for member in members %}
79 {% set rclass = member.getRowClass() %}
80 <tr>
81 <td class="{{ rclass }} username_row" data-scope="row">
82 {% if member.isCompany() %}
83 <span>
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>
86 </span>
87 {% elseif member.isMan() %}
88 <span>
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>
91 </span>
92 {% elseif member.isWoman() %}
93 <span>
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>
96 </span>
97 {% else %}
98 <i class="ui icon" aria-hidden="true"></i>
99 {% endif %}
100 {% if member.website != '' %}
101 <a href="{{ member.website }}">{{ member.sfullname }}</a>
102 {% else %}
103 {{ member.sfullname }}
104 {% endif %}
105 </td>
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>
109 {% endif %}
110 <td class="{{ rclass }}" data-col-label="{{ _T('Information') }}">{{ member.others_infos }}</td>
111 </tr>
112 {% else %}
113 <tr>
114 <td class="emptylist" colspan="4">
115 {{ _T('No member') }}
116 </td>
117 </tr>
118 {% endfor %}
119 {% endblock %}