X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fcore%2Fplset.tpl;h=009aa234512ead36fa24400a79a00356e15ea2ba;hb=5c6e38d70bb599598a0eadecf3606fe531a5ecf8;hp=ef12a7a8be1a0f12a569fce7a0f9732aea774ff6;hpb=8c4a0c30c699f190cb7906746e22f67014df3368;p=platal.git diff --git a/templates/core/plset.tpl b/templates/core/plset.tpl index ef12a7a..009aa23 100644 --- a/templates/core/plset.tpl +++ b/templates/core/plset.tpl @@ -33,9 +33,12 @@

{$plset_mods[$plset_mod]} {if $plset_mods|@count > 1}[ + {assign var=has_prev value=false} {foreach from=$plset_mods key=mod item=desc name=mods} {if $mod neq $plset_mod} - {$desc} {if !$smarty.foreach.mods.last}| {/if} + {if $has_prev}| {/if} + {$desc} + {assign var=has_prev value=true} {/if} {/foreach} ] @@ -43,6 +46,8 @@

+
{include file=$plset_content} +
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}