Skip to content

Commit

Permalink
display connected users (dcs) profile link
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch10593 committed Feb 13, 2021
1 parent 31512d6 commit 059462e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion templates/perun/instance.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,19 @@
{% if onlinePlayer.player is null %}
n/a
{% else %}
{{ onlinePlayer.player.lastName }}
{% if onlinePlayer.player.user is not null %}
{% if onlinePlayer.player.user.member %}
<i class="fa fa-user text-success" title="Membre"></i>
{% elseif onlinePlayer.player.user.status == constant('\\App\\Entity\\UserModule::LEVEL_CADET') %}
<i class="fa fa-book-reader text-success" title="Cadet"></i>
{% else %}
<i class="fa fa-user text-primary" title="Invité"></i>
{% endif %}
<a href="{{ path('user_view', {'user': onlinePlayer.player.user.nickname}) }}">{{ onlinePlayer.player.user.nickname }}</a>
{% else %}
<i class="fa fa-user-secret text-secondary" title="Inconnu - non enregistré sur le site"></i>
{{ onlinePlayer.player.lastName }}
{% endif %}
{% endif %}
</td>
<td>
Expand Down

0 comments on commit 059462e

Please sign in to comment.