Sha256: 9d27742e85b53faf2ccdcaf3df7fb3edb37dbf4ecd51810d2cc23ac361d185c6

Contents?: true

Size: 1.98 KB

Versions: 14

Compression:

Stored size: 1.98 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>
      <%= [@page_title, "Pages"].reject(&:blank?).uniq.join(" - ") %>
    </title>

    <link rel="shortcut icon"
          href="<%= asset_path 'pages/favicon.gif' %>"
          type="image/gif" />
    <link rel="icon"
          href="<%= asset_path 'pages/favicon.gif' %>"
          type="image/gif" />

    <%= stylesheet_link_tag "pages/admin" %>

    <% if Dir.glob(Rails.root.join("app/assets/stylesheets/admin.*")).any? %>
      <%= stylesheet_link_tag "admin" %>
    <% end %>

    <% if File.exist?(Rails.root.join("app/assets/builds/admin.js")) %>
      <%= javascript_include_tag("admin", defer: true) %>
    <% else %>
      <%= javascript_include_tag("pages_core/admin-dist", defer: true) %>
      <% if Dir.glob(Rails.root.join("app/assets/javascripts/admin.*")).any? %>
        <%= javascript_include_tag("admin", defer: true) %>
      <% end %>
    <% end %>

    <%= csrf_meta_tag %>
    <meta name="viewport"
          content="width=device-width, initial-scale=1, user-scalable=no">
    <%= google_analytics_tags "UA-5468672-21" %>
  </head>

  <body class="<%= body_classes.join(" ") %>"
        data-controller="<%= controller.class.to_s %>"
        data-action="<%= controller.action_name %>"
        data-locale="<%= @locale %>">

    <div class="wrapper">
      <%= render partial: "layouts/admin/header" %>
      <% if content_for?(:main_wrapper) %>
        <%= yield :main_wrapper %>
      <% else %>
        <div class="main-wrapper">
          <main data-controller="main">
            <%= render(partial: "layouts/admin/page_header") %>
            <%= yield %>
          </main>

          <% if content_for?(:sidebar) %>
            <aside class="sidebar">
              <%= content_for(:sidebar) %>
            </aside>
          <% end %>
        </div>
      <% end %>
    </div>
    <%= react_component "Modal", {} %>
    <%= react_component "Toast", { notice: flash[:notice], error: flash[:error] } %>
  </body>
</html>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
pages_core-3.12.0 app/views/layouts/admin.html.erb
pages_core-3.11.3 app/views/layouts/admin.html.erb
pages_core-3.11.2 app/views/layouts/admin.html.erb
pages_core-3.11.1 app/views/layouts/admin.html.erb
pages_core-3.11.0 app/views/layouts/admin.html.erb
pages_core-3.10.2 app/views/layouts/admin.html.erb
pages_core-3.10.1 app/views/layouts/admin.html.erb
pages_core-3.9.2 app/views/layouts/admin.html.erb
pages_core-3.9.1 app/views/layouts/admin.html.erb
pages_core-3.9.0 app/views/layouts/admin.html.erb
pages_core-3.8.3 app/views/layouts/admin.html.erb
pages_core-3.8.2 app/views/layouts/admin.html.erb
pages_core-3.8.1 app/views/layouts/admin.html.erb
pages_core-3.8.0 app/views/layouts/admin.html.erb