Advertisement
Guest User

Untitled

a guest
May 12th, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 2.90 KB | None | 0 0
  1. !!!
  2. %html
  3.   %head
  4.     %meta(charset="utf-8")
  5.     %meta(name="viewport" content="width=device-width, initial-scale=1.0")
  6.     %title= content_for?(:title) ? yield(:title) : "Appointments"
  7.     = csrf_meta_tags
  8.     / HTML5 shim, for IE6-8 support of HTML elements
  9.     /[if lt IE 9]
  10.       = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
  11.     = stylesheet_link_tag "application", :media => "all"
  12.     /%link(href="images/favicon.ico" rel="shortcut icon")
  13.     /%link(href="images/apple-touch-icon.png" rel="apple-touch-icon")
  14.     /%link(href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72")
  15.     /%link(href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114")
  16.  
  17.   %body
  18.     .navbar.navbar-fixed-top
  19.       .navbar-inner
  20.         .container
  21.           %a.btn.btn-navbar(data-target=".nav-collapse" data-toggle="collapse")
  22.             %span.icon-bar
  23.             %span.icon-bar
  24.             %span.icon-bar
  25.           %a.brand(href="#") Agenda
  26.           .container.nav-collapse
  27.             - if user_signed_in?
  28.               %ul.nav
  29.                 %li= link_to "Home", root_path
  30.                 - if current_user.has_role? :admin
  31.                   %li.dropdown
  32.                     %a.dropdown-toggle(data-toggle="dropdown" href="#")
  33.                       Admin
  34.                       %b.caret
  35.                     %ul.dropdown-menu.sub-menu
  36.                       %li= link_to "Utenti", users_path
  37.                       %li= link_to "Gruppi", groups_path
  38.                       %li= link_to "Prodotti", products_path
  39.                       %li= link_to "Centri Commerciali", malls_path
  40.                       %li= link_to "Comuni", cities_path
  41.                       %li= link_to "Zone", zones_path
  42.                       %li= link_to "Sedi", locations_path
  43.               %ul.nav.pull-right
  44.                 %li.dropdown
  45.                   %a.dropdown-toggle(data-toggle="dropdown" href="#")
  46.                     = current_user.username
  47.                     %b.caret
  48.                   %ul.dropdown-menu.sub-menu
  49.                     /%li= link_to "Cambia Password", "#"
  50.                     /%li.divider
  51.                     %li= link_to "Esci", destroy_user_session_path, :method => :delete  
  52.  
  53.     .container
  54.  
  55.       .content
  56.         .row
  57.           .span12
  58.             - flash.each do |key, msg|
  59.               - if key == :notice
  60.                 .alert.alert-success= msg
  61.               - elsif key == :error
  62.                 .alert.alert-error= msg
  63.               - elsif key == :info
  64.                 .alert.alert-info= msg
  65.               - else
  66.                 .alert.alert-block= msg
  67.                
  68.             = yield
  69.    
  70.       %footer
  71.         %p © 2012
  72.     /
  73.       Javascripts
  74.       \==================================================
  75.     / Placed at the end of the document so the pages load faster
  76.     = javascript_include_tag "application"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement