Skip to content

Commit f355313

Browse files
committed
feat(userstable) use icon instead of text
1 parent 44753bc commit f355313

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

javascripts/users-table.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const usersTableService = {
3131
'',
3232
userEmail,
3333
signuptime,
34-
'',
3534
''
3635
]).draw()
3736
if (userLink !== '') {

templates/users-table.twig

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242
<th>{{ _t('EMAIL') }}</th>
4343
{% endif %}
4444
<th>{{ _t('SUBSCRIPTION') }}</th>
45-
<th>{{ _t('MODIFY') }}</th>
46-
<th>{{ _t('DELETE') }}</th>
45+
<th></th>
4746
</tr>
4847
</thead>
4948
<tbody>
@@ -66,27 +65,25 @@
6665
<td>
6766
{% if userIsTheOneConnected %}
6867
<a href="{{ url({tag:'ParametresUtilisateur'}) }}"
69-
class="btn btn-sm btn-primary" role="button">
70-
{{ _t('MODIFY') }}
68+
class="btn btn-sm btn-icon btn-primary" role="button" title="{{ _t('MODIFY') }}">
69+
<i class="fa fa-pencil-alt"></i>
7170
</a>
7271
{% elseif isAdmin %}
7372
{# not the current user, then can be modified #}
7473
<a href="{{ url({tag:'ParametresUtilisateur',params:{user:user.name,from:tag}}) }}"
75-
class="btn btn-sm btn-warning" role="button">
76-
{{ _t('MODIFY') }}
74+
class="btn btn-sm btn-icon btn-warning" role="button" title="{{ _t('MODIFY') }}">
75+
<i class="fa fa-pencil-alt"></i>
7776
</a>
7877
{% endif %}
79-
</td>
80-
<td>
8178
{% if isAdmin and not userIsTheOneConnected %}
8279
<a
8380
data-toggle="modal"
8481
role="button"
8582
href="#userTableDeleteModal"
86-
class="btn btn-sm btn-danger"
83+
class="btn btn-sm btn-icon btn-danger"
8784
data-name="{{ user.name }}"
8885
title="{{ _t('USER_DELETE') }}">
89-
{{ _t('DELETE') }}
86+
<i class="fa fa-trash"></i>
9087
</a>
9188
{% endif %}
9289
</td>
@@ -102,7 +99,6 @@
10299
{% endif %}
103100
<th></th>
104101
<th></th>
105-
<th></th>
106102
</tr>
107103
</tfoot>
108104
{% endif %}

0 commit comments

Comments
 (0)