Sha256: 569516fdac71713fba25e45c016938f3db0d873c98bd5d1b6e9a38ac2fc8d64b

Contents?: true

Size: 1.17 KB

Versions: 24

Compression:

Stored size: 1.17 KB

Contents

<div 
  class="w-full h-full mt-8" 
  data-controller="screenshot"
  data-screenshot-url-value="<%= create_section_screenshot_path(@section) %>"
>
  <div class="my-4 flex items-center justify-between">
    <%= link_to theme_path, class: 'text-gray-600' do %>
      <span>&#8592; Back to the theme</span>
    <% end %>
    <div class="flex">
      <%= link_to section_iframe_preview_in_iframe_path(@section), class: 'bg-purple-600 hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-600 focus:ring-opacity-50 rounded text-white py-2 px-3 mr-6', target: '_blank' do %>
        Open in a new tab
      <% end %>
      <button 
        class="bg-purple-600 hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-600 focus:ring-opacity-50 rounded text-white py-2 px-3"
        data-action="click->screenshot#take"      
      >
        Take screenshot
      </button>
    </div>
  </div>
  <iframe     
    src="<%= section_iframe_preview_in_iframe_path(@section) %>"
    class="w-full h-full bg-white"  
    data-screenshot-target="source"
    data-controller="iframe"
  >
  </iframe>
  <div class="mt-4">
    <img data-screenshot-target="output" class="" />
  </div>
</div>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
maglevcms-1.7.3 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.7.2 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.7.1 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.7.0 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.6.1 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.6.0 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.5.1 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.4.0 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.3.0 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.2.2 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.2.1 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.2.0 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.1.7 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.1.6 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.1.5 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.1.4 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.1.3 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.1.2 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.1.1 app/views/maglev/admin/sections/previews/show.html.erb
maglevcms-1.1.0 app/views/maglev/admin/sections/previews/show.html.erb