Issue 81: Allow users to create downloads that point offsite

This commit is contained in:
Nathan Adams
2015-10-16 22:09:57 -05:00
parent 4421b6d4a1
commit 75986bb272
6 changed files with 134 additions and 9 deletions

View File

@@ -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}

View File

@@ -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>