X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Ftrombino.tpl;h=1d9ed1536a0d5e353bb3e010a6250ef79b39c8da;hb=9f52839d4a55c6b59ab80af35026a064e007ac72;hp=9d39daba4271867dee20f7c339651698e5585f50;hpb=716dedc5f2793d8c79cc886cc9c3101c40d38d05;p=platal.git diff --git a/templates/profile/trombino.tpl b/templates/profile/trombino.tpl index 9d39dab..1d9ed15 100644 --- a/templates/profile/trombino.tpl +++ b/templates/profile/trombino.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 *} @@ -23,9 +23,10 @@

Trombinoscope

-
+ {xsrf_token_field} - {if ($session.promo ge 1995) || ($session.promo le 2002)} + {assign var="profile" value=$smarty.session.user->profile()} + {if $profile && (($profile->yearpromo() ge 1995) || ($profile->yearpromo() le 2002))}

Si tu n'as pas encore fourni de photo, c'est celle du trombinoscope de l'X qui est affichée par défaut dans le profil. Si elle ne te plaît pas, ou si tu n'es quand même @@ -44,11 +45,11 @@ -  [ PHOTO ] +  [ PHOTO ] {if $submited} -  [ PHOTO ] +  [ PHOTO ] {else} Pas d'image soumise {/if}