Happy New Year !
[platal.git] / templates / carnet / panel.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
ba6ae046 3{* Copyright (C) 2003-2013 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
23<h1>Bilan des Notifications</h1>
24
25<p>
483fb312 26Cette page récapitule tous les événements que tu surveilles de la semaine écoulée.
0337d704 27</p>
28
29<p>
a7de4ef7 30Les lignes en gras sont les événements qui ont été porté à notre connaissance
31depuis ta dernière connexion sur cette page.<br />
32Tu peux les <a href="carnet/panel?read={$now}">marquer comme vus</a> sans te déconnecter.
0337d704 33</p>
34
35<p>
a7de4ef7 36Tu peux choisir plus finement les données affichées sur cette page.
252ca78d 37Il faut pour cela se rendre sur la page de <a href='carnet/notifs'>configuration des notifications</a>.
0337d704 38</p>
39
40<div class="right">
2ab3486b
SJ
41{if $smarty.session.user->token}
42<a href="carnet/rss/{$smarty.session.hruid}/{$smarty.session.user->token}/rss.xml" title="Notifications">{icon name=feed title='fil rss'}</a>
0337d704 43{/if}
44</div>
45
009b8ab7
FB
46{foreach from=$notifs item=cat}
47<fieldset style="width: 75%; margin-left: auto; margin-right: auto">
e73ae835
FB
48 <legend>
49 {if $cat.type eq 'birthday'}{icon name="cake"}
50 {elseif $cat.type eq 'death'}{icon name="star"}
51 {elseif $cat.type eq 'profile'}{icon name="user_suit"}
52 {elseif $cat.type eq 'registration'}{icon name="status_offline"}{/if}
53 &nbsp;{$cat.title}</legend>
009b8ab7
FB
54 {assign var=date value=false}
55 {foreach from=$cat.users item=user}
56 {assign var=userdate value=$cat.operation->getDate($user)}
57 {if !$date || $date ne $userdate}
58 {if $date}
59 </ul>
0337d704 60 {/if}
009b8ab7
FB
61 {assign var=date value=$userdate}
62 <p>Le {$date|date_format}&nbsp;:</p>
63 <ul>
a2a1c2f2 64 {/if}
009b8ab7 65 <li>
d550b4d1 66 {if $cat.operation->seen($user,$smarty.session.user->watch_last)}<strong>{/if}
009b8ab7 67 {profile user=$user promo=true}
d550b4d1 68 {if $cat.operation->seen($user,$smarty.session.user->watch_last)}</strong>{/if}
ee682285
FB
69 {assign var=data value=$cat.operation->getData($user)}
70 {if $data}
71 <ul>
72 {foreach from=$data item=a}
73 <li>{$a}</li>
74 {/foreach}
75 </ul>
76 {/if}
009b8ab7
FB
77 </li>
78 {/foreach}
79 </ul>
80</fieldset>
0337d704 81{/foreach}
82
a7de4ef7 83{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}