1 {**************************************************************************}
3 {* Copyright (C) 2003-2009 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}{if $birthday}
31 et joyeux anniversaire de la part de toute l'équipe !
36 {if $smarty.session.host}
38 {if $birthday}T{else}t{/if}a 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>.
45 {$reminder|smarty:nodefaults}
48 {if $smarty.session.no_redirect}
52 Tu n'as plus de redirection valide ce qui rend ton adresse Polytechnique.org
53 inutilisable. Rends-toi au plus vite sur <a href="emails/redirect">la page de
54 gestion des emails</a> pour corriger ce problème.
60 {if $fiche_incitation || $photo_incitation || ($geoloc_incitation > 0)}
61 <div class="warnings">
63 {if $fiche_incitation}
65 La dernière mise à jour de ta
66 <a href="profile/{$smarty.session.hruid}" class="popup2">fiche</a>
67 date du {$fiche_incitation|date_format}.
68 Il est possible qu'elle ne soit pas à jour.
69 Si tu souhaites la modifier, <a href="profile/edit">clique ici !</a>
73 {if $photo_incitation}
75 Tu n'as pas mis de photo de toi sur ta fiche, c'est dommage.
76 Clique <a href="photo/change">ici</a> si tu souhaites en ajouter une.
80 {if $geoloc_incitation > 0}
82 Parmi tes adresses, il y en a {$geoloc_incitation} que nous n'avons pas pu localiser.
83 Clique <a href="profile/edit/adresses">ici</a> pour rectifier.
90 {include file="include/tips.tpl" full=true}
92 <table class="tinybicol" id="menu-evts">
93 {foreach from=$events name=events key=category item=evenement}
94 <tr class="pair" style="height: 18px">
95 <td class="half titre" style="height: 18px; padding-top: 1px; padding-bottom: 1px;">
96 {if $smarty.foreach.events.first}
97 {if $smarty.session.core_rss_hash}
98 <a href="rss/{$smarty.session.hruid}/{$smarty.session.core_rss_hash}/rss.xml" style="display:block;float:right" title="Annonces">
99 {icon name=feed title='fil rss'}
102 <a href='prefs/rss?referer=events' style="display:block;float:right">
103 {icon name=feed_add title='Activer mon fil rss'}
107 {if $category eq 'important'}
108 {icon name=error} Informations prioritaires :
109 {elseif $category eq 'news'}
110 {icon name=bell} Nouvelles annonces :
111 {elseif $category eq 'end'}
112 {icon name=clock} Dernières minutes :
114 {icon name=magnifier} Mais encore...
118 {foreach item=ev from=$evenement}
122 <a href="events{if !$ev.nonlu}/unread/{$ev.id}{else}#newsid{$ev.id}{/if}" id="link-evt{$ev.id}">
123 {if $ev.nonlu}<strong>{/if}
127 {if $ev.nonlu}</strong>{/if}
131 {assign var="has_evts" value=true}
137 {if $smarty.session.core_rss_hash}
138 <a href="rss/{$smarty.session.hruid}/{$smarty.session.core_rss_hash}/rss.xml" style="display:block;float:right" title="Annonces">
139 {icon name=feed title='fil rss'}
142 <a href='prefs/rss?referer=events' style="display:block;float:right">
143 {icon name=feed_add title='Activer mon fil rss'}
146 Aucun article actuellement
152 <script type="text/javascript">
155 function readEvent(id) {
156 document.getElementById('content-evt'+id).style.display='none';
157 var link = document.getElementById('link-evt'+id);
158 link.setAttribute('href','events/unread/'+id);
159 for (var i=0; i < link.childNodes.length; i++)
160 if (link.childNodes[i].nodeName == 'STRONG') {
161 link.replaceChild(link.childNodes[i].firstChild,link.childNodes[i]);
163 Ajax.update_html(null, 'events/read/'+id);
170 {foreach from=$events key=category item=evenement}
171 {foreach item=ev from=$evenement}
173 <div id="content-evt{$ev.id}">
176 <table class="bicol">
179 <div style="float: left">
180 {if $category eq 'important'}
181 {icon name=error title="Important"}
182 {elseif $category eq 'news'}
183 {icon name=bell title="Nouvelle annonce"}
184 {elseif $category eq 'end'}
185 {icon name=clock title="Bientôt fini"}
187 {icon name=magnifier title="Annonce"}
190 <div style="float:right">
191 {if hasPerm('admin')}
192 <a href="admin/events/edit/{$ev.id}">{icon name=page_edit title="Editer cet article"}</a>
194 <a href="events/read/{$ev.id}{if $previd}/newsid{$previd}{/if}" onclick="return readEvent('{$ev.id}')">{icon name=cross title="Cacher cet article"}</a>
196 {assign var="previd" value=$ev.id}
197 <a id="newsid{$ev.id}"></a>
203 {cycle values="left,right" assign=position}
208 <div style="float: {$position}; padding-{if $position eq right}left{else}right{/if}: 0.5em">
209 <img src="events/photo/{$ev.id}" alt="{$ev.title}" />
212 <div style="text-align: justify">
214 {$ev.texte|smarty:nodefaults|nl2br}
216 {$ev.texte|miniwiki|smarty:nodefaults}
223 <td class="half smaller">
224 <div style="display:block; float: right; padding-left:1em">
226 <a href="banana/{#globals.banana.event_reply#|default:#globals.banana.event_forum#}/read/{$ev.post_id}">
227 {icon name="comments" title="Discussion"}Suivre la discussion
230 <a href="events#pagetop">
231 <img alt="Sommaire" title="Remonter tout en haut" src="images/up.png"/>
235 <a href="profile/{$ev.hruid}" class="popup2">
236 {$ev.prenom} {$ev.nom} X{$ev.promo}
247 Nota Bene : les informations présentées ici n'engagent que leurs auteurs
248 respectifs et sont publiées à leur initiative. L'association Polytechnique.org
249 ne pourrait en aucun cas être tenue responsable de la nature des propos relatés
250 sur cet espace d'expression et d'information. Elle se réserve le droit de
251 refuser ou de retirer toute information de nature diffamante ou pouvant être
252 interprétée comme polémique par un membre de la communauté polytechnicienne.
256 {icon name=page_edit}
257 <a href="events/submit">Proposer une information événementielle</a> •
258 <a href="nl/submit">Proposer un article pour la Lettre mensuelle</a>
262 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}