Issue 81: Allow users to create downloads that point offsite
This commit is contained in:
@@ -18,6 +18,12 @@
|
||||
{$form.f.summary|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.ext_file.labelTag}:</strong></th>
|
||||
<td>{if $form.f.ext_file.errors}{$form.f.ext_file.fieldErrors}{/if}
|
||||
{$form.f.ext_file|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.changelog.labelTag}:</th>
|
||||
<td>{if $form.f.changelog.errors}{$form.f.changelog.fieldErrors}{/if}
|
||||
|
@@ -4,9 +4,14 @@
|
||||
|
||||
<div class="download-file">
|
||||
{if $deprecated}<p class="smaller">{blocktrans}<strong>Attention!</strong> This file is marked as deprecated, download it only if you are sure you need this specific version.{/blocktrans}</p>{/if}
|
||||
|
||||
<a href="{url 'IDF_Views_Download::download', array($project.shortname, $file.file)}">{$file}</a> - {$file.filesize|size}
|
||||
{if !$file.ext_file}
|
||||
<br />
|
||||
<span class="helptext">{trans 'md5:'} {$file.md5}</span>
|
||||
{/if}
|
||||
|
||||
|
||||
</div>
|
||||
{if $file.changelog}
|
||||
<h2 class="changes">{trans 'Changes'}</h2>
|
||||
|
Reference in New Issue
Block a user