Sha256: 842753caf6b4768981867ed649ea97c59f42ec79785e4e75f458e8486e802685

Contents?: true

Size: 574 Bytes

Versions: 12

Compression:

Stored size: 574 Bytes

Contents

<%#
    headmin/table/body/text
    accepts block: no
    parameters:
      value: (activestorage) image
%>

<td class="h-table-cell-image">
  <% if value&.attached? %>
    <% if defined?(url) && url %>
      <%= link_to url, title: t(".open") do %>
        <%= image_tag value.variant(resize_to_fill: [34, 34]), width: 34, height: 34, alt: value.filename, title: value.filename %>
      <% end %>
    <% else %>
      <%= image_tag value.variant(resize_to_fill: [34, 34]), width: 34, height: 34, alt: value.filename, title: value.filename %>
    <% end %>
  <% end %>
</td>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/table/body/_image.html.erb
headmin-0.6.2 app/views/headmin/table/body/_image.html.erb
headmin-0.6.1 app/views/headmin/table/body/_image.html.erb
headmin-0.6.0 app/views/headmin/table/body/_image.html.erb
headmin-0.5.9 app/views/headmin/table/body/_image.html.erb
headmin-0.5.8 app/views/headmin/table/body/_image.html.erb
headmin-0.5.7 app/views/headmin/table/body/_image.html.erb
headmin-0.5.6 app/views/headmin/table/body/_image.html.erb
headmin-0.5.5 app/views/headmin/table/body/_image.html.erb
headmin-0.5.4 app/views/headmin/table/body/_image.html.erb
headmin-0.5.3 app/views/headmin/table/body/_image.html.erb
headmin-0.5.2 app/views/headmin/table/body/_image.html.erb