X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fheader.tpl;h=fdded891c265afedfeddbba283779043ad2f1958;hb=a4c1ced936fb1a1b71d4d34479a9c999aef4b338;hp=2a663c8229ae8c36325dd99f8412e21b24756394;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/header.tpl b/WEB-INF/templates/mobile/header.tpl
index 2a663c82..fdded891 100644
--- a/WEB-INF/templates/mobile/header.tpl
+++ b/WEB-INF/templates/mobile/header.tpl
@@ -21,11 +21,11 @@
{assign var="tab_width" value="300"}
-
+
-
+
{if $user->custom_logo}
@@ -52,32 +52,76 @@
-
+
+
+{if $authenticated}
+ {if $user->can('administer_site')}
+
+
+
+
+ {else}
-
-{if !$errors->isEmpty()}
+
+
+
+
+ {if $user->can('track_own_time') || $user->can('track_time')}
+ {$i18n.menu.time}
+ {/if}
+ {if $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))}
+ · {$i18n.menu.expenses}
+ {/if}
+ {if ($user->can('view_own_projects') || $user->can('manage_projects')) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ · {$i18n.menu.projects}
+ {/if}
+ {if ($user->can('view_own_tasks') || $user->can('manage_tasks')) && $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode}
+ · {$i18n.menu.tasks}
+ {/if}
+ {if $user->can('view_users') || $user->can('manage_users')}
+ · {$i18n.menu.users}
+ {/if}
+ {if $user->isPluginEnabled('cl') && ($user->can('view_own_clients') || $user->can('manage_clients'))}
+ · {$i18n.menu.clients}
+ {/if}
+ |
+
+
+
+ {/if}
+{/if}
+
+
+{if $err->yes()}
- {foreach $errors->getErrors() as $error}
+ {foreach $err->getErrors() as $error}
{$error.message} {* No need to escape as they are not coming from user and may contain a link. *}
{/foreach}
|
{/if}
-
+
-
-{if !$messages->isEmpty()}
+
+{if $msg->yes()}
- {foreach $messages->getErrors() as $message}
+ {foreach $msg->getErrors() as $message}
{$message.message} {* No need to escape. *}
{/foreach}
|
{/if}
-
\ No newline at end of file
+
|