Commits

Thejesh GN committed 8c55dc9

changed to username instead of You, for user menu

Comments (0)

Files changed (2)

gui/basic/main.html

               <? endforeach; ?> 
               <? if( $this->get('SESSION["user_email"]')  ): ?>
                 <li class="dropdown">
-                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">You<b class="caret"></b></a>
-                  <ul class="dropdown-menu">
-                  <li><a href="/user/<?=$this->get('SESSION["user_name"]'); ?>">Public Profile</a></li>
-                  <li><a href="/auth/user/edit">Edit Profile</a></li>
-                  <li><a href="#" id="signout">Sign out</a></li>
+                    <? if( $this->get('SESSION["user_name"]')  ): ?>
+                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
+                          <?=$this->get('SESSION["user_name"]'); ?><b class="caret"></b>
+                        </a>                    
+                        <ul class="dropdown-menu">
+                        <li><a href="/user/<?=$this->get('SESSION["user_name"]'); ?>">Public Profile</a></li>
+                        <li><a href="/auth/user/edit">Edit Profile</a></li>
+                    <? else : ?>
+                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">
+                        You<b class="caret"></b>
+                      </a>
+                        <ul class="dropdown-menu">
+                    <? endif; ?>
+                    <li><a href="#" id="signout">Sign out</a></li>
                   </ul>
                 </li>  
               <? else: ?>
 require __DIR__.'/external_lib/markdown.php';
 $app->set('AUTOLOAD','inc/;inc/temp/');
 $app->set('GUI','gui/');
-$app->set('DEBUG',3);
+$app->set('DEBUG',4);
 $app->set('top_menu',
 	array(
         'questions'=>'Questions',