HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
download.php
Go to the documentation of this file.
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) { %}
6  <td></td>
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>
10  {% } else { %}
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>
13  {% } %}</td>
14  <td class="name">
15  <a href="{%=file.url%}" title="{%=file.name%}" rel="{%=file.thumbnail_url&&'gallery'%}" download="{%=file.name%}">{%=file.name%}</a>
16  </td>
17  <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
18  <td colspan="2"></td>
19  {% } %}
20  <td class="delete">
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>
24  </button>
25  <input type="checkbox" name="delete" value="1">
26  </td>
27  </tr>
28 {% } %}
29 </script>