Sha256: f67c4371f3bfe85b87fa06461920f67e6ba846767a0c7641f761566333789c55

Contents?: true

Size: 1.24 KB

Versions: 7

Compression:

Stored size: 1.24 KB

Contents

<%= content_tag(:div, class: "linkmap_areas", data: data_attributes) do %>
  <% (configuration['linkmap_areas'].presence || []).each_with_index do |attributes, index| %>
    <%= linkmap_area(entry, attributes, index, configuration['background_type']) do %>
      <canvas class="visited_image"></canvas>

      <% if configuration['background_type'] == 'hover_video' &&
            !Pageflow::ImageFile.find_by_id(configuration['hover_image_id']) %>

        <%= background_image_div_with_size(configuration,
                                           'panorama_video',
                                           file_type: 'video_file',
                                           class: 'hover_image') %>
      <% else %>
        <canvas class="hover_image"></canvas>
      <% end %>

      <div class="linkmap_marker <%= attributes['marker'] %>">
        <div class="inline_loading_spinner">
          <div class="circle_inner">
            <div class="circle_innerst"></div>
          </div>
        </div>
      </div>
      <div class="linkmap_description">
        <div class="link_title"><%= attributes['link_title'] %></div>
        <div class="link_description"><%= raw(attributes['link_description']) %></div>
      </div>
    <% end %>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pageflow-linkmap-page-1.5.0 app/views/pageflow/linkmap_page/areas/_div.html.erb
pageflow-linkmap-page-1.4.0 app/views/pageflow/linkmap_page/areas/_div.html.erb
pageflow-linkmap-page-1.3.0 app/views/pageflow/linkmap_page/areas/_div.html.erb
pageflow-linkmap-page-1.2.1 app/views/pageflow/linkmap_page/areas/_div.html.erb
pageflow-linkmap-page-1.2.0 app/views/pageflow/linkmap_page/areas/_div.html.erb
pageflow-linkmap-page-1.1.0 app/views/pageflow/linkmap_page/areas/_div.html.erb
pageflow-linkmap-page-1.0.0 app/views/pageflow/linkmap_page/areas/_div.html.erb