<!DOCTYPE html> <html lang=β€œen” xmlns=β€œwww.w3.org/1999/xhtml”>

<head>
  <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
  <!--[if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
  <meta name=viewport content='width=device-width,initial-scale=1' />
  <title><%%= @title.present? ? "#{@title} | Padrino Admin" : "Padrino Admin" %></title>
  <%%= favicon_tag "favicon.ico" %>
  <link href='http://fonts.googleapis.com/css?family=Varela' rel=stylesheet />
  <%%= stylesheet_link_tag 'bootstrap', 'application' %>
</head>
<body>
  <div class="navbar navbar-fixed-top">
    <div class=navbar-inner>
      <div class=container>
        <%%= link_to 'Padrino', url(:base, :index), :class => 'navbar-brand', :title => 'Padrino Admin' %>
        <ul class="nav navbar-nav pull-right">
          <li class=navbar-edit-account><%%= link_to tag_icon(:user), url(:<%= @model_plural %>, :edit, :id => current_account.id), :title => pat(:profile), :class => 'navbar-nav-link' %></li>
          <li class=navbar-logout>
            <%%= button_to(:logout, url(:sessions, :destroy), :method => :delete, :class => 'navbar-nav-form', :submit_options => { :type => :submit, :title => pat(:logout), :class => 'navbar-nav-form-link' }) { tag_icon(:'power-off') } %>
          </li>
        </ul>

        <ul class="nav navbar-nav pull-left">
          <%% project_modules.each do |project_module| %>
            <%% if request.path_info =~ /^#{project_module.path}/ %>
              <li class="navbar-module active">
            <%% else %>
              <li class=navbar-module>
            <%% end %>
              <%%= link_to project_module.human_name, url(project_module.path) %>
              </li>
          <%% end %>
        </ul>
      </div>
    </div>
  </div>

  <div class='container main'>
    <div class='main-wrapper'>
      <%%= {:error => 'danger', :warning => 'warning', :success => 'success', :notice => 'info'}.map { |type, class_name| flash_tag(type, :class => "alert alert-#{class_name} fade in", :bootstrap => true) }.join.html_safe %>
      <div class='row'><%%= yield %></div>
      <div class='main-wrapper-push'></div>
    </div>
  </div>

  <footer>
    <div class='footer-wrapper container'>
      <p class='pull-left'>Copyright &copy; <%= Time.now.year %> Your Site - Powered by Padrino v.<%= Padrino.version %></p>
      <ul class='pull-right footer-links'>
        <li><%%= link_to tag_icon(:home, 'web'), 'http://www.padrinorb.com', :target => :_blank, :class => 'footer-links-link' %></li>
        <li><%%= link_to tag_icon(:heart, 'blog'), 'http://www.padrinorb.com/blog', :target => :_blank, :class => 'footer-links-link' %></li>
        <li><%%= link_to tag_icon(:github, 'code'), 'https://github.com/padrino/padrino-framework', :target => :_blank, :class => 'footer-links-link' %></li>
        <li><%%= link_to tag_icon(:twitter, 'twitter'), 'http://twitter.com/padrinorb', :target => :_blank, :class => 'footer-links-link' %></li>
      </ul>
    </div>
  </footer>

  <%%= javascript_include_tag 'jquery-1.11.0.min', (Padrino.env == :production ? 'bootstrap/bootstrap.min' : %w[bootstrap/affix bootstrap/alert bootstrap/button bootstrap/carousel bootstrap/collapse bootstrap/dropdown  bootstrap/tooltip bootstrap/transition  bootstrap/modal bootstrap/popover bootstrap/scrollspy bootstrap/tab]), :application %>
</body>

</html>