Sha256: 689ddb78f1cc26c46985f7c1199d1f57dcd76995742485e63dbf22d9760c9f50

Contents?: true

Size: 788 Bytes

Versions: 6

Compression:

Stored size: 788 Bytes

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.domain }" if @shop_session %>",
      "debug": <%= Rails.env.development? ? 'true' : 'false' %>,
      "forceRedirect": false
    });
  </script>

  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
  <%= csrf_meta_tags %>

  <%= yield :extra_head %>
</head>
<body>

<%= yield %>

</body>
</html>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
disco_app-0.18.0 app/views/layouts/embedded_app_modal.html.erb
disco_app-0.18.2 app/views/layouts/embedded_app_modal.html.erb
disco_app-0.18.3 app/views/layouts/embedded_app_modal.html.erb
disco_app-0.18.6 app/views/layouts/embedded_app_modal.html.erb
disco_app-0.18.4 app/views/layouts/embedded_app_modal.html.erb
disco_app-0.18.1 app/views/layouts/embedded_app_modal.html.erb