Sha256: 124e230b23da2d94c63aa92689936f1edd51f94069f334a1ead71d878b2cc340

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

<!-- The template to display files that have been uploaded to S3 already -->
<!-- This essentially is a stand-in for the template_download partial for the s3_cors_fileupload gem's purposes -->
<script id="template-uploaded" type="text/x-tmpl">
  <tr class="template-uploaded" id="source_file_{%=o.id%}">
    <td class="preview">
      {% if (o.image == true) { %}
        <a href="{%=o.url%}" title="{%=o.name%}" rel="gallery" download="{%=o.name%}">
          <image src="{%=o.url%}", style='width:80px; height:56px;'></image>
        </a>
      {% } %}
    </td>
    <td class="name">
      <a href="{%=o.url%}" title="{%=o.name%}" rel="{%=o.thumbnail_url&&'gallery'%}" download="{%=o.name%}">{%=o.name%}</a>
    </td>
    <td class="size"><span>{%=formatFileSize(o.size)%}</span></td>
    <td colspan="2"></td>
    <td class="delete">
      <button class="btn btn-danger delete" data-type="DELETE" data-url="{%=o.delete_url%}" data-confirmation="Are you sure?" {% if (file.delete_with_credentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
        <i class="icon-trash icon-white"></i>
        <span>Delete</span>
      </button>
      <input type="checkbox" name="delete" value="1">
    </td>
  </tr>
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
s3_cors_fileupload-0.2.0 lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_uploaded.html.erb
s3_cors_fileupload-0.2.0.pre1 lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_uploaded.html.erb