Show
Ignore:
Timestamp:
07/15/08 01:53:54 (4 months ago)
Author:
aarkerio
Message:

Messages

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/layouts/portal.ctp

    r647 r652  
    3333           echo $html->link(__("cPanel", true), '/admin/entries/start') . ' | '; 
    3434   endif; 
    35  
     35    
    3636   if (  $session->read('Auth.User.group_id') == 3 ): // the logged user is student 
    37      echo $html->link(__('My profile', true), '/users/edit'). ' | '.$html->link( 
    38                                                                         $html->image('static/mailgray.png',  
    39                                                                                   array('alt'=>'Messages', 'title'=>'Messages')),  
    40                                                                           '/messages/listing', null, null, false) . ' | '; 
     37     echo $html->link(__('My profile', true), '/users/edit'). ' | '; 
    4138 
    4239   endif; 
     40 
     41   $img = ($Element['Message'] != false) ?  'static/mail.png' : 'static/mailgray.png'; 
     42    
     43   $url = ( $session->read('Auth.User.group_id') > 2 ) ?  '/messages/listing':  '/admin/messages/listing'; 
     44 
     45   echo $html->link($html->image($img, array('alt'=>'Messages', 'title'=>'Messages')), $url, null, null, false) . ' | '; 
    4346 
    4447 else: 
     
    5861<div id="page"> 
    5962    <div id="content"> 
    60                        <?php echo $content_for_layout; ?> 
     63                     <?php echo $content_for_layout; ?> 
    6164    </div> 
    6265    <!-- end content -->