X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fminifiche.tpl;h=0daa537eaf6fd055a6f7934d4c555868c373cd01;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=f02c3e37b4c7a57cb3300e25b68a4df10d63515b;hpb=a2fa0614a1d25f19f34462f6b21e4fc032619133;p=platal.git diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index f02c3e3..0daa537 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2006 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,114 +20,160 @@ {* *} {**************************************************************************} +{assign var=dead value=$profile->deathdate} +{if $smarty.session.auth ge AUTH_COOKIE} + {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} + {* 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} -{if !$c.inscrit || $c.dcd}
Page web: | -{$c.web} | +{$web.name} : | +{$web.address} |
Géographie: | -{$c.city}{if $c.city && $c.countrytxt}, {/if}{$c.countrytxt} | +Géographie : | +{if $address->locality}{$address->locality}, {/if}{$address->country} |
Mobile: | -{$c.mobile} | +Mobile : | +{$profile->mobile} |
Profession: | +Profession : |
- {$c.entreprise} {if $c.secteur}({$c.secteur}){/if}
- {if $c.fonction} {$c.fonction}{/if} + {if $job->company->url|default:$job->user_site}{$job->company->name}{else}{$job->company->name}{/if} + {if $job->subsubsector} ({$job->subsubsector}){/if}{if $job->description} {$job->description}{/if} |
|
Commentaire: | -{$c.freetext|nl2br} | ++ {"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 ! + | +|
+ {"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. + + |