Skip to content
Snippets Groups Projects
Commit b07f854b authored by Graham Cole's avatar Graham Cole
Browse files

deal better with there being no events. Of course, that will never happen... ;-)

parent 426034d1
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,10 @@
<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="{$event.category}_{$event.id}?action=edit">(Edit)</a>{/if}
......@@ -13,6 +17,7 @@
{$event.description}
</p>
{/foreach}
{/if}
</div>
<div class="hollowfoot"><div><div></div></div></div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment