Sha256: e99bb17d5beede0a11103fc7922052dce34bbcb792265871e8d2383f1953d55f

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

/ To be used with Javascript-Templates (see: https://github.com/blueimp/JavaScript-Templates)
/ The template to display files available for upload
%script#template-upload{:type => "text/x-tmpl"}
  {% for (var i=0, file; file=o.files[i]; i++) { %}
  %tr.template-upload.fade
    %td
      %span.preview
    %td
      %p.name {%=file.name%}
      {% if (file.error) { %}
      %div
        %span.label.label-danger Error
        {%=file.error%}
      {% } %}
    %td
      %p.size {%=o.formatFileSize(file.size)%}
      {% if (!o.files.error) { %}
      .progress.progress-striped.active{:role => 'progressbar', :"aria-valuemin" => '0', :"aria-valuemax" => '100', :"aria-valuenow" => '0'}
        .progress-bar.progress-bar-success{:style => "width:0%;"}
      {% } %}
    %td
      {% if (!o.files.error && !i && !o.options.autoUpload) { %}
      %button.btn.btn-primary.start
        %i.glyphicon.glyphicon-upload
        %span Start
      {% } %}
      {% if (!i) { %}
      %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_upload.html.haml