Sha256: 901406f22084e2690702fc44b94a9e6bc7bb523dc63ea8188531c56383524637

Contents?: true

Size: 1.76 KB

Versions: 5

Compression:

Stored size: 1.76 KB

Contents

<!doctype html>
<html class="no-js" lang="en">
<head>
  <base href="/">
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <title><%= @pom.page.title if @pom.page %></title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="apple-touch-icon" href="apple-touch-icon.png">
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
  <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
  <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
  <!-- Place favicon.ico in the root directory -->
  <!--MDC-->
  <link rel="stylesheet" href="<%= env['SCRIPT_NAME'] %>/bundle.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
  <script src="<%= env['SCRIPT_NAME'] %>/bundle.js"></script>

</head>
<body class="mdc-typography">
<% header = @pom.header
   drawer = @pom.drawer
   footer = @pom.footer %>
<div class="mdl-layout mdl-js-layout
  <% if header %>mdl-layout--fixed-header
  <% end %>
  <% if drawer %>mdl-layout--fixed-drawer
  <% end %>">
  <% if header %>
    <%= erb :"body/header", :locals => {:header => header} %>
  <% end %>
  <% if drawer %>
    <%= erb :"body/drawer", :locals => {:drawer => drawer} %>
  <% end %>
  <main class="mdl-layout__content"
        style="<%= "background-color:#{@pom.page.background_color}" if @pom.page&.background_color %>">
    <div class="page-content">
      <div class="v-errors">
        <%= yield %>
      </div>
    </div>
  </main>
  <%= erb :"body/snackbar" %>
  <% if footer %>
    <%= erb :"body/footer", :locals => {:footer => footer} %>
  <% end %>
</div>

</body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voom-presenters-0.1.10 views/mdc/layout.erb
voom-presenters-0.1.9 views/mdc/layout.erb
voom-presenters-0.1.8 views/mdc/layout.erb
voom-presenters-0.1.7 views/mdc/layout.erb
voom-presenters-0.1.6 views/mdc/layout.erb