Added a download area to the forge.

This commit is contained in:
Loic d'Anterroches
2008-08-04 00:42:05 +02:00
parent fb9d52fa87
commit 7a5bb7345d
21 changed files with 1071 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
{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>
{/block}