Commit 31851afe authored by Robert Lyon's avatar Robert Lyon

Bug 1813500: Fixing up index.tpl file

To make the if/else logic cleaner

behatnotneeded

Change-Id: I144dabf352512e9bbf41d9cfd712c6e7e19a2531
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 739614d7
{include file="header.tpl"}
{if $cancreate}
<div class="btn-top-right btn-group btn-group-top">
<a href="{$WWWROOT}group/edit.php" class="btn btn-default creategroup">
<span class="icon icon-lg icon-plus left" role="presentation" aria-hidden="true"></span>
{str tag="creategroup" section="group"}
</a>
</div>
<div class="btn-top-right btn-group btn-group-top">
<a href="{$WWWROOT}group/edit.php" class="btn btn-default creategroup">
<span class="icon icon-lg icon-plus left" role="presentation" aria-hidden="true"></span>
{str tag="creategroup" section="group"}
</a>
</div>
{/if}
{$form|safe}
{if $groups}
<div class="panel panel-default view-container">
<h2 class="panel-heading">{str tag=Results}</h2>
<div id="findgroups" class="list-group">
{$groupresults|safe}
<div class="panel panel-default view-container">
<h2 class="panel-heading">{str tag=Results}</h2>
<div id="findgroups" class="list-group">
{$groupresults|safe}
</div>
</div>
</div>
{/if}
{$pagination|safe}
{if $pagination_js}
<script>
{$pagination_js|safe}
</script>
{if !$groups}
{$pagination|safe}
{if $pagination_js}
<script>
{$pagination_js|safe}
</script>
{/if}
{else}
<p class="no-results">
{str tag="nogroupsfound" section="group"}
{str tag="trysearchingforgroups1" section="group" arg1=$WWWROOT}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment