Sha256: dbbbf409a5e3b2abe9621f58764796ff2a9bfd480c28b53906e80c895b16f84f

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

<% obj = jr.metadata_record(locale) %>
<div class="gallery_item_blk" data-id="<%= jr.id %>">
  <%= image_tag(picture.image_file.thumb("140x140#").url) %>
  <% unless obj.nil? %>
    <div class="overlay-hover">
      <% unless obj.title.blank? %>
        <%= t('activerecord.attributes.selling_point_picture_metadatum.title') %>: <%= obj.title %>
        <br/>
      <% end %>
      <% unless obj.alternative_text.blank? %>
        <%= t('activerecord.attributes.selling_point_picture_metadatum.alternative_text') %>
        : <%= obj.alternative_text %>
        <br/>
      <% end %>
      <% unless obj.caption.blank? %>
        <%= t('activerecord.attributes.selling_point_picture_metadatum.caption') %>: <%= obj.caption %>
      <% end %>
    </div>
  <% end %>
  <%= yield if block_given? %>
  <div class="command_area">
    <% if not obj.nil? %>
      <%
        if obj.persisted?
          url = edit_polymorphic_path([:admin, obj], :spp_id => jr.id)
        else
          url = new_polymorphic_path([:admin, obj], :spp_id => jr.id)
        end
      %>
      <%= link_to_dialog render_icon(:edit), url, {  }, title: Alchemy.t(:edit_image_properties) %>
    <% end %>
    <div class="destroy">
      <i class="fas fa-times fa-lg fa-fw"></i>
    </div>
  </div>
</div>





Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 app/views/alchemy/custom/model/admin/base/_gallery_item.html.erb