X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fcarnet%2Fpanel.tpl;h=8add8b0c84212a3a8a594fcb5297b8c4d8801e41;hb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;hp=e0205cccb19017e2b2547171bf4163893a2ff2bf;hpb=179afa7fa79902e11498314d37fe4dbf452b3617;p=platal.git diff --git a/templates/carnet/panel.tpl b/templates/carnet/panel.tpl index e0205cc..8add8b0 100644 --- a/templates/carnet/panel.tpl +++ b/templates/carnet/panel.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -38,57 +38,41 @@ Il faut pour cela se rendre sur la page de configuration

-{if $smarty.session.core_rss_hash} -{icon name=feed title='fil rss'} +{if $smarty.session.token} +{icon name=feed title='fil rss'} {/if}
-{foreach from=$notifs->_data item=c key=cid} -

{if ($c|@count) > 1} -{$notifs->_cats[$cid].mail} : -{else} - {foreach from=$c item=promo} - {if ($promo|@count) > 1} - {$notifs->_cats[$cid].mail} : - {else} - {$notifs->_cats[$cid].mail_sg} : +{foreach from=$notifs item=cat} +
+ {$cat.title} + {assign var=date value=false} + {foreach from=$cat.users item=user} + {assign var=userdate value=$cat.operation->getDate($user)} + {if !$date || $date ne $userdate} + {if $date} + {/if} - {/foreach} -{/if}

- -
- - - {foreach from=$c key=p item=promo} - {section name=row loop=$promo} - $smarty.session.watch_last ) || ( $promo[row].date eq $today ) }style="font-weight: bold"{/if}> - - - - {if $promo[row].data} - + {assign var=date value=$userdate} +

Le {$date|date_format} :

+
{if $smarty.section.row.first}{$p}{/if} - {if $promo[row].inscrit} - - {$promo[row].prenom} {$promo[row].nom} - - {if !$promo[row].contact} - {* - *}{icon name=add title="ajouter à mes contacts"} - {/if} - {else} - {$promo[row].prenom} {$promo[row].nom} - {/if} - - {$promo[row].date|date_format} -
{$promo[row].data|smarty:nodefaults}
- -
+
  • + {if $cat.operation->seen($user,$smarty.session.watch_last)}{/if} + {profile user=$user promo=true} + {if $cat.operation->seen($user,$smarty.session.watch_last)}{/if} + {assign var=data value=$cat.operation->getData($user)} + {if $data} + + {/if} +
  • + {/foreach} + + {/foreach} - {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}