1 {**************************************************************************}
3 {* Copyright (C) 2003-2007 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
6 {* This program is free software; you can redistribute it and/or modify *}
7 {* it under the terms of the GNU General Public License as published by *}
8 {* the Free Software Foundation; either version 2 of the License, or *}
9 {* (at your option) any later version. *}
11 {* This program is distributed in the hope that it will be useful, *}
12 {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13 {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14 {* GNU General Public License for more details. *}
16 {* You should have received a copy of the GNU General Public License *}
17 {* along with this program; if not, write to the Free Software *}
18 {* Foundation, Inc., *}
19 {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
21 {**************************************************************************}
25 {include file='include/form_naissance.tpl'}
30 Bienvenue {$smarty.session.prenom}
32 et joyeux anniversaire de {$birthday} ans de la part de toute l'équipe !
36 {if $smarty.session.host}
38 Ta connexion précédente date du
39 <strong>{$smarty.session.lastlogin|date_format:"%x, %X"}</strong>
40 depuis la machine <strong>{$smarty.session.host}</strong>
44 {if $smarty.session.no_redirect}
46 Tu n'as plus de redirection valide ce qui rend ton adresse Polytechnique.org
47 inutilisable. Rend-toi au plus vite sur <a href="emails/redirect">la page de
48 gestion des emails</a> pour corriger ce problème.
52 {if $smarty.session.mx_failures|@count}
54 <legend>{icon name=error}Des problèmes sont actuellement recontrés sur tes redirections suivantes</legend>
55 {foreach from=$smarty.session.mx_failures item=mail}
57 <span class="erreur">{$mail.mail}</span>
58 <div class="explication">{$mail.text}</div>
65 {if $fiche_incitation}
66 <p>La dernière mise à jour de ta
67 <a href="profile/{$smarty.session.forlife}" class="popup2">fiche</a>
68 date du {$fiche_incitation|date_format}.
69 Il est possible qu'elle ne soit pas à jour.
70 Si tu souhaites la modifier, <a href="profile/edit">clique ici !</a>
74 {if $photo_incitation}
76 Tu n'as pas mis de photo de toi sur ta fiche, c'est dommage.
77 Clique <a href="photo/change">ici</a> si tu souhaites en ajouter une.
81 {if $geoloc_incitation > 0}
83 Parmi tes adresses, il y en a {$geoloc_incitation} que nous n'avons pas pu localiser.
84 Clique <a href="profile/edit/adresses">ici</a> pour rectifier.
88 {include file="include/tips.tpl" full=true}
90 <table class="tinybicol" id="menu-evts">
91 {foreach from=$events name=events key=category item=evenement}
92 <tr class="pair" style="height: 18px">
93 <td class="half titre" style="height: 18px; padding-top: 1px; padding-bottom: 1px;">
94 {if $smarty.foreach.events.first}
95 {if $smarty.session.core_rss_hash}
96 <a href='rss/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/rss.xml' style="display:block;float:right">
97 {icon name=feed title='fil rss'}
100 <a href='prefs/rss?referer=events' style="display:block;float:right">
101 {icon name=feed_add title='Activer mon fil rss'}
105 {if $category eq 'important'}
106 {icon name=error} Informations prioritaires :
107 {elseif $category eq 'news'}
108 {icon name=bell} Nouvelles annonces :
109 {elseif $category eq 'end'}
110 {icon name=clock} Dernières minutes :
112 {icon name=magnifier} Mais encore...
116 {iterate item=ev from=$evenement.summary}
120 <a href="events{if !$ev.nonlu}/unread/{$ev.id}{else}#newsid{$ev.id}{/if}" id="link-evt{$ev.id}">
121 {if $ev.nonlu}<strong>{/if}
125 {if $ev.nonlu}</strong>{/if}
129 {assign var="has_evts" value=true}
134 <td class="half">Aucun article actuellement</td>
139 <script type="text/javascript">
142 function readEvent(id) {
143 document.getElementById('content-evt'+id).style.display='none';
144 var link = document.getElementById('link-evt'+id);
145 link.setAttribute('href','events/unread/'+id);
146 for (var i=0; i < link.childNodes.length; i++)
147 if (link.childNodes[i].nodeName == 'STRONG') {
148 link.replaceChild(link.childNodes[i].firstChild,link.childNodes[i]);
150 Ajax.update_html(null, 'events/read/'+id);
157 {foreach from=$events key=category item=evenement}
158 {iterate item=ev from=$evenement.events}
159 <div id="content-evt{$ev.id}">
162 <table class="bicol">
165 <div style="float: left">
166 {if $category eq 'important'}
167 {icon name=error title="Important"}
168 {elseif $category eq 'news'}
169 {icon name=bell title="Nouvelle annonce"}
170 {elseif $category eq 'end'}
171 {icon name=clock title="Bientôt fini"}
173 {icon name=magnifier title="Annonce"}
176 <div style="float:right">
177 {if $smarty.session.perms->hasFlag('admin')}
178 <a href="admin/events/edit/{$ev.id}">{icon name=page_edit title="Editer cet article"}</a>
180 <a href="events/read/{$ev.id}{if $previd}/newsid{$previd}{/if}" onclick="return readEvent('{$ev.id}')">{icon name=cross title="Cacher cet article"}</a>
182 {assign var="previd" value=$ev.id}
183 <a id="newsid{$ev.id}"></a>
189 {cycle values="left,right" assign=position}
194 <div style="float: {$position}; padding-{if $position eq right}left{else}right{/if}: 0.5em">
195 <img src="events/photo/{$ev.id}" alt="{$ev.title}" />
198 <div style="text-align: justify">
199 {$ev.texte|smarty:nodefaults|nl2br}
205 <td class="half smaller">
206 <div style="display:block; float: right; padding-left:1em">
208 <a href="banana/{#globals.banana.event_reply#|default:#globals.banana.event_forum#}/read/{$ev.post_id}">
209 {icon name="comments" title="Discussion"}Suivre la discussion
212 <a href="events#pagetop">
213 <img alt="Sommaire" title="Remonter tout en haut" src="images/up.png"/>
217 <a href="profile/{$ev.forlife}" class="popup2">
218 {$ev.prenom} {$ev.nom} X{$ev.promo}
228 Nota Bene : les informations présentées ici n'engagent que leurs auteurs
229 respectifs et sont publiées à leur initiative. L'association Polytechnique.org
230 ne pourrait en aucun cas être tenue responsable de la nature des propos relatés
231 sur cet espace d'expression et d'information. Elle se réserve le droit de
232 refuser ou de retirer toute information de nature diffamante ou pouvant être
233 interprétée comme polémique par un membre de la communauté polytechnicienne.
237 {icon name=page_edit}
238 <a href="events/submit">Proposer une information événementielle</a> •
239 <a href="nl/submit">Proposer un article pour la Lettre mensuelle</a>
243 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}