X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fminifiche.tpl;h=6e284ebb80ba9f9448c9dd1576461809d029ad95;hb=ba39c6d2636c971e5e4fe9d99eb5ed1fdc57d72d;hp=735b25e6b52f6fd70bacf31f052df0892bd58a61;hpb=d2100923749766ffcf61745b0145cf82a3886716;p=platal.git diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index 735b25e..6e284eb 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 *} @@ -20,22 +20,31 @@ {* *} {**************************************************************************} -{assign var=profile value=$user->profile()} {assign var=dead value=$profile->deathdate} -{if $user->state neq 'pending'} -{assign var=registered value=true} -{else} -{assign var=registered value=false} -{/if} {if $smarty.session.auth ge AUTH_COOKIE} -{assign var=withAuth value=true} + {assign var=withAuth value=true} + {assign var=user value=$profile->owner()} + {if $user == null} + {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} + {assign var=registered value=false} + {/if} + {/if} {else} -{assign var=withAuth value=false} + {* 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} -
Page web : | -{$web} | +{$web.name} : | +{$web.address} |
Géographie : | -{if $address.locality}{$address.locality}, {/if}{$address.country} | +{if $address->locality}{$address->locality}, {/if}{$address->country} | |
Profession : |
- {if $job.url|default:$job.user_site}{$job.name}{else}{$job.name}{/if}
- {if $job.subsubsector} ({$job.subsubsector}){/if}{if $job.description} {$job.description}{/if} + {if $job->company->url|default:$job->user_site}{$job->company->name}{else}{$job->company->name}{/if} + {if $job->description} {$job->description}{/if} |
||
- {"Ce"|sex:"Cette":$user} camarade n'est pas {"inscrit"|sex:"inscrite":$user}. + {"Ce"|sex:"Cette":$profile} camarade n'est pas {"inscrit"|sex:"inscrite":$profile}. Si tu connais son adresse email, - n'hésite pas à nous la transmettre ! + n'hésite pas à nous la transmettre ! | |||
- {"Ce"|sex:"Cette":$user} camarade n'a plus d'adresse de redirection valide. + {"Ce"|sex:"Cette":$profile} camarade n'a plus d'adresse de redirection valide. Si tu en connais une, n'hésite pas à nous la transmettre. |