Sha256: 991e0339a49f17fffaae66e5a0ef1d675bc420c1c5fd99adf32d8c2b8dc2d2f4

Contents?: true

Size: 746 Bytes

Versions: 12

Compression:

Stored size: 746 Bytes

Contents

<% blob = local_assigns.has_key?(:blob) ? local_assigns[:blob] : nil %>
<% if blob.present? %>
  <div data-media-modal-target="item" title="<%= "#{blob.filename} (#{l(blob.created_at, format: :long)})" %>">
    <!-- Input -->
    <input
        id="media-item-<%= blob.id %>"
        type="checkbox"
        value="<%= blob.id %>"
        data-action="change->media-modal#inputChange"
        data-media-modal-target="idCheckbox"
        hidden>

    <!-- Label -->
    <label for="media-item-<%= blob.id %>" class="d-flex">
      <%= render "formstrap/shared/thumbnail", file: blob %>
    </label>
  </div>
<% else %>
  <div>
    <label class="d-flex">
      <%= render "formstrap/shared/thumbnail", file: nil %>
    </label>
  </div>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
formstrap-0.4.5 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.4.4 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.4.3 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.4.2 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.3.5 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.3.4 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.3.3 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.3.2 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.3.1 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.3.0 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.2.1 app/views/formstrap/media/_thumbnail.html.erb
formstrap-0.2.0 app/views/formstrap/media/_thumbnail.html.erb