projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More work in progress integrating attachments in reports.
[timetracker.git]
/
WEB-INF
/
templates
/
mobile
/
header.tpl
diff --git
a/WEB-INF/templates/mobile/header.tpl
b/WEB-INF/templates/mobile/header.tpl
index
cd266ae
..
806bd48
100644
(file)
--- a/
WEB-INF/templates/mobile/header.tpl
+++ b/
WEB-INF/templates/mobile/header.tpl
@@
-21,11
+21,11
@@
{assign var="tab_width" value="300"}
{assign var="tab_width" value="300"}
-<table height="100%" cellspacing="0" cellpadding="0" border="0">
+<table height="100%" cellspacing="0" cellpadding="0" border="0"
style="margin-left: auto; margin-right: auto;"
>
<tr>
<td valign="top" align="center"> <!-- This is to centrally align all our content. -->
<tr>
<td valign="top" align="center"> <!-- This is to centrally align all our content. -->
- <!--
T
op image -->
+ <!--
t
op image -->
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
{if $user->custom_logo}
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
{if $user->custom_logo}
@@
-36,7
+36,7
@@
<table cellspacing="0" cellpadding="0" width="{$tab_width}" border="0">
<tr>
<td valign="top">
<table cellspacing="0" cellpadding="0" width="{$tab_width}" border="0">
<tr>
<td valign="top">
- <table cellspacing="0" cellpadding="0" width="100%" border="0">
+ <table
id="page_logo"
cellspacing="0" cellpadding="0" width="100%" border="0">
<tr><td height="6" colspan="2"><img width="1" height="6" src="../images/1x1.gif" border="0"></td></tr>
<tr valign="top">
{if $user->custom_logo}
<tr><td height="6" colspan="2"><img width="1" height="6" src="../images/1x1.gif" border="0"></td></tr>
<tr valign="top">
{if $user->custom_logo}
@@
-52,55
+52,55
@@
</td>
</tr>
</table>
</td>
</tr>
</table>
- <!--
E
nd of top image -->
+ <!--
e
nd of top image -->
{if $authenticated}
{if $authenticated}
- {if $user->
isAdmin(
)}
+ {if $user->
can('administer_site'
)}
- <!--
S
ub menu for admin -->
- <table cellspacing="0" cellpadding="3" width="100%" border="0">
+ <!--
s
ub menu for admin -->
+ <table
id="sub_menu_admin"
cellspacing="0" cellpadding="3" width="100%" border="0">
<tr>
<td align="center" bgcolor="#d9d9d9" height="17" style="background-repeat: repeat-x;" background="../images/subm_bg.gif">
<tr>
<td align="center" bgcolor="#d9d9d9" height="17" style="background-repeat: repeat-x;" background="../images/subm_bg.gif">
- <a class="mainMenu" href="admin_
teams.php">{$i18n.menu.team
s}</a> ·
+ <a class="mainMenu" href="admin_
groups.php">{$i18n.menu.group
s}</a> ·
<a class="mainMenu" href="admin_options.php">{$i18n.menu.options}</a>
</td>
</tr>
</table>
<a class="mainMenu" href="admin_options.php">{$i18n.menu.options}</a>
</td>
</tr>
</table>
- <!--
E
nd of sub menu for admin -->
+ <!--
e
nd of sub menu for admin -->
{else}
{else}
- <!--
S
ub menu for authorized user -->
- <table cellspacing="0" cellpadding="3" width="100%" border="0">
+ <!--
s
ub menu for authorized user -->
+ <table
id="sub_menu_authorized_user"
cellspacing="0" cellpadding="3" width="100%" border="0">
<tr>
<td align="center" bgcolor="#d9d9d9" height="17" style="background-repeat: repeat-x;" background="../images/subm_bg.gif">
<tr>
<td align="center" bgcolor="#d9d9d9" height="17" style="background-repeat: repeat-x;" background="../images/subm_bg.gif">
- {if
!$user->isClient(
)}
+ {if
$user->exists() && ($user->can('track_own_time') || $user->can('track_time')
)}
<a class="mainMenu" href="time.php">{$i18n.menu.time}</a>
{/if}
<a class="mainMenu" href="time.php">{$i18n.menu.time}</a>
{/if}
- {if $user->
isPluginEnabled('ex') && !$user->isClient(
)}
+ {if $user->
exists() && $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses')
)}
· <a class="mainMenu" href="expenses.php">{$i18n.menu.expenses}</a>
{/if}
· <a class="mainMenu" href="expenses.php">{$i18n.menu.expenses}</a>
{/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->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode()
)}
· <a class="mainMenu" href="projects.php">{$i18n.menu.projects}</a>
{/if}
· <a class="mainMenu" href="projects.php">{$i18n.menu.projects}</a>
{/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->getTrackingMode(
)}
· <a class="mainMenu" href="tasks.php">{$i18n.menu.tasks}</a>
{/if}
· <a class="mainMenu" href="tasks.php">{$i18n.menu.tasks}</a>
{/if}
- {if
!$user->isClient(
)}
+ {if
$user->can('view_users') || $user->can('manage_users'
)}
· <a class="mainMenu" href="users.php">{$i18n.menu.users}</a>
{/if}
· <a class="mainMenu" href="users.php">{$i18n.menu.users}</a>
{/if}
- {if $user->
canManageTeam() && $user->isPluginEnabled('cl'
)}
+ {if $user->
isPluginEnabled('cl') && ($user->can('view_own_clients') || $user->can('manage_clients')
)}
· <a class="mainMenu" href="clients.php">{$i18n.menu.clients}</a>
{/if}
</td>
</tr>
</table>
· <a class="mainMenu" href="clients.php">{$i18n.menu.clients}</a>
{/if}
</td>
</tr>
</table>
- <!--
E
nd of sub menu for authorized user -->
+ <!--
e
nd of sub menu for authorized user -->
{/if}
{/if}
{/if}
{/if}
- <!--
O
utput errors -->
+ <!--
o
utput errors -->
{if $err->yes()}
{if $err->yes()}
- <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
+ <table
id="page_errors"
cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
<tr>
<td class="error">
{foreach $err->getErrors() as $error}
<tr>
<td class="error">
{foreach $err->getErrors() as $error}
@@
-110,11
+110,11
@@
</tr>
</table>
{/if}
</tr>
</table>
{/if}
- <!--
E
nd of output errors -->
+ <!--
e
nd of output errors -->
- <!--
O
utput messages -->
+ <!--
o
utput messages -->
{if $msg->yes()}
{if $msg->yes()}
- <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
+ <table
id="page_messages"
cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
<tr>
<td class="info_message">
{foreach $msg->getErrors() as $message}
<tr>
<td class="info_message">
{foreach $msg->getErrors() as $message}
@@
-124,4
+124,4
@@
</tr>
</table>
{/if}
</tr>
</table>
{/if}
- <!--
E
nd of output messages -->
+ <!--
e
nd of output messages -->