From 31c09561b78ef5a9e40f8ff5b18e068f6ff881bc Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sat, 24 Mar 2018 22:00:19 +0000 Subject: [PATCH] Some fixes for desktop header.tpl. --- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/header.tpl | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 4eb4fd67..aa964b0a 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.70.4159 | Copyright © Anuko | +  Anuko Time Tracker 1.17.70.4160 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/header.tpl b/WEB-INF/templates/header.tpl index 9ed099a6..f33bc6b7 100644 --- a/WEB-INF/templates/header.tpl +++ b/WEB-INF/templates/header.tpl @@ -54,7 +54,7 @@ {if $authenticated} - {if $user->isAdmin()} + {if $user->can('administer_site')} @@ -83,9 +83,9 @@ @@ -97,23 +97,23 @@
  {$i18n.menu.logout} · - {if $user->can('manage_own_settings')} - {$i18n.menu.profile} · - {/if} + {if $user->can('manage_own_settings')} + {$i18n.menu.profile} · + {/if} {$i18n.menu.forum} · {$i18n.menu.help}
  - {if $user->can('track_time') || $user->can('track_own_time')} + {if $user->can('track_own_time') || $user->can('track_time')} {$i18n.menu.time} {/if} - {if $user->isPluginEnabled('ex') && ($user->can('track_expenses') || $user->can('track_own_expenses'))} + {if $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))} · {$i18n.menu.expenses} {/if} - {if $user->can('view_invoices') || $user->can('view_own_reports')} + {if $user->can('view_own_reports') || $user->can('view_reports')} · {$i18n.menu.reports} {/if} - {if $user->isPluginEnabled('iv') && ($user->can('manage_invoices') || $user->can('view_own_invoices'))} + {if $user->isPluginEnabled('iv') && ($user->can('view_own_invoices') || $user->can('manage_invoices'))} · {$i18n.title.invoices} {/if} - {if ($user->isPluginEnabled('ch') && ($user->can('view_charts') || $user->can('view_own_charts'))) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode + {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'))} · {$i18n.menu.charts} {/if} - {if $user->can('manage_projects') && ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if ($user->can('track_own_time') || $user->can('track_time')) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} · {$i18n.menu.projects} {/if} {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode) && $user->can('manage_tasks')} -- 2.20.1