X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fheader.tpl;h=e0fd8057a5d99beb1644ad71403ddb4fb5590dd9;hb=73bd55c5aaa9459806ef9fa899cc5a24513727bc;hp=ce8e229c51aa792347d39965d0a52b33262cdffa;hpb=0dfc4dda20c54e173938eaf196f8e071ce790830;p=timetracker.git diff --git a/WEB-INF/templates/header.tpl b/WEB-INF/templates/header.tpl index ce8e229c..e0fd8057 100644 --- a/WEB-INF/templates/header.tpl +++ b/WEB-INF/templates/header.tpl @@ -20,14 +20,11 @@ {assign var="tab_width" value="700"} - - +
- + {if $user->custom_logo} @@ -54,11 +51,11 @@ With 101% height we essentially force the scrollbar to always appear. -->
- + {if $authenticated} {if $user->isAdmin()} - +
  @@ -68,9 +65,9 @@ With 101% height we essentially force the scrollbar to always appear. -->
- + - +
  @@ -79,9 +76,9 @@ With 101% height we essentially force the scrollbar to always appear. -->
- + {else} - +
  @@ -92,9 +89,9 @@ With 101% height we essentially force the scrollbar to always appear. -->
- + - +
  @@ -105,7 +102,7 @@ With 101% height we essentially force the scrollbar to always appear. --> · {$i18n.menu.expenses} {/if} {if !$user->isClient()}· {/if}{$i18n.menu.reports} - {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')} + {if $user->isPluginEnabled('iv') && ($user->can('manage_invoices') || $user->can('view_own_invoices'))} · {$i18n.title.invoices} {/if} {if ($user->isPluginEnabled('ch') && !$user->isClient()) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode @@ -115,13 +112,13 @@ With 101% height we essentially force the scrollbar to always appear. --> {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)} + {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode) && $user->can('manage_tasks')} · {$i18n.menu.tasks} {/if} {if !$user->isClient()} · {$i18n.menu.users} {/if} - {if $user->canManageTeam() && $user->isPluginEnabled('cl')} + {if $user->isPluginEnabled('cl') && $user->can('manage_clients')} · {$i18n.menu.clients} {/if} {if $user->isManager()} @@ -130,10 +127,10 @@ With 101% height we essentially force the scrollbar to always appear. -->
- + {/if} {else} - +
  @@ -149,16 +146,16 @@ With 101% height we essentially force the scrollbar to always appear. --> {/if}
- + {if $title} - +
{$title}{if $timestring}: {$timestring}{/if}
{$user->name|escape:'html'}{if $user->isAdmin()} {$i18n.label.role_admin}{elseif $user->isManager()} {$i18n.label.role_manager}{elseif $user->canManageTeam()} {$i18n.label.role_comanager}{/if}{if $user->behalf_id > 0} {$i18n.label.on_behalf} {$user->behalf_name|escape:'html'}{/if}{if $user->team}, {$user->team|escape:'html'}{/if}
{$user->name|escape}{if $user->isAdmin()} {$i18n.label.role_admin}{elseif $user->isManager()} {$i18n.label.role_manager}{elseif $user->canManageTeam()} {$i18n.label.role_comanager}{/if}{if $user->behalf_id > 0} {$i18n.label.on_behalf} {$user->behalf_name|escape}{/if}{if $user->team}, {$user->team|escape}{/if}
{/if} - + - + {if $err->yes()} @@ -170,9 +167,9 @@ With 101% height we essentially force the scrollbar to always appear. -->
{/if} - + - + {if $msg->yes()} @@ -184,4 +181,4 @@ With 101% height we essentially force the scrollbar to always appear. -->
{/if} - +