Sha256: d7ce7a35f10b8f6d629ad65a3b9c5f5f8840803b0ebd4e7f523e3d5f47d66d25

Contents?: true

Size: 1.51 KB

Versions: 1

Compression:

Stored size: 1.51 KB

Contents

/ To be used with Javascript-Templates (see: https://github.com/blueimp/JavaScript-Templates)
/ The template to display files that have been uploaded to S3 already
%script#template-uploaded{:type => "text/x-tmpl"}
  %tr.template-uploaded{:id => "source_file_{%=o.id%}"}
    %td
      %span.preview
        {% if (o.image == true) { %}
        %a{:download => "{%=o.name%}", :href => "{%=o.url%}", :title => "{%=o.name%}", :"data-gallery" => ''}
          %img{:src => "{%=o.url%}", :style => 'width:80px; height:56px;'}
        {% } %}
    %td
      %p.name
        {% if (o.url) { %}
        %a{:href => "{%=o.url%}", :title => "{%=o.name%}", :download => "{%=o.name%}", :"data-gallery" => !"{%= o.image ? 'true' : '' %}".html_safe.empty? && ''} {%=o.name%}
        {% } else { %}
        %span {%=o.name%}
        {% } %}
    %td
      %span.size {%=formatFileSize(o.size)%}
    %td
      {% if (o.delete_url) { %}
      %button.btn.btn-danger.delete{"data-type" => "DELETE", "data-url" => "{%=o.delete_url%}", "data-object_id" => "{%=o.id%}", "data-confirmation" => "Are you sure?", "data-xhr-fields" => !"{% if (o.delete_with_credentials) { %} {'withCredentials': true} {% } %}".blank? && "{% if (o.delete_with_credentials) { %} {'withCredentials': true} {% } %}"}
        %i.icon-trash.icon-white
        %span Delete
      %input.toggle{:name => "delete", :type => "checkbox", :value => "1"}
      {% } else { %}
      %button.btn.btn-warning.cancel
        %i.glyphicon.glyphicon-ban-circle
        %span Cancel
      {% } %}
          

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
s3_cors_fileupload-0.3.0 lib/generators/s3_cors_fileupload/install/templates/views/haml/_template_uploaded.html.haml