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
thecore_ui_commons-2.4.4 app/views/active_storage/blobs/_blob.html.erb
action_mosaico-0.1.5 app/views/active_storage/blobs/_blob.html.erb
action_mosaico-0.1.4 app/views/active_storage/blobs/_blob.html.erb
action_mosaico-0.1.3 app/views/active_storage/blobs/_blob.html.erb
action_mosaico-0.1.2 app/views/active_storage/blobs/_blob.html.erb
action_mosaico-0.1.1 app/views/active_storage/blobs/_blob.html.erb
action_mosaico-0.1.0 app/views/active_storage/blobs/_blob.html.erb
thecore_ui_commons-2.4.3 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.0.0.alpha2 app/views/active_storage/blobs/_blob.html.erb
actiontext-7.0.0.alpha1 app/views/active_storage/blobs/_blob.html.erb
thecore_ui_commons-2.4.2 app/views/active_storage/blobs/_blob.html.erb
thecore_ui_commons-2.4.1 app/views/active_storage/blobs/_blob.html.erb
thecore_ui_commons-2.4.0 app/views/active_storage/blobs/_blob.html.erb
thecore_ui_commons-2.3.10 app/views/active_storage/blobs/_blob.html.erb
thecore_ui_commons-2.3.9 app/views/active_storage/blobs/_blob.html.erb
thecore_ui_commons-2.3.8 app/views/active_storage/blobs/_blob.html.erb
actiontext-6.1.4.1 app/views/active_storage/blobs/_blob.html.erb
actiontext-6.0.4.1 app/views/active_storage/blobs/_blob.html.erb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/actiontext-6.1.4/app/views/active_storage/blobs/_blob.html.erb
thecore_ui_commons-2.3.7 app/views/active_storage/blobs/_blob.html.erb