<!DOCTYPE html>
<html>
  <head>
    <title>Ubezpieczenie - Należności - Panel Administracyjny</title>
    <%= csrf_meta_tags %>
    <link rel="shortcut icon" type="image/x-icon" href="/assets/favicon.ico">
    <%= stylesheet_link_tag 'application','bootstrap_lte' , 'font-awesome' , media: 'all', 'data-turbolinks-track': 'reload' %>
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic" rel='stylesheet' type='text/css'>
    <%= stylesheet_link_tag  'AdminLTE', 'skin-blue', 'summernote' %>
    <%= javascript_include_tag 'application', 'jquery', 'data-turbolinks-track': 'reload' %>
  </head>

  <body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
      <header class="main-header">

        <!-- Logo -->
        <a href="/admin" class="logo">
          <!-- mini logo for sidebar mini 50x50 pixels -->
          <span class="logo-mini"><b>A</b>UN</span>
          <!-- logo for regular state and mobile devices -->
          <span class="logo-lg"><b>Admin</b>U-N</span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
          <!-- Sidebar toggle button-->
          <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
            <span class="sr-only">Toggle navigation</span>
          </a>
          <!-- Navbar Right Menu -->
          <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
              <!-- User Account Menu -->
              <li class="dropdown user user-menu">
                <!-- Menu Toggle Button -->
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <!-- The user image in the navbar-->

                  <!-- hidden-xs hides the username on small devices so only the image appears. -->
                  <span><%= current_admin.email %></span>
                </a>
                <ul class="dropdown-menu">
                  <li class="user-footer">
                    <div class="pull-right">
                      <% if admin_signed_in? %>
                        <%= link_to('Wyloguj', destroy_admin_session_path, method: :delete, class: 'btn btn-default btn-flat') %>
                      <% end %>
                    </div>
                  </li>
                </ul>
              </li>
            </ul>
          </div>
        </nav>
      </header>
      <!-- Left side column. contains the logo and sidebar -->
      <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">

          <!-- Sidebar Menu -->
          <ul class="sidebar-menu" data-widget="tree">
            <li class="header">MENU</li>
            <li <%= raw controller_path.to_s.include?('admin/home') ? 'class="active"' : '' %>><a href="/admin"><i class="fa fa-home text-aqua"></i> <span>Home</span></a></li>
            <li <%= raw controller_path.to_s.include?('admin/all_page') ? 'class="active"' : '' %>><a href="/admin/all_page"><i class="fa fa-sitemap text-yellow"></i> <span>Strony</span></a></li>
            <li <%= raw controller_path.to_s.include?('admin/article') ? 'class="active"' : '' %>><a href="/admin/article"><i class="fa fa-pencil-square-o text-green"></i> <span>Grupy Wpisów</span></a></li>
          </ul>
          <!-- /.sidebar-menu -->
        </section>
        <!-- /.sidebar -->
      </aside>
      <!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
  <!-- Main content -->
  <section class="content container-fluid">
<%= yield %>

  </section>
  <!-- /.content -->
</div>
<footer class="main-footer">
  <!-- To the right -->
  <div class="pull-right hidden-xs">
    <%= Date.today %>
  </div>
  <!-- Default to the left -->
  <strong>Copyright &copy; <%= Date.today.year %> <a href="http://firestorm.pl" target="__blank">FireStorm</a>.</strong> Wszystkie prawa zastrzeżone
</footer>
        <div class="control-sidebar-bg"></div>
    </div>
    <%= javascript_include_tag 'bootstrap_lte', 'adminlte', 'summernote', 'summernote-pl-PL', 'notify' %>
    <%= yield :footer_scripts %>
  </body>
</html>
