comanage-dev - [comanage-dev] r376 - registry/trunk/app/View/Elements
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r376 - registry/trunk/app/View/Elements
- Date: Sun, 30 Sep 2012 21:42:49 -0400
Author: benno
Date: 2012-09-30 21:42:49 -0400 (Sun, 30 Sep 2012)
New Revision: 376
Modified:
registry/trunk/app/View/Elements/secondaryMenu.ctp
Log:
Display username in top bar
Modified: registry/trunk/app/View/Elements/secondaryMenu.ctp
===================================================================
--- registry/trunk/app/View/Elements/secondaryMenu.ctp 2012-09-29 00:08:52
UTC (rev 375)
+++ registry/trunk/app/View/Elements/secondaryMenu.ctp 2012-10-01 01:42:49
UTC (rev 376)
@@ -34,12 +34,17 @@
</script>
<div id="secondaryMenu" class="rightmenu">
- <?php if($this->Session->check('Auth.User.name')) {
- // Print the user's name
- print '<div id="name">';
+ <?php
+ if($this->Session->check('Auth.User.name')) {
+ // Print the user's name
+ print '<div id="name">';
print generateCn($this->Session->read('Auth.User.name'));
- print '</div>';
- } ?>
+ if($this->Session->check('Auth.User.username')) {
+ print ' (' . $this->Session->read('Auth.User.username') . ')';
+ }
+ print '</div>';
+ }
+ ?>
<?php if($this->Session->check('Auth.User') != NULL) :
// Notification Dropdown
- [comanage-dev] r376 - registry/trunk/app/View/Elements, svnlog, 09/30/2012
Archive powered by MHonArc 2.6.16.