X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Ftrombino.tpl;h=6da5a5484794248fee279222b7d59ad22fd4e433;hb=1eddb8dcd2185df6d81f04392063c45a298661b4;hp=9d39daba4271867dee20f7c339651698e5585f50;hpb=716dedc5f2793d8c79cc886cc9c3101c40d38d05;p=platal.git diff --git a/templates/profile/trombino.tpl b/templates/profile/trombino.tpl index 9d39dab..6da5a54 100644 --- a/templates/profile/trombino.tpl +++ b/templates/profile/trombino.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2014 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} @@ -130,4 +131,4 @@

-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} +{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}