Showing the real user name on layout.
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Fri, 18 May 2012 05:16:54 +0000 (07:16 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Fri, 18 May 2012 05:16:54 +0000 (07:16 +0200)
In the right corner beside logout link.

apps/companyfront/templates/layout.php

index 19ee11e..65de699 100644 (file)
@@ -36,7 +36,7 @@
   <div id="main_container">
        <div class="header">
        <div class="logo"><a href="#"><img src="" alt="" title="" border="0" /></a></div>
-       <div class="right_header">Welcome Admin | <a href="<?php echo url_for('sf_guard_signout') ?>" class="logout">Logout</a></div>
+        <div class="right_header">Welcome <?php echo $sf_user->getGuardUser()->getFirstName() ?> | <a href="<?php echo url_for('sf_guard_signout') ?>" class="logout">Logout</a></div>
        </div>
        <div class="main_content">
                <div class="menu">