X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Fheader.tpl;h=b5f122dbe571af516fbf28e209452363c54006a3;hb=1ed162514b774ef5d2f9858efa2436b19d99d484;hp=23dfdc1176f5b36afc8af32bcee1b59e09d3b764;hpb=15c56c8682a43ed4ac3cbe98ca1772478876d5b9;p=timetracker.git diff --git a/WEB-INF/templates/header.tpl b/WEB-INF/templates/header.tpl index 23dfdc11..b5f122db 100644 --- a/WEB-INF/templates/header.tpl +++ b/WEB-INF/templates/header.tpl @@ -83,17 +83,15 @@
- {if $user->can('track_own_time') || $user->can('track_time')} + {if $user->exists() && ($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'))} + {if $user->exists() && $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))} · {$i18n.menu.expenses} {/if} - {if $user->can('view_own_reports') || $user->can('view_reports')} + {if $user->exists() && ($user->can('view_own_reports') || $user->can('view_reports'))} · {$i18n.menu.reports} - {/if} - {if $user->isPluginEnabled('iv') && ($user->can('view_own_invoices') || $user->can('manage_invoices'))} + {/if} + {if $user->exists() && $user->isPluginEnabled('ts') && ($user->can('view_own_timesheets') || $user->can('manage_own_timesheets') || + $user->can('view_timesheets') || $user->can('manage_timesheets') || $user->can('approve_timesheets'))} + · {$i18n.menu.timesheets} + {/if} + {if $user->exists() && $user->isPluginEnabled('iv') && ($user->can('view_own_invoices') || $user->can('manage_invoices'))} · {$i18n.title.invoices} {/if} - {if ($user->isPluginEnabled('ch') && ($user->can('view_own_charts') || $user->can('view_charts'))) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode - || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode || $user->isPluginEnabled('cl'))} + {if ($user->exists() && $user->isPluginEnabled('ch') && ($user->can('view_own_charts') || $user->can('view_charts'))) && + ($smarty.const.MODE_PROJECTS == $user->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode() || + $user->isPluginEnabled('cl'))} · {$i18n.menu.charts} {/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)} + {if ($user->can('view_own_projects') || $user->can('manage_projects')) && ($smarty.const.MODE_PROJECTS == $user->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode())} · {$i18n.menu.projects} {/if} - {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode && ($user->can('view_own_tasks') || $user->can('manage_tasks')))} + {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode() && ($user->can('view_own_tasks') || $user->can('manage_tasks')))} · {$i18n.menu.tasks} {/if} {if $user->can('view_users') || $user->can('manage_users')} @@ -150,7 +153,7 @@ | ||||
{$i18n.menu.login} ·
- {if isTrue($smarty.const.MULTITEAM_MODE) && $smarty.const.AUTH_MODULE == 'db'}
+ {if isTrue('MULTITEAM_MODE') && $smarty.const.AUTH_MODULE == 'db'}
{$i18n.menu.create_group} ·
{/if}
{$i18n.menu.forum} ·
@@ -165,11 +168,7 @@
{if $title}
|