X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fcarnet%2Fpanel.tpl;h=8add8b0c84212a3a8a594fcb5297b8c4d8801e41;hb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;hp=02aa2c2a118a394237adf0db0309a71a73b9b42f;hpb=84fc72ffb0ef96311a18e668c2d427e8642753d5;p=platal.git diff --git a/templates/carnet/panel.tpl b/templates/carnet/panel.tpl index 02aa2c2..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 *} @@ -43,56 +43,36 @@ Il faut pour cela se rendre sur la page de configuration {/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} - {if $promo[0].sexe} - {$notifs->_cats[$cid].mail_sg_xette} : - {else} - {$notifs->_cats[$cid].mail_sg} : - {/if} +{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} :

+ - {/section} - {/foreach} -
{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: *}