Sha256: bc906ad2228b074fae188878d5bce951b23a00b46f4870cdd14873e94d35d9a2
Contents?: true
Size: 1.67 KB
Versions: 7
Compression:
Stored size: 1.67 KB
Contents
<div class="content-block item-text row d-block clearfix"> <div class="items-col spotlight-flexbox <%= 'col-md-6' if uploaded_items_block.text? %> col-12 <%= uploaded_items_block.content_align == 'right' ? 'float-right float-end' : 'float-left float-start' %> uploaded-items-block"> <% if uploaded_items_block.files.present? %> <% uploaded_items_block.files.each do |file| %> <div class="box" data-id="<%= file[:id] %>"> <div class="contents"> <% if file[:link].present? %> <%= link_to file[:link], rel: 'ugc' do %> <%= image_tag file[:url], class: 'img-thumbnail', alt: resource_alt_text(file, file[:caption]) %> <% end %> <% else %> <% alt_text = resource_alt_text(file, '') %> <%= image_tag file[:url], class: 'img-thumbnail', alt: alt_text, role: alt_text.present? ? nil : 'presentation' %> <% end %> <% if file[:caption].present? %> <div class="caption"> <%= file[:caption] %> </div> <% end %> <% if uploaded_items_block.zpr_link? %> <%= button_tag t('.zpr_link_html', title: file[:caption]), class: 'btn btn-secondary zpr-link', data: { 'iiif-tilesource' => { type: 'image', url: file[:url] }.to_json } %> <% end %> </div> </div> <% end %> <% end %> </div> <% if uploaded_items_block.text? %> <div class="text-col col-md-6 mw-100"> <%= content_tag(:h3, uploaded_items_block.title) if uploaded_items_block.title.present? %> <%= sir_trevor_markdown uploaded_items_block.text %> </div> <% end %> </div>
Version data entries
7 entries across 7 versions & 1 rubygems