{if $user->custom_logo}
{else}
|
{/if}
|
{if $user->custom_logo}
|
{else}
|
{/if}
|
|
{if $authenticated}
{if $user->can('administer_site')}
{else}
{if $user->exists() && ($user->can('track_own_time') || $user->can('track_time'))}
{$i18n.menu.time}
{/if}
{if $user->exists() && $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))}
· {$i18n.menu.expenses}
{/if}
{if $user->exists() && ($user->can('view_own_reports') || $user->can('view_reports') || $user->can('view_all_reports') || $user->can('view_client_reports'))}
{if !$user->isClient()}·{/if} {$i18n.menu.reports}
{/if}
{if $user->exists() && $user->isPluginEnabled('ts') && ($user->can('track_own_time') || $user->can('track_time'))}
· {$i18n.menu.timesheets}
{/if}
{if $user->exists() && $user->isPluginEnabled('iv') && ($user->can('manage_invoices') || $user->can('view_client_invoices'))}
· {$i18n.title.invoices}
{/if}
{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->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode())}
· {$i18n.menu.projects}
{/if}
{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')}
· {$i18n.menu.users}
{/if}
{if $user->isPluginEnabled('cl') && ($user->can('view_own_clients') || $user->can('manage_clients'))}
· {$i18n.menu.clients}
{/if}
{if $user->can('export_data')}
· {$i18n.menu.export}
{/if}
|
{/if}
{else}
{/if}
{if $title}
{$user->getUserPartForHeader()} | {* No need to escape as it is done in the class. *}
{/if}
{if $err->yes()}
{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 $msg->yes()}
{foreach $msg->getErrors() as $message}
{$message.message} {* No need to escape. *}
{/foreach}
|
{/if}
|