Fixed issue 244, project List shouldn't show ',' if there is no short description.

This commit is contained in:
Charles Melbye 2009-07-01 20:17:23 +02:00 committed by Loic d'Anterroches
parent 2a15e2a350
commit d153cd9049

View File

@ -10,7 +10,7 @@
<p><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/add.png'}" alt="+" align="bottom" /></a> <a href="{$url}">{trans 'Create Project'}</a></p>{/if} <p><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/add.png'}" alt="+" align="bottom" /></a> <a href="{$url}">{trans 'Create Project'}</a></p>{/if}
{else} {else}
<ul>{foreach $projects as $p} <ul>{foreach $projects as $p}
<li><a href="{url 'IDF_Views_Project::home', array($p.shortname)}">{$p}</a>, {$p.shortdesc}</li> <li><a href="{url 'IDF_Views_Project::home', array($p.shortname)}">{$p}</a>{if $p.shortdesc}, {$p.shortdesc}{/if}</li>
{/foreach}</ul> {/foreach}</ul>
{/if} {/if}
{/block} {/block}