0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
5ddeb07c |
3 | {* Copyright (C) 2003-2007 Polytechnique.org *} |
0337d704 |
4 | {* http://opensource.polytechnique.org/ *} |
5 | {* *} |
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. *} |
10 | {* *} |
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. *} |
15 | {* *} |
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 *} |
20 | {* *} |
21 | {**************************************************************************} |
22 | |
0337d704 |
23 | {if $ask_naissance} |
24 | |
25 | {include file='include/form_naissance.tpl'} |
26 | |
27 | {else} |
28 | |
1f7c3690 |
29 | <h1 id='pagetop'> |
0337d704 |
30 | Bienvenue {$smarty.session.prenom} |
31 | {if $birthday} |
a7de4ef7 |
32 | et joyeux anniversaire de {$birthday} ans de la part de toute l'équipe ! |
0337d704 |
33 | {else} |
34 | :o) |
35 | {/if} |
36 | </h1> |
37 | |
ccdbc270 |
38 | {if $smarty.session.host} |
0337d704 |
39 | <div class="smaller"> |
a7de4ef7 |
40 | Ta connexion précédente date du |
9e1743cd |
41 | <strong>{$smarty.session.lastlogin|date_format:"%x, %X"}</strong> |
0337d704 |
42 | depuis la machine <strong>{$smarty.session.host}</strong> |
43 | </div> |
ccdbc270 |
44 | {/if} |
45 | |
46 | {if $smarty.session.no_redirect} |
47 | <p class="erreur"> |
48 | Tu n'as plus de redirection valide ce qui rend ton adresse Polytechnique.org |
49 | inutilisable. Rend-toi au plus vite sur <a href="emails/redirect">la page de |
a7de4ef7 |
50 | gestion des emails</a> pour corriger ce problème. |
ccdbc270 |
51 | </p> |
52 | {/if} |
53 | |
54 | {if $smarty.session.mx_failures|@count} |
55 | <fieldset> |
a7de4ef7 |
56 | <legend>{icon name=error}Des problèmes sont actuellement recontrés sur tes redirections suivantes</legend> |
ccdbc270 |
57 | {foreach from=$smarty.session.mx_failures item=mail} |
58 | <div> |
59 | <span class="erreur">{$mail.mail}</span> |
60 | <div class="explication">{$mail.text}</div> |
61 | </div> |
62 | {/foreach} |
63 | </fieldset> |
64 | {/if} |
65 | |
0337d704 |
66 | |
67 | {if $fiche_incitation} |
a7de4ef7 |
68 | <p>La dernière mise à jour de ta |
7b2413f6 |
69 | <a href="profile/{$smarty.session.forlife}" class="popup2">fiche</a> |
0337d704 |
70 | date du {$fiche_incitation|date_format}. |
a7de4ef7 |
71 | Il est possible qu'elle ne soit pas à jour. |
7b2413f6 |
72 | Si tu souhaites la modifier, <a href="profile/edit">clique ici !</a> |
0337d704 |
73 | </p> |
74 | {/if} |
75 | |
76 | {if $photo_incitation} |
77 | <p> |
78 | Tu n'as pas mis de photo de toi sur ta fiche, c'est dommage. |
7b2413f6 |
79 | Clique <a href="photo/change">ici</a> si tu souhaites en ajouter une. |
0337d704 |
80 | </p> |
81 | {/if} |
82 | |
83 | {if $geoloc_incitation > 0} |
84 | <p> |
2f678da1 |
85 | Parmi tes adresses, il y en a {$geoloc_incitation} que nous n'avons pas pu localiser. |
7b2413f6 |
86 | Clique <a href="profile/edit/adresses">ici</a> pour rectifier. |
0337d704 |
87 | </p> |
88 | {/if} |
0337d704 |
89 | |
dc767839 |
90 | {include file="include/tips.tpl" full=true} |
f75b2292 |
91 | |
02838718 |
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} |
2200e510 |
97 | {if $smarty.session.core_rss_hash} |
98 | <a href='rss/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/rss.xml' style="display:block;float:right"> |
99 | {icon name=feed title='fil rss'} |
100 | </a> |
101 | {else} |
102 | <a href='prefs/rss?referer=events' style="display:block;float:right"> |
103 | {icon name=feed_add title='Activer mon fil rss'} |
104 | </a> |
02838718 |
105 | {/if} |
106 | {/if} |
9ed396c0 |
107 | {if $category eq 'important'} |
108 | {icon name=error} Informations prioritaires : |
109 | {elseif $category eq 'news'} |
d0e45ced |
110 | {icon name=bell} Nouvelles annonces : |
111 | {elseif $category eq 'end'} |
112 | {icon name=clock} Dernières minutes : |
113 | {else} |
114 | {icon name=magnifier} Mais encore... |
115 | {/if} |
116 | </td> |
117 | </tr> |
d0e45ced |
118 | {iterate item=ev from=$evenement.summary} |
119 | <tr class="impair"> |
f75b2292 |
120 | <td class="half"> |
121 | • |
a4a3af33 |
122 | <a href="events{if !$ev.nonlu}/unread/{$ev.id}{else}#newsid{$ev.id}{/if}" id="link-evt{$ev.id}"> |
f75b2292 |
123 | {if $ev.nonlu}<strong>{/if} |
124 | {tidy} |
125 | {$ev.titre|nl2br} |
126 | {/tidy} |
127 | {if $ev.nonlu}</strong>{/if} |
128 | </a> |
129 | </td> |
130 | </tr> |
679c68da |
131 | {assign var="has_evts" value=true} |
f75b2292 |
132 | {/iterate} |
d0e45ced |
133 | {/foreach} |
679c68da |
134 | {if !$has_evts} |
135 | <tr> |
136 | <td class="half">Aucun article actuellement</td> |
137 | </tr> |
138 | {/if} |
f75b2292 |
139 | </table> |
140 | |
a4a3af33 |
141 | <script type="text/javascript"> |
142 | {literal} |
20ac3913 |
143 | <!-- |
a4a3af33 |
144 | function readEvent(id) { |
145 | document.getElementById('content-evt'+id).style.display='none'; |
146 | var link = document.getElementById('link-evt'+id); |
147 | link.setAttribute('href','events/unread/'+id); |
148 | for (var i=0; i < link.childNodes.length; i++) |
149 | if (link.childNodes[i].nodeName == 'STRONG') { |
150 | link.replaceChild(link.childNodes[i].firstChild,link.childNodes[i]); |
151 | } |
152 | Ajax.update_html(null, 'events/read/'+id); |
153 | return false; |
154 | } |
20ac3913 |
155 | --> |
a4a3af33 |
156 | {/literal} |
157 | </script> |
d0e45ced |
158 | |
159 | {foreach from=$events key=category item=evenement} |
160 | {iterate item=ev from=$evenement.events} |
a4a3af33 |
161 | <div id="content-evt{$ev.id}"> |
8e95ff41 |
162 | <br /> |
163 | |
164 | <table class="bicol"> |
165 | <tr> |
166 | <th> |
d0e45ced |
167 | <div style="float: left"> |
9ed396c0 |
168 | {if $category eq 'important'} |
169 | {icon name=error title="Important"} |
170 | {elseif $category eq 'news'} |
d0e45ced |
171 | {icon name=bell title="Nouvelle annonce"} |
172 | {elseif $category eq 'end'} |
173 | {icon name=clock title="Bientôt fini"} |
174 | {else} |
175 | {icon name=magnifier title="Annonce"} |
176 | {/if} |
177 | </div> |
8e95ff41 |
178 | <div style="float:right"> |
bf517daf |
179 | {if $smarty.session.perms->hasFlag('admin')} |
8e95ff41 |
180 | <a href="admin/events/edit/{$ev.id}">{icon name=page_edit title="Editer cet article"}</a> |
181 | {/if} |
a4a3af33 |
182 | <a href="events/read/{$ev.id}{if $previd}/newsid{$previd}{/if}" onclick="return readEvent('{$ev.id}')">{icon name=cross title="Cacher cet article"}</a> |
8e95ff41 |
183 | </div> |
184 | {assign var="previd" value=$ev.id} |
185 | <a id="newsid{$ev.id}"></a> |
186 | {tidy} |
187 | {$ev.titre|nl2br} |
188 | {/tidy} |
189 | </th> |
190 | </tr> |
02838718 |
191 | {cycle values="left,right" assign=position} |
192 | <tr class="impair"> |
193 | <td class="half"> |
194 | <div> |
b2bffbe6 |
195 | {if $ev.img} |
02838718 |
196 | <div style="float: {$position}; padding-{if $position eq right}left{else}right{/if}: 0.5em"> |
197 | <img src="events/photo/{$ev.id}" alt="{$ev.title}" /> |
198 | </div> |
b2bffbe6 |
199 | {/if} |
02838718 |
200 | <div style="text-align: justify"> |
47ea918c |
201 | {$ev.texte|smarty:nodefaults|nl2br} |
02838718 |
202 | </div> |
203 | </div> |
204 | </td> |
205 | </tr> |
206 | <tr class="pair"> |
b2bffbe6 |
207 | <td class="half smaller"> |
208 | <div style="display:block; float: right; padding-left:1em"> |
b2bffbe6 |
209 | {if $ev.post_id} |
210 | <a href="banana/{#globals.banana.event_reply#|default:#globals.banana.event_forum#}/read/{$ev.post_id}"> |
211 | {icon name="comments" title="Discussion"}Suivre la discussion |
212 | </a> • |
213 | {/if} |
214 | <a href="events#pagetop"> |
215 | <img alt="Sommaire" title="Remonter tout en haut" src="images/up.png"/> |
02838718 |
216 | </a> |
b2bffbe6 |
217 | </div> |
218 | Annonce proposée par |
219 | <a href="profile/{$ev.forlife}" class="popup2"> |
220 | {$ev.prenom} {$ev.nom} X{$ev.promo} |
221 | </a> |
8e95ff41 |
222 | </td> |
223 | </tr> |
224 | </table> |
a4a3af33 |
225 | </div> |
8e95ff41 |
226 | {/iterate} |
d0e45ced |
227 | {/foreach} |
8e95ff41 |
228 | |
0337d704 |
229 | <p class="smaller"> |
a7de4ef7 |
230 | Nota Bene : les informations présentées ici n'engagent que leurs auteurs |
231 | respectifs et sont publiées à leur initiative. L'association Polytechnique.org |
232 | ne pourrait en aucun cas être tenue responsable de la nature des propos relatés |
233 | sur cet espace d'expression et d'information. Elle se réserve le droit de |
234 | refuser ou de retirer toute information de nature diffamante ou pouvant être |
235 | interprétée comme polémique par un membre de la communauté polytechnicienne. |
0337d704 |
236 | </p> |
237 | |
d1c97e42 |
238 | <p class="center"> |
1970c12b |
239 | {icon name=page_edit} |
a7de4ef7 |
240 | <a href="events/submit">Proposer une information événementielle</a> • |
1970c12b |
241 | <a href="nl/submit">Proposer un article pour la Lettre mensuelle</a> |
0337d704 |
242 | </p> |
0337d704 |
243 | {/if} |
244 | |
a7de4ef7 |
245 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |