Skip to content

Commit

Permalink
Merge pull request #36 from sumocoders/improvements
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
tijsverkoyen authored Nov 12, 2024
2 parents 38893fa + 20c2d96 commit db0137d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions templates/user/admin/edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{% block header_navigation %}
{% if not user.confirmed %}
<a class="btn btn-primary" href="{{ path('request_confirmation', {user: user.id}) }}">
<a class="btn btn-primary" href="{{ path('request_confirmation', {user: user.id}) }}" data-turbo-prefetch="false">
<i class="fas fa-envelope mr-2"></i>
{{ 'Resend confirmation mail'|trans }}
</a>
Expand All @@ -18,12 +18,12 @@
</button>
{% endif %}
{% if user.enabled %}
<a class="btn btn-danger ml-2" href="{{ path('user_disable', {user: user.id}) }}">
<a class="btn btn-danger ml-2" href="{{ path('user_disable', {user: user.id}) }}" data-turbo-prefetch="false">
<i class="fas fa-lock mr-2"></i>
{{ 'Disable'|trans }}
</a>
{% else %}
<a class="btn btn-success ml-2" href="{{ path('user_enable', {user: user.id}) }}">
<a class="btn btn-success ml-2" href="{{ path('user_enable', {user: user.id}) }}" data-turbo-prefetch="false">
<i class="fas fa-unlock mr-2"></i>
{{ 'Enable'|trans }}
</a>
Expand Down
6 changes: 3 additions & 3 deletions templates/user/admin/overview.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@
</td>
<td>
<a class="text-nowrap" href="{{ path('user_edit', {user: user.id}) }}">
<i class="fas fa-edit" title="{{ 'Edit user'|trans }}" data-toggle="tooltip" data-placement="top"></i>
<i class="fas fa-edit" title="{{ 'Edit user'|trans }}" data-controller="tooltip" data-bs-placement="top"></i>
</a>
</td>
{% if is_granted('ROLE_ADMIN') %}
<td>
<a class="text-nowrap" href="{{ impersonation_path(user.username) }}">
<i class="fas fa-sign-in-alt" title="{{ 'Switch to user'|trans }}" data-toggle="tooltip" data-placement="top"></i>
<a class="text-nowrap" href="{{ impersonation_path(user.username) }}" data-turbo-prefetch="false">
<i class="fas fa-sign-in-alt" title="{{ 'Switch to user'|trans }}" data-controller="tooltip" data-bs-placement="top"></i>
</a>
</td>
{% endif %}
Expand Down

0 comments on commit db0137d

Please sign in to comment.