Sha256: d2674c0a8c74b48838e1da8614172d9f8d65199a1cf19e6e08d1cb9f95f95d83
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
<!DOCTYPE html> <html> <head> <title><%= yield(:title) %></title> <script src="//cdn.shopify.com/s/assets/external/app.js?<%= Time.now.strftime('%Y%m%d%H') %>"></script> <script type="text/javascript"> // Initialise the Shopify App. ShopifyApp.init({ "apiKey": "<%= ShopifyApp.configuration.api_key %>", "shopOrigin": "<%= "https://#{ @shop_session.url }" if @shop_session %>", "debug": <%= Rails.env.development? ? 'true' : 'false' %> }); </script> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %> <%= yield :extra_head %> </head> <body> <script type="text/javascript"> ShopifyApp.Bar.initialize({ title: "<%= yield(:title) %>", icon: "<%= image_url("disco_app/icon.svg") %>", buttons: <%= content_for?(:buttons) ? content_for(:buttons) : '{}' %> }); </script> <%= yield %> <% flash.each do |key, message| %> <script type="text/javascript"> ShopifyApp.flash<%= (key == 'error') ? 'Error' : 'Notice' %>('<%= message %>'); </script> <% end %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
disco_app-0.6.0 | app/views/layouts/embedded_app.html.erb |
disco_app-0.6.1 | app/views/layouts/embedded_app.html.erb |