Sha256: 629a3383de222fe456c9e45101fc1291293ba8cd4e4eac763e33226b4dc2d3db

Contents?: true

Size: 675 Bytes

Versions: 30

Compression:

Stored size: 675 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 %>

  <%= link_to rails_blob_path(blob) do %>
    <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>
  <% end %>
</figure>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
pg_rails-7.6.23 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.22 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.22.pre.3 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.22.pre.2 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.22.pre.1 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.11 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.10 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.9 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.8 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.7 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.6 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.5 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.4 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.3 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.2 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.21.pre.1 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.20 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.19 pg_engine/app/views/active_storage/blobs/_blob.html.erb
pg_rails-7.6.18 pg_engine/app/views/active_storage/blobs/_blob.html.erb