Sha256: a053c62b0a5e84f67c00303c0d6e54eb4e998e4acef66b7996a57d6ec4d71478

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <title>Shopify Application</title>
  <%= stylesheet_link_tag 'application' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
</head>

<body>
  <div id="header">
    <h1><%= link_to 'Shopify Demo Application', '/' %></h1>
    
    <p id="login-link">
      <% if current_shop %>
          <span class="note">current shop</span> <%= link_to current_shop.url, "https://#{current_shop.url}", :class => 'shop_name' %> <span class="note">|</span>
          <%= link_to 'logout', logout_path %>
      <% end %>
    </p>
  </div>

  <div id="container" class="clearfix">
    <ul id="tabs">
      <%= tab :index, {:controller => '/home'}, :label => 'Home' %>
      <%= tab :design, {:controller => '/home', :action => 'design'}, :label => 'Design Help' %>
    </ul>
    
    <!-- Flash error & notice-->
    <% if flash[:error] %> <div id="flasherrors"><%= flash[:error] %></div><% end %>
    <% if flash[:notice] %><div id="flashnotices"><%= flash[:notice] %></div><% end %>
  
    <!-- begin div.main-->
    <div id="main">
      <%= yield %>
    </div>
    <!-- end div.main -->
  </div>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shopify_app-2.0.0 lib/generators/shopify_app/templates/app/views/layouts/application.html.erb