X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fminifiche.tpl;h=f6cdc6512da1c8a46b85450b419c7ed464f4a3eb;hb=a292484d6d19447f6cc3c10d573338b3275fbc74;hp=a45f1f39b8691e1404dd2246b7e660556eff13b4;hpb=05fef626d9f2e95d367e68b739f76d92f9a3e89b;p=platal.git diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index a45f1f3..f6cdc65 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -28,6 +28,7 @@ {assign var=hasowner value=false} {assign var=registered value=false} {else} + {assign var=hasowner value=true} {if $user->state neq 'pending'} {assign var=registered value=true} {else} @@ -35,7 +36,8 @@ {/if} {/if} {else} - {* Without auth, all profiles appear as registered *} + {* Without auth, all profiles appear as registered and with owner *} + {assign var=hasowner value=true} {assign var=registered value=true} {assign var=withAuth value=false} {/if} @@ -76,7 +78,7 @@ {if $withAuth}
- {if !$registered && !$dead} + {if !$registered && !$dead && $hasowner} {if $show_action eq 'ajouter'} {* *}{icon name=add title="Ajouter à la liste de mes surveillances"} @@ -103,7 +105,7 @@ {/if}
- {if hasPerm('admin')} + {if hasPerm('admin') && $hasowner}
[{if $registered && !$dead} {* @@ -153,7 +155,7 @@ {/if} {if $withAuth} - {if !$registered} + {if !$registered && $hasowner} {"Ce"|sex:"Cette":$profile} camarade n'est pas {"inscrit"|sex:"inscrite":$profile}.