Introduced isPost() function to keep things shorter
[timetracker.git] / WEB-INF / templates / mobile / header.tpl
index 5b4d1fd..b09f0da 100644 (file)
@@ -55,7 +55,7 @@
       <!-- End of top image -->
 
       <!-- Output errors -->
-{if !$errors->isEmpty()}
+{if $errors->yes()}
       <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
         <tr>
           <td class="error">
@@ -69,7 +69,7 @@
       <!-- 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">