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