doctype 5 html lang='en' 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" = favicon_tag 'favicon.ico' link href='http://fonts.googleapis.com/css?family=Varela' rel='stylesheet' = stylesheet_link_tag 'bootstrap', 'application' 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 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 class='navbar-logout' = button_to(pat(:logout), url(:sessions, :destroy), :method => :delete, :class => 'navbar-nav-form') do = content_tag :button, tag_icon(:off), :type => :submit, :title => pat(:logout), :class => 'navbar-nav-form-link' ul class='nav pull-left' - project_modules.each do |project_module| li class=("navbar-module #{'active' if request.path_info =~ /^#{project_module.path}/}") = link_to project_module.human_name, project_module.path('/admin') div class='container main' div class='main-wrapper' = [:error, :warning, :success, :notice].map { |type| flash_tag(type, :class => "alert alert-#{type} fade in", :bootstrap => true) }.join.html_safe div class='row' = yield div class='main-wrapper-push' footer div class='footer-wrapper container' p class='pull-left' ' Copyright © #{Time.now.year} Your Site - b Powered by Padrino v.#{Padrino.version} ul class='pull-right footer-links' li = link_to tag_icon(:home, 'web'), 'http://www.padrinorb.com', :target => :_blank, :class => 'footer-links-link' li = link_to tag_icon(:heart, 'blog'), 'http://www.padrinorb.com/blog', :target => :_blank, :class => 'footer-links-link' li = link_to tag_icon(:github, 'code'), 'https://github.com/padrino/padrino-framework', :target => :_blank, :class => 'footer-links-link' li = link_to tag_icon(:twitter, 'twitter'), 'http://twitter.com/padrinorb', :target => :_blank, :class => 'footer-links-link' =javascript_include_tag 'jquery-1.9.0.min', (Padrino.env == :production ? 'bootstrap/bootstrap.min' : %w[bootstrap/bootstrap-affix bootstrap/bootstrap-alert bootstrap/bootstrap-button bootstrap/bootstrap-carousel bootstrap/bootstrap-collapse bootstrap/bootstrap-dropdown bootstrap/bootstrap-tooltip bootstrap/bootstrap-transition bootstrap/bootstrap-typeahead bootstrap/bootstrap-modal bootstrap/bootstrap-popover bootstrap/bootstrap-scrollspy bootstrap/bootstrap-tab]), :application