Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
3c57334d
Commit
3c57334d
authored
Oct 07, 2020
by
Bertrand Gauthier
Browse files
Affichage de l'utilisateur connecté : ajout d'un triangle indiquant que ça se déroule
parent
515b4d17
Pipeline
#8387
failed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/View/Helper/UserCurrent.php
View file @
3c57334d
...
...
@@ -46,7 +46,7 @@ class UserCurrent extends UserAbstract
if
(
$userProfileSelectable
)
{
// DS : cas où aucun rôle n'est sélectionné, on affiche le rôle "user"
$role
=
$this
->
getUserContext
()
->
getSelectedIdentityRole
()
?:
$this
->
getUserContext
()
->
getIdentityRole
(
'user'
);
$status
.
=
sprintf
(
", <small>%s</small>"
,
!
method_exists
(
$role
,
'__toString'
)
?
$role
->
getRoleId
()
:
$role
);
$status
.
=
sprintf
(
", <small
class='role-libelle'
>%s</small>"
,
!
method_exists
(
$role
,
'__toString'
)
?
$role
->
getRoleId
()
:
$role
);
}
$userProfileHelper
=
$this
->
getView
()
->
plugin
(
'userProfile'
);
/* @var $userProfileHelper \UnicaenAuth\View\Helper\UserProfile */
...
...
@@ -78,7 +78,7 @@ class UserCurrent extends UserAbstract
data-toggle="popover"
data-html="true"
data-content="$content"
href="#">$status</a>
href="#">$status<
span class="caret"></span><
/a>
EOS;
$out
.
=
PHP_EOL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment