Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !!!
- %html
- %head
- %meta(charset="utf-8")
- %meta(name="viewport" content="width=device-width, initial-scale=1.0")
- %title= content_for?(:title) ? yield(:title) : "Appointments"
- = csrf_meta_tags
- / HTML5 shim, for IE6-8 support of HTML elements
- /[if lt IE 9]
- = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
- = stylesheet_link_tag "application", :media => "all"
- /%link(href="images/favicon.ico" rel="shortcut icon")
- /%link(href="images/apple-touch-icon.png" rel="apple-touch-icon")
- /%link(href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72")
- /%link(href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114")
- %body
- .navbar.navbar-fixed-top
- .navbar-inner
- .container
- %a.btn.btn-navbar(data-target=".nav-collapse" data-toggle="collapse")
- %span.icon-bar
- %span.icon-bar
- %span.icon-bar
- %a.brand(href="#") Agenda
- .container.nav-collapse
- - if user_signed_in?
- %ul.nav
- %li= link_to "Home", root_path
- - if current_user.has_role? :admin
- %li.dropdown
- %a.dropdown-toggle(data-toggle="dropdown" href="#")
- Admin
- %b.caret
- %ul.dropdown-menu.sub-menu
- %li= link_to "Utenti", users_path
- %li= link_to "Gruppi", groups_path
- %li= link_to "Prodotti", products_path
- %li= link_to "Centri Commerciali", malls_path
- %li= link_to "Comuni", cities_path
- %li= link_to "Zone", zones_path
- %li= link_to "Sedi", locations_path
- %ul.nav.pull-right
- %li.dropdown
- %a.dropdown-toggle(data-toggle="dropdown" href="#")
- = current_user.username
- %b.caret
- %ul.dropdown-menu.sub-menu
- /%li= link_to "Cambia Password", "#"
- /%li.divider
- %li= link_to "Esci", destroy_user_session_path, :method => :delete
- .container
- .content
- .row
- .span12
- - flash.each do |key, msg|
- - if key == :notice
- .alert.alert-success= msg
- - elsif key == :error
- .alert.alert-error= msg
- - elsif key == :info
- .alert.alert-info= msg
- - else
- .alert.alert-block= msg
- = yield
- %footer
- %p © 2012
- /
- Javascripts
- \==================================================
- / Placed at the end of the document so the pages load faster
- = javascript_include_tag "application"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement