Skip to content
Snippets Groups Projects
Commit e7544875 authored by gnaegi's avatar gnaegi
Browse files

OO-1514 add identity key to user management

parent 7625fac5
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,7 @@ public class UserShortDescription extends BasicController { ...@@ -70,6 +70,7 @@ public class UserShortDescription extends BasicController {
userPropertyHandlers = UserManager.getInstance().getUserPropertyHandlersFor(usageIdentifyer, isAdministrativeUser); userPropertyHandlers = UserManager.getInstance().getUserPropertyHandlersFor(usageIdentifyer, isAdministrativeUser);
velocityContainer.contextPut("userPropertyHandlers", userPropertyHandlers); velocityContainer.contextPut("userPropertyHandlers", userPropertyHandlers);
velocityContainer.contextPut("user", identity.getUser()); velocityContainer.contextPut("user", identity.getUser());
velocityContainer.contextPut("identityKey", identity.getKey());
if(getIdentity().equals(identity) || isAdministrativeUser) { if(getIdentity().equals(identity) || isAdministrativeUser) {
velocityContainer.contextPut("username", identity.getName()); velocityContainer.contextPut("username", identity.getName());
......
<table class="table table-bordered"> <table class="table table-bordered table-condensed table-striped">
#if($username) #if($username)
<tr> <tr>
<th>$usernameLabel</th> <th>$usernameLabel</th>
<td>$username</td> <td>$username</td>
</tr> </tr>
<tr>
<th>Identity</th>
<td>$identityKey</td>
</tr>
#end #end
#foreach( $propertyHandler in $userPropertyHandlers ) #foreach( $propertyHandler in $userPropertyHandlers )
#if ($propertyHandler.getUserPropertyAsHTML($user, $locale) && $propertyHandler.getUserPropertyAsHTML($user, $locale) != "") #if ($propertyHandler.getUserPropertyAsHTML($user, $locale) && $propertyHandler.getUserPropertyAsHTML($user, $locale) != "")
...@@ -13,4 +17,4 @@ ...@@ -13,4 +17,4 @@
</tr> </tr>
#end #end
#end #end
</table> </table>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment