Sha256: 257d21f9b7f9110c44c368b30d75fac8b17b07f6f5be1f39ee1a4984d50040a0

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 KB

Contents

<!-- The template to display files available for download -->
<script id="template-download" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
  <tr class="template-download fade">
    <td>
      <span class="preview">
          {% if (file.thumbnail_url) { %}
              <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnail_url%}"></a>
          {% } %}
      </span>
    </td>
    <td>
      <p class="name">
        {% if (file.url) { %}
          <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnail_url?'data-gallery':''%}>{%=file.name%}</a>
        {% } else { %}
          <span>{%=file.name%}</span>
        {% } %}
      </p>
      {% if (file.error) { %}
        <div><span class="label label-danger"><%= t '.error' %></span> {%=file.error%}</div>
      {% } %}
    </td>
    <td>
      <span class="size">{%=o.formatFileSize(file.size)%}</span>
    </td>
    <td>
      {% if (file.delete_url) { %}
        <button class="btn btn-danger cancel delete" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}"{% if (file.delete_with_credentials) { %} data-xhr-fields='{"with_credentials":true}'{% } %}>
          <i class="glyphicon glyphicon-trash"></i>
          <span><%= t '.delete' %></span>
        </button>
        <input type="checkbox" name="delete" value="1" class="toggle">
      {% } else { %}
        <button class="btn btn-warning cancel">
          <i class="glyphicon glyphicon-ban-circle"></i>
          <span><%= t '.cancel' %></span>
        </button>
      {% } %}
    </td>
  </tr>
{% } %}
</script>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jquery-file-upload-0.0.6 app/views/jquery-file-upload/basic_plus_ui/_download.html.erb
jquery-file-upload-0.0.5 app/views/jquery-file-upload/basic_plus_ui/_download.html.erb
jquery-file-upload-0.0.4 app/views/jquery-file-upload/basic_plus_ui/_download.html.erb
jquery-file-upload-0.0.3 app/views/jquery-file-upload/basic_plus_ui/_download.html.erb
jquery-file-upload-0.0.2 app/views/jquery-file-upload/basic_plus_ui/_download.html.erb
jquery-file-upload-0.0.1 app/views/jquery-file-upload/basic_plus_ui/_download.html.erb