app/views/uploader/default/_download.html.erb in rails-uploader-0.1.2 vs app/views/uploader/default/_download.html.erb in rails-uploader-0.1.3

- old
+ new

@@ -1,20 +1,19 @@ <!-- The template to display files available for download --> <script id="template-download-<%= field.klass %>" type="text/x-tmpl"> {% for (var i=0, file; file=o.files[i]; i++) { %} - <div id="asset_{%=file.id%}" class="attach_item template-download"> - <div class="delete"> - <a href="#" class="del_btn" data-type="DELETE" data-url="/uploader/attachments/{%=file.id%}?klass=<%= field.klass %>"></a> - </div> - <div class="thumbnail preview"> - <a href="{%=file.url%}" download="{%=file.filename%}"> - <img src="{%=file.thumb_url%}" title="{%=file.filename%}" rel="gallery" /> - </a> - </div> - <div class="infoHolder"> - <div class="fileName">{%=file.filename%}</div> - <div class="fileWeight">{%=o.formatFileSize(file.size)%}</div> - </div> - </div> + <div class="buttons-panel"> + <a href="#" class="del_btn delete" data-type="DELETE" data-url="/uploader/attachments/{%=file.id%}?klass=<%= field.klass %>"></a> + </div> + <div class="thumbnail preview"> + <a href="{%=file.url%}" download="{%=file.filename%}"> + <img src="{%=file.thumb_url%}" title="{%=file.filename%}" rel="gallery" /> + </a> + </div> + <div class="infoHolder"> + <div class="fileName">{%=file.filename%}</div> + <div class="fileWeight">{%=o.formatFileSize(file.size)%}</div> + </div> + </div> {% } %} </script>