diff options
| author | michael pereira | 2011-04-26 18:52:31 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-26 18:52:31 +0200 |
| commit | 5979abd46cd3dfb821d78d59b1a63a3bce037ba0 (patch) | |
| tree | b2d15451059521926633228f7960bae03d69daee /application/modules | |
| parent | usb home (diff) | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-5979abd46cd3dfb821d78d59b1a63a3bce037ba0.tar.gz pbs2-5979abd46cd3dfb821d78d59b1a63a3bce037ba0.tar.xz pbs2-5979abd46cd3dfb821d78d59b1a63a3bce037ba0.zip | |
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules')
| -rw-r--r-- | application/modules/user/layouts/user.phtml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/application/modules/user/layouts/user.phtml b/application/modules/user/layouts/user.phtml index 5942725..526345e 100644 --- a/application/modules/user/layouts/user.phtml +++ b/application/modules/user/layouts/user.phtml @@ -90,7 +90,7 @@ echo $this->headScript()."\n"; <div id="head-titlebar"> <div style='float: right'><?php if(Zend_Auth::getInstance()->hasIdentity()){ - echo 'Angemeldet als '; + echo 'Logged in as'; $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); if(isset($userIDsNamespace['membershipID'])){ @@ -105,13 +105,20 @@ echo $this->headScript()."\n"; echo "<b><i>".$person->getFirstname()." ".$person->getName()."</i></b>"; } if(isset($userIDsNamespace['roleID'])){ - echo " in der Rolle "; + echo " in role "; $role = new Application_Model_Role(); $roleMapper = new Application_Model_RoleMapper(); $role = $roleMapper->find($userIDsNamespace['roleID']); echo "<b><i>".$role->getTitle()."</i></b>"; } + if(isset($userIDsNamespace['groupID'])){ + echo " in group "; + $group = new Application_Model_Group(); + $groupMapper = new Application_Model_GroupMapper(); + $group = $groupMapper->find($userIDsNamespace['groupID']); + echo "<b><i>".$group->getTitle()."</i></b>"; + } } ?> </div> |
