2008-08-03 22:42:05 +00:00
|
|
|
{extends "downloads/base.html"}
|
|
|
|
{block docclass}yui-t1{assign $inDownloads=true}{/block}
|
|
|
|
{block body}
|
|
|
|
{$downloads.render}
|
|
|
|
{if $isOwner or $isMember}
|
|
|
|
{aurl 'url', 'IDF_Views_Download::submit', array($project.shortname)}
|
|
|
|
<p><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/add.png'}" alt="+" align="bottom" /></a> <a href="{$url}">{trans 'New Download'}</a></p>{/if}
|
|
|
|
|
|
|
|
{/block}
|
|
|
|
{block context}
|
|
|
|
<p><strong>{trans 'Number of files:'}</strong> {$downloads.nb_items}</p>
|
2008-08-06 20:19:46 +00:00
|
|
|
{assign $class = ''}{assign $i = 0}
|
|
|
|
<p class="smaller">{foreach $tags as $label}
|
|
|
|
{aurl 'url', 'IDF_Views_Download::listLabel', array($project.shortname, $label.id)}
|
|
|
|
{if $class != $label.class}{if $i != 0}<br />{/if}<strong class="label">{$label.class}:</strong> {/if}
|
|
|
|
<a href="{$url}" class="label">{$label.name}</a>,{assign $i = $i + 1}{assign $class = $label.class}{/foreach}</p>
|
|
|
|
|
2008-08-03 22:42:05 +00:00
|
|
|
{/block}
|
|
|
|
|