{* $Id: wikiplugin_events.tpl 52462 2014-09-04 16:31:28Z alexandrequessy $ *}
<div class="table-responsive">
<table class="table normal table-condensed table-bordered">
<tr><th colspan="2">{tr}Upcoming Events{/tr}</th></tr>

{foreach from=$events item=event}
	<tr class="{cycle advance=false}">
		<td>
			{if $datetime eq 1}
				{capture name="start"}{$event.start|tiki_short_datetime}{/capture}
				{capture name="end"}{$event.end|tiki_short_datetime}{/capture}
				{$smarty.capture.start}{if $smarty.capture.start ne $smarty.capture.end}<br>{$smarty.capture.end}{/if}
			{else}
				{capture name="start"}{$event.start|tiki_short_date}{/capture}
				{capture name="end"}{$event.end|tiki_short_date}{/capture}
				{$smarty.capture.start}{if $smarty.capture.start ne $smarty.capture.end}<br>{$smarty.capture.end}{/if}
			{/if}
		</td>
		<td style=white-space:normal;">
			<a class="linkmodule" href="tiki-calendar_edit_item.php?viewcalitemId={$event.calitemId}">{$event.name|escape}</a>
			{if $desc}<br>{$event.parsed}{/if}
		</td>
	</tr><!-- {cycle} -->
{/foreach}
</table>
</div>
{*Pagination *}
{if !empty($events) && $usePagination ne 'n'}
	{pagination_links cant=$cant step=$maxEvents offset=$offset}{/pagination_links}
{/if}

