Sha256: f3c05287892326e72ca216b5f0c2679ddb0549b7a0b6f924ef86b4e847e26f22

Contents?: true

Size: 605 Bytes

Versions: 226

Compression:

Stored size: 605 Bytes

Contents

<figure class="attachment attachment--<%= blob.representable? ? "preview" : "file" %> attachment--<%= blob.filename.extension %>">
  <% if blob.representable? %>
    <%= image_tag blob.representation(resize_to_limit: local_assigns[:in_gallery] ? [ 800, 600 ] : [ 1024, 768 ]) %>
  <% 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

226 entries across 221 versions & 21 rubygems

Version Path
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actiontext-7.0.5.1/app/views/active_storage/blobs/_blob.html.erb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/actiontext-7.1.3.4/app/views/active_storage/blobs/_blob.html.erb
actiontext-7.2.0.beta2 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.1.3.4 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.0.8.4 app/views/active_storage/blobs/_blob.html.erb
actiontext-6.1.7.8 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.2.0.beta1 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.1.3.2 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.1.3.1 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.0.8.1 app/views/active_storage/blobs/_blob.html.erb
actiontext-6.1.7.7 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.1.3 app/views/active_storage/blobs/_blob.html.erb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actiontext-7.0.2.3/app/views/active_storage/blobs/_blob.html.erb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actiontext-6.1.6.1/app/views/active_storage/blobs/_blob.html.erb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actiontext-7.0.3.1/app/views/active_storage/blobs/_blob.html.erb
actiontext-7.1.2 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.1.1 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.1.0 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.1.0.rc2 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.1.0.rc1 app/views/active_storage/blobs/_blob.html.erb