Skip to content
Snippets Groups Projects
events.tpl 913 B
Newer Older
  • Learn to ignore specific revisions
  • {if $editable}
    <a href="?action=create">Add Event</a>
    {/if}
    <div class="box">
    <div class="boxhead"><h2>Upcoming Events</h2></div>
    <div class="boxcontent">
    
    {if $events|@count < 1}
    <p>No events :(</p> 
    <p>Pester <tt>exec AT sucs.org</tt> to organise some!</p>
    {else}
    
    {foreach from=$events item=event}
    <h3>{$event.name}
    
    {if $editable}<a href="{$baseurl}/Community/Events/{$event.category}_{$event.id}?action=edit">(Edit)</a>{/if} 
    
    <div>{$event.whn_timestamp|date:"l, jS F"}{if $event.show_time},{$event.whn_timestamp|date_format:"%H:%M"}{/if}</div>
    <div>at {$event.location}</div>
    
    <p>
    {$event.description}
    </p>
    {/foreach}
    
    </div>
    <div class="hollowfoot"><div><div></div></div></div>
    </div>
    
    <hr />
    
    <h2>Recent Events</h2>
    <p><small>You missed them. Too bad!</small></p>
    {foreach from=$oldevents item=event}
    <h4>{$event.name} - <small>{$event.whn_timestamp|date_format:"%A, %e %B"}</small></h4>
    {/foreach}