Introduced isPost() function to keep things shorter
[timetracker.git] / WEB-INF / templates / header.tpl
index 2d3bb20..2e058ef 100644 (file)
@@ -55,7 +55,7 @@ With 101% height we essentially force the scrollbar to always appear. -->
         </tr>
       </table>
       <!-- End of top image -->
-      
+
 {if $authenticated}
   {if $user->isAdmin()}
       <!-- Top menu for admin -->
@@ -160,7 +160,7 @@ With 101% height we essentially force the scrollbar to always appear. -->
       <!-- End of page title and user details -->
 
       <!-- Output errors -->
-{if !$errors->isEmpty()}
+{if $errors->yes()}
       <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
         <tr>
           <td class="error">
@@ -174,7 +174,7 @@ With 101% height we essentially force the scrollbar to always appear. -->
       <!-- End of output errors -->
 
       <!-- Output messages -->
-{if !$messages->isEmpty()}
+{if $messages->yes()}
       <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
         <tr>
           <td class="info_message">
@@ -185,4 +185,4 @@ With 101% height we essentially force the scrollbar to always appear. -->
         </tr>
       </table>
 {/if}
-      <!-- End of output messages -->
\ No newline at end of file
+      <!-- End of output messages -->