<!DOCTYPE html>
<html lang="en">
<head>
  <%= render 'layouts/common_head' %>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.3.0/Chart.bundle.min.js" integrity="sha256-1uH5nQ+1cUZEU9YOfMzc9rapsWyuGtvKPpvKN9xDgug=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/chartkick/2.1.0/chartkick.min.js" integrity="sha256-Nux9AlQvMarSN0Lk52PcKRlezOXTqHGlZRFgBJ7UXyY=" crossorigin="anonymous"></script>
</head>
<body>

  <%= render 'layouts/navbar' %>

  <main>
    <ul class="admin-nav">
      <li><%= link_to 'Home', admin_dashboard_path %></li>
      <% Rails.application.config.content_types[:all].each do |type| %>
        <li>
          <%= link_to "#{type.name.pluralize}", admin_content_type_path(type: type) %>
        </li>
      <% end %>
    </ul>

    <%= yield %>
    <a href="https://plus.google.com/118076966717703203223" rel="publisher"></a>
  </main>

</body>
</html>
