{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2009 Polytechnique.org *}
+{* Copyright (C) 2003-2010 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
<div class="events">
<ul>
- {iterate from=$events item=ev}
+ {foreach from=$events item=ev}
<li class="{if $ev.nonlu}unread{else}read{/if}" id="evt-{$ev.id}">
{if $ev.nonlu}
<div id="mark-read-{$ev.id}" style="float: right">
</div>
{/if}
<a href="events{if !$ev.nonlu}/unread/{$ev.id}{else}#newsid{$ev.id}{/if}" target="_blank" id="link-{$ev.id}"
- title="Ajouté le {$ev.creation_date|date_format} par {$ev.prenom} {$ev.nom} (X{$ev.promo})">
+ title="Ajouté le {$ev.creation_date|date_format} par {profile user=$ev.uid link=false sex=false promo=true}">
{tidy}
{$ev.titre|nl2br}
{/tidy}
</a>
</li>
{assign var="has_evts" value=true}
- {/iterate}
+ {/foreach}
{if !$has_evts}
<li><em>Aucun article actuellement.</em></li>
{/if}