From: Pierre Habouzit (MadCoder Date: Sat, 15 Jan 2005 01:19:53 +0000 (+0000) Subject: #63 + notifications enhancements X-Git-Tag: xorg/old~431 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=322999cce473c6275cb64f656f6c4a9cee7754e0;p=platal.git #63 + notifications enhancements git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-325 --- diff --git a/ChangeLog b/ChangeLog index 0cdfb76..05ffa3a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -54,6 +54,9 @@ Bug/Wish : * Misc : - #65: Broken links. -MC + + * Notifications : + - #63: Birthdays are now in the notifications ! -MC * Profile : - #65 : Add professionnal cellphone. -Car diff --git a/htdocs/carnet/notifs.php b/htdocs/carnet/notifs.php index 98442fe..e849863 100644 --- a/htdocs/carnet/notifs.php +++ b/htdocs/carnet/notifs.php @@ -53,8 +53,11 @@ if(Env::has('promo')) { if (Env::has('del_nonins')) $watch->_nonins->del(Env::get('del_nonins')); if (Env::has('add_nonins')) $watch->_nonins->add(Env::get('add_nonins')); if (Env::has('subs')) $watch->_subs->update('sub'); -if (Env::has('flags')) { +if (Env::has('flags_contacts')) { $watch->watch_contacts = Env::getBool('contacts'); + $watch->saveFlags(); +} +if (Env::has('flags_mail')) { $watch->watch_mail = Env::getBool('mail'); $watch->saveFlags(); } diff --git a/templates/carnet/notifs.tpl b/templates/carnet/notifs.tpl index 349979e..1872137 100644 --- a/templates/carnet/notifs.tpl +++ b/templates/carnet/notifs.tpl @@ -26,12 +26,22 @@ S'il n'y a rien
+ Mail + watch_mail}checked="checked"{/if} /> + Recevoir un mail hebdomadaire des évènements que je n'ai pas déjà vus sur le site
+ +
+
+ +
+
Événements à surveiller {foreach from=$watch->cats() item=s key=i} subs($i)}checked="checked"{/if} /> - {$s.short} {if $s.frequent}*{/if}
+ {$s.short} {if $s.type eq near}o{elseif $s.type eq often}*{/if}
{/foreach} - (*): ne concerne pas les promos (évènements très fréquents) + *: ne concerne pas les promos (évènements très fréquents)
+ o: ne concerne que les promos entre {$smarty.session.promo-1} et {$smarty.session.promo+1} que tu surveilles
@@ -45,13 +55,9 @@ S'il n'y a rien
Contacts - watch_contacts}checked="checked"{/if} /> Surveiller mes contacts
- watch_mail}checked="checked"{/if} /> - Recevoir un mail hebdomadaire des évènements que je n'ai pas déjà vus sur le site
+ watch_contacts}checked="checked"{/if} /> Surveiller mes contacts
+
-
- -