Sha256: fb35f00c7042f7e25c0a9db76e8867fb71d77155abfd01e238e2945e78647d8a

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

<!-- The template to display files available for upload -->
<script id="template-upload" type="text/x-tmpl">
  {% for (var i=0, file; file=o.files[i]; i++) { %}
    <tr class="template-upload fade">
      <td>
        <span class="preview"></span>
      </td>
      <td>
        <p class="name">{%=file.name%}</p>
        {% if (file.error) { %}
          <div><span class="label label-danger">Error</span> {%=file.error%}</div>
        {% } %}
      </td>
      <td>
        <p class="size">{%=o.formatFileSize(file.size)%}</p>
        {% if (!o.files.error) { %}
          <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
        {% } %}
      </td>
      <td>
        {% if (!o.files.error && !i && !o.options.autoUpload) { %}
          <button class="btn btn-primary start">
            <i class="glyphicon glyphicon-upload"></i>
            <span>Start</span>
          </button>
        {% } %}
        {% if (!i) { %}
          <button class="btn btn-warning cancel">
              <i class="glyphicon glyphicon-ban-circle"></i>
              <span>Cancel</span>
          </button>
        {% } %}
      </td>
    </tr>
  {% } %}
</script>

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
s3_cors_fileupload-0.3.0 lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_upload.html.erb
s3_cors_fileupload-0.3.0 spec/dummy/app/views/s3_uploads/_template_upload.html.erb