X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Fmobile%2Fheader.tpl;h=fdded891c265afedfeddbba283779043ad2f1958;hb=32e0397e34d3092eb2b89411ab97ee288f88038a;hp=cd266aeb9ff244112424f10bd0d31d70cc9c5a5e;hpb=ee49ee74b2a7d3c6daaa2d4bc6397b0c89e3099b;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/header.tpl b/WEB-INF/templates/mobile/header.tpl
index cd266aeb..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,53 +52,53 @@
-
+
{if $authenticated}
- {if $user->isAdmin()}
+ {if $user->can('administer_site')}
-
+
-
+
{else}
-
+
- {if !$user->isClient()}
+ {if $user->can('track_own_time') || $user->can('track_time')}
{$i18n.menu.time}
{/if}
- {if $user->isPluginEnabled('ex') && !$user->isClient()}
+ {if $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))}
· {$i18n.menu.expenses}
{/if}
- {if !$user->isClient() && ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {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->canManageTeam() && ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {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->isClient()}
+ {if $user->can('view_users') || $user->can('manage_users')}
· {$i18n.menu.users}
{/if}
- {if $user->canManageTeam() && $user->isPluginEnabled('cl')}
+ {if $user->isPluginEnabled('cl') && ($user->can('view_own_clients') || $user->can('manage_clients'))}
· {$i18n.menu.clients}
{/if}
|
-
+
{/if}
{/if}
-
+
{if $err->yes()}
{/if}
-
+
-
+
{if $msg->yes()}
{/if}
-
+
|