{* $Id: mod-last_modif_events.tpl 17630 2009-03-26 03:37:22Z luciash $ *}

{if $prefs.feature_calendar eq 'y'}
{if !isset($tpl_module_title)}
{if $nonums eq 'y'}
{eval var="{tr}Last `$module_rows` modified events{/tr}" assign="tpl_module_title"}
{else}
{eval var="{tr}Last modifed events{/tr}" assign="tpl_module_title"}
{/if}
{/if}
{tikimodule error=$module_params.error title=$tpl_module_title name="last_modif_events" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
{if $nonums != 'y'}<ol>{else}<ul>{/if}
    {section name=ix loop=$modLastEvents}
     <li>{$modLastEvents[ix].start|tiki_short_datetime}<br />
       <a class="linkmodule" href="tiki-calendar.php?todate={$modLastEvents[ix].start}" title="{$modLastEvents[ix].lastModif|tiki_short_datetime}, {tr}by{/tr} {if $modLastEvents[ix].user ne ''}{$modLastEvents[ix].user}{else}{tr}Anonymous{/tr}{/if}">
        {if $maxlen > 0}{* 0 is default value for maxlen eq to 'no truncate' *}
         {$modLastEvents[ix].name|truncate:$maxlen:"...":true}
        {else}
         {$modLastEvents[ix].name}
        {/if}
       </a>
      </li>
    {/section}
	{if $nonums != 'y'}</ol>{else}</ul>{/if}
{/tikimodule}
{/if}
