Fix RSS encoding, add a disclaimer for xnet announces...
[platal.git] / templates / login.tpl
... / ...
CommitLineData
1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2006 Polytechnique.org *}
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
23{if $ask_naissance}
24
25{include file='include/form_naissance.tpl'}
26
27{else}
28
29<h1 id='pagetop'>
30Bienvenue {$smarty.session.prenom}
31{if $birthday}
32 et joyeux anniversaire de {$birthday} ans de la part de toute l'équipe !
33{else}
34:o)
35{/if}
36</h1>
37
38<div class="smaller">
39 Ta connexion précédente date du
40 <strong>{$smarty.session.lastlogin|date_format:"%x, %X"}</strong>
41 depuis la machine <strong>{$smarty.session.host}</strong>
42</div>
43
44{if $fiche_incitation}
45 <p>La dernière mise à jour de ta
46 <a href="profile/{$smarty.session.forlife}" class="popup2">fiche</a>
47 date du {$fiche_incitation|date_format}.
48 Il est possible qu'elle ne soit pas à jour.
49 Si tu souhaites la modifier, <a href="profile/edit">clique ici !</a>
50 </p>
51{/if}
52
53{if $photo_incitation}
54 <p>
55 Tu n'as pas mis de photo de toi sur ta fiche, c'est dommage.
56 Clique <a href="photo/change">ici</a> si tu souhaites en ajouter une.
57 </p>
58{/if}
59
60{if $geoloc_incitation > 0}
61 <p>
62 Parmi tes adresses, il y en a {$geoloc_incitation} que nous n'avons pas pu localiser.
63 Clique <a href="profile/edit/adresses">ici</a> pour rectifier.
64 </p>
65{/if}
66
67{include file="include/tips.tpl" full=true}
68
69 <table class="bicol">
70 <tr>
71 <th>
72 {if $smarty.session.core_rss_hash}
73 <a href='rss/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/rss.xml' style="display:block;float:right">
74 {icon name=feed title='fil rss'}
75 </a>
76 {else}
77 <a href='prefs/rss?referer=events' style="display:block;float:right">
78 {icon name=feed_add title='Activer mon fil rss'}
79 </a>
80 {/if}
81 Sommaire des informations événementielles
82 </th>
83 </tr>
84 {iterate item=ev from=$evenement_summary}
85 <tr class="{cycle values="impair,pair"}">
86 <td class="half">
87 &bull;
88 <a href="events{if !$ev.nonlu}/unread/{$ev.id}{else}#newsid{$ev.id}{/if}">
89 {if $ev.nonlu}<strong>{/if}
90 {tidy}
91 {$ev.titre|nl2br}
92 {/tidy}
93 {if $ev.nonlu}</strong>{/if}
94 </a>
95 </td>
96 </tr>
97 {assign var="has_evts" value=true}
98 {/iterate}
99 {if !$has_evts}
100 <tr>
101 <td class="half">Aucun article actuellement</td>
102 </tr>
103 {/if}
104 </table>
105
106 {iterate item=ev from=$evenement}
107 <br />
108
109 <table class="bicol">
110 <tr>
111 <th>
112 <div style="float:right">
113 {if $smarty.session.perms eq 'admin'}
114 <a href="admin/events/edit/{$ev.id}">{icon name=page_edit title="Editer cet article"}</a>
115 {/if}
116 <a href="events/read/{$ev.id}{if $previd}/newsid{$previd}{/if}">{icon name=cross title="Cacher cet article"}</a>
117 </div>
118 {assign var="previd" value=$ev.id}
119 <a id="newsid{$ev.id}"></a>
120 {tidy}
121 {$ev.titre|nl2br}
122 {/tidy}
123 </th>
124 </tr>
125 <tr class="{cycle values="impair,pair"}">
126 <td class="half">
127 {tidy}
128 {$ev.texte|smarty:nodefaults|nl2br}
129 {/tidy}
130 <br />
131 <p class="smaller"><a href="events#pagetop" style="display:block;float:right"><img alt="Sommaire" title="Remonter tout en haut" src="images/up.png"/></a>Annonce proposée par
132 <a href="profile/{$ev.forlife}" class="popup2">
133 {$ev.prenom} {$ev.nom} X{$ev.promo}
134 </a>
135 </p>
136 </td>
137 </tr>
138 </table>
139 {/iterate}
140
141 <p class="smaller">
142 Nota Bene : les informations présentées ici n'engagent que leurs auteurs
143 respectifs et sont publiées à leur initiative. L'association Polytechnique.org
144 ne pourrait en aucun cas être tenue responsable de la nature des propos relatés
145 sur cet espace d'expression et d'information. Elle se réserve le droit de
146 refuser ou de retirer toute information de nature diffamante ou pouvant être
147 interprétée comme polémique par un membre de la communauté polytechnicienne.
148 </p>
149
150 <p class="center">
151 <a href="events/submit">{icon name=add}Proposer une information événementielle</a>
152 </p>
153{/if}
154
155{* vim:set et sw=2 sts=2 sws=2: *}