X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fusers.tpl;h=ae04bd448a30a9ae16adb88efc97918e4abc1ffb;hb=3c60698710dfd998fd1488c674b944f5df9b0dce;hp=e43f0f673cfa51dd43f8267d0837cb1d3ba33e73;hpb=df370652d9dff5881b911e72cbc050ee757630f8;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/users.tpl b/WEB-INF/templates/mobile/users.tpl
index e43f0f67..ae04bd44 100644
--- a/WEB-INF/templates/mobile/users.tpl
+++ b/WEB-INF/templates/mobile/users.tpl
@@ -5,7 +5,7 @@
-{if $user->canManageTeam()}
+{if $user->can('manage_users')}
{if $inactive_users}
@@ -17,31 +17,19 @@
{if $active_users}
{foreach $active_users as $u}
-
+
- {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_entries}
+ {if $uncompleted_indicators}
{/if}
- {if $user->isManager()}
- {$u.name|escape:'html'}
+ {if $u.rank < $user->rank || ($u.rank == $user->rank && $u.id == $user->id)}
+ {$u.name|escape}
{else}
- {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}
- {$u.name|escape:'html'}
- {else}
- {$u.name|escape:'html'}
- {/if}
+ {$u.name|escape}
{/if}
|
- {$u.login|escape:'html'} |
- {if $smarty.const.ROLE_MANAGER == $u.role}
- {$i18n.form.users.manager} |
- {elseif $smarty.const.ROLE_COMANAGER == $u.role}
- {$i18n.form.users.comanager} |
- {elseif $smarty.const.ROLE_CLIENT == $u.role}
- {$i18n.label.client} |
- {elseif $smarty.const.ROLE_USER == $u.role}
- {$i18n.label.user} |
- {/if}
+ {$u.login|escape} |
+ {$u.role_name|escape} |
{/foreach}
{/if}
@@ -50,55 +38,38 @@
{if $inactive_users}
-
+
-
{foreach $inactive_users as $u}
-
+
- {if $user->isManager()}
- {$u.name|escape:'html'}
+ {if $u.rank < $user->rank}
+ {$u.name|escape}
{else}
- {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$u.name|escape:'html'}{/if}
+ {$u.name|escape}
{/if}
|
- {$u.login|escape:'html'} |
- {if $smarty.const.ROLE_MANAGER == $u.role}
- {$i18n.form.users.manager} |
- {elseif $smarty.const.ROLE_COMANAGER == $u.role}
- {$i18n.form.users.comanager} |
- {elseif $smarty.const.ROLE_CLIENT == $u.role}
- {$i18n.label.client} |
- {elseif $smarty.const.ROLE_USER == $u.role}
- {$i18n.label.user} |
- {/if}
- {if $user->isManager()}
-
- {$i18n.label.edit} |
- {else}
-
- {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.edit}{/if} |
- {/if}
+ {$u.login|escape} |
+ {$u.role_name|escape} |
{/foreach}
-
@@ -111,18 +82,10 @@
{foreach $active_users as $u}
-
- {$u.name|escape:'html'} |
- {$u.login|escape:'html'} |
- {if $smarty.const.ROLE_MANAGER == $u.role}
- {$i18n.form.users.manager} |
- {elseif $smarty.const.ROLE_COMANAGER == $u.role}
- {$i18n.form.users.comanager} |
- {elseif $smarty.const.ROLE_CLIENT == $u.role}
- {$i18n.label.client} |
- {elseif $smarty.const.ROLE_USER == $u.role}
- {$i18n.label.user} |
- {/if}
+
+ {$u.name|escape} |
+ {$u.login|escape} |
+ {$u.role_name|escape} |
{/foreach}
|