1 <!-- The
template to display files available
for download -->
2 <script
id=
"template-download" type=
"text/x-tmpl">
3 {%
for (var i=0, file; file=o.files[i]; i++) { %}
4 <tr
class=
"template-download fade">
5 {%
if (file.error) { %}
7 <td
class=
"name"><span>{%=file.name%}</span></td>
8 <td
class=
"size"><span>{%=o.formatFileSize(file.size)%}</span></td>
9 <td
class=
"error" colspan=
"2"><span
class=
"label label-danger">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
11 <td
class=
"preview">{%
if (file.thumbnail_url) { %}
12 <a href=
"{%=file.url%}" title=
"{%=file.name%}" rel=
"gallery" download=
"{%=file.name%}"><img src=
"{%=file.thumbnail_url%}"></a>
15 <a href=
"{%=file.url%}" title=
"{%=file.name%}" rel=
"{%=file.thumbnail_url&&'gallery'%}" download=
"{%=file.name%}">{%=file.name%}</a>
17 <td
class=
"size"><span>{%=o.formatFileSize(file.size)%}</span></td>
21 <button
class=
"btn btn-danger" data-type=
"{%=file.delete_type%}" data-url=
"{%=file.delete_url%}">
22 <i
class=
"icon-trash icon-white"></i>
23 <span>{%=locale.fileupload.destroy%}</span>
25 <input type=
"checkbox" name=
"delete" value=
"1">