X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fheader.tpl;h=87d2c4012caf4c7c081c12c7f79c4fb0fdd84ee5;hb=f1f7c9878df54a56803a8fb2e557497a28def409;hp=5b4d1fd4410fcb35709afa82a0f92d4c21d4911b;hpb=a781da5661a1932521e0d1feb4be340b97edce9a;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/header.tpl b/WEB-INF/templates/mobile/header.tpl
index 5b4d1fd4..87d2c401 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->isAdmin()}
+
+
+
+
+ {else}
-
-{if !$errors->isEmpty()}
+
+
+
+
+ {if !$user->isClient()}
+ {$i18n.menu.time}
+ {/if}
+ {if $user->isPluginEnabled('ex') && !$user->isClient()}
+ · {$i18n.menu.expenses}
+ {/if}
+ {if !$user->isClient() && ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ · {$i18n.menu.projects}
+ {/if}
+ {if $user->canManageTeam() && ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ · {$i18n.menu.tasks}
+ {/if}
+ {if !$user->isClient()}
+ · {$i18n.menu.users}
+ {/if}
+ {if $user->canManageTeam() && $user->isPluginEnabled('cl')}
+ · {$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}
-
+
|