ac6d515aebfa24e8428662a934fdec0f41cc84bf
[platal.git] / templates / carnet / panel.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2014 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.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>
43 {/if}
44 </div>
45
46 {foreach from=$notifs item=cat}
47 <fieldset style="width: 75%; margin-left: auto; margin-right: auto">
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>
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>
60     {/if}
61     {assign var=date value=$userdate}
62     <p>Le {$date|date_format}&nbsp;:</p>
63     <ul>
64     {/if}
65     <li>
66       {if $cat.operation->seen($user,$smarty.session.user->watch_last)}<strong>{/if}
67       {profile user=$user promo=true}
68       {if $cat.operation->seen($user,$smarty.session.user->watch_last)}</strong>{/if}
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}
77     </li>
78     {/foreach}
79   </ul>
80 </fieldset>
81 {/foreach}
82
83 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}