Sha256: d42363c415c6388d83018cc9474c2883e09aea19a84a90d9d0b17289994a0c22

Contents?: true

Size: 707 Bytes

Versions: 5

Compression:

Stored size: 707 Bytes

Contents

<% transformations = { resize: local_assigns[:in_gallery] ? "800x600>" : "1024x768>" } %>
<figure class="attachment attachment--<%= blob.representable? ? "preview" : "file" %> attachment--<%= blob.filename.extension %>">
  <% if blob.variable? %>
    <%= image_tag blob.variant(transformations) %>
  <% elsif blob.previewable? %>
    <%= image_tag blob.preview(transformations) %>
  <% end %>

  <figcaption class="attachment__caption">
    <% if caption = blob.try(:caption) %>
      <%= caption %>
    <% else %>
      <span class="attachment__name"><%= blob.filename %></span>
      <span class="attachment__size"><%= number_to_human_size blob.byte_size %></span>
    <% end %>
  </figcaption>
</figure>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminos-1.0.0.pre.rc.5 lib/generators/templates/install/auto/app/views/active_storage/blobs/_blob.html.erb
adminos-1.0.0.pre.rc.4 lib/generators/templates/install/auto/app/views/active_storage/blobs/_blob.html.erb
adminos-1.0.0.pre.rc.3 lib/generators/templates/install/auto/app/views/active_storage/blobs/_blob.html.erb
adminos-1.0.0.pre.rc.2 lib/generators/templates/install/auto/app/views/active_storage/blobs/_blob.html.erb
adminos-1.0.0.pre.rc.1 lib/generators/templates/install/auto/app/views/active_storage/blobs/_blob.html.erb