X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftrombi.tpl;h=df6dddaebcf3c8d33bd9842e157690e757002ccd;hb=07e4a9a091ac34c84129c230cde455de34e1ae91;hp=5d545628e8cf18bf85b694ea363aba6fb8f59d10;hpb=adbdf493197146e64f93e085bb039e8bfdcc22bb;p=platal.git diff --git a/templates/include/trombi.tpl b/templates/include/trombi.tpl index 5d54562..df6ddda 100644 --- a/templates/include/trombi.tpl +++ b/templates/include/trombi.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2006 Polytechnique.org *} +{* Copyright (C) 2003-2014 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,7 +20,7 @@ {* *} {**************************************************************************} - +
-
-
-
- {if $trombi_admin && $smarty.session.perms eq 'admin'}
-
-
+
+
+ {if $trombi_admin && hasPerm('admin') && !$urlmainsite}
+
+ {icon name=wrench title="[admin]"}
{/if}
- - {$p.prenom} {$p.nom}{if $trombi_show_promo} ({$p.promo}){/if} + + {$p.name_display}{if $trombi_show_promo} ({$p.promo_display}){/if} |
{if $loop eq "3"}
@@ -64,4 +63,4 @@