Sha256: 9870ac0e40ac20de9a4c4dfde9f8f48f9f82632b350425edbcdba8edf6d1c451

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

<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 %>"
    <%= "checked" if params[:ids]&.include?(blob.id.to_s) %>
    data-action="change->media-modal#inputChange"
    data-media-modal-target="idCheckbox"
    hidden>

  <!-- Label -->
  <label for="media-item-<%= blob.id %>">
    <% src = blob.image? ? url_for(blob.variant(resize_to_fill: [100, 100])) : url_for(blob) %>
    <%= render 'headmin/thumbnail', src: src, width: 100, height: 100 %>
  </label>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
headmin-0.5.2 app/views/headmin/media/_item.html.erb