Fixed bad url in theme page

This commit is contained in:
Li Chen 2013-12-01 20:03:20 +01:00
commit 5656d116af
3 changed files with 22 additions and 7 deletions

View file

@ -1,7 +1,15 @@
{extends file="admin/layout.tpl"}
{block name=content}
<p>
Theme: {$theme} </br>
Exercice: {$ex}
Theme: {$theme->name} </br>
{if isset($ex)}
Exercice: {$ex->id}
{else}
<ul>
{foreach $theme->get_exercices_ordered() as $ex}
<li><a href="/{$SALT_ADMIN}/ex/{$theme->id}-{$theme->name}/{$ex->id}">{$ex->get_name()}</a></li>
{/foreach}
</ul>
{/if}
</p>
{/block}