Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: HTML 5  |  size: 3.17 KB  |  views: 95  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <title>Childcare</title>
  5.   <%= javascript_include_tag "application" %>
  6.  
  7.   <%= stylesheet_link_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css" %>
  8.  
  9.   <%= stylesheet_link_tag    "application" %>
  10.   <%= csrf_meta_tags %>
  11. </head>
  12. <body id="<%= params[:controller] %>">
  13.  
  14.   <div class="navbar navbar-fixed-top">
  15.     <div class="navbar-inner">
  16.       <div class="container">
  17.         <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  18.           <span class="icon-bar"></span>
  19.           <span class="icon-bar"></span>
  20.           <span class="icon-bar"></span>
  21.         </a>
  22.         <% if user_signed_in? %>
  23.           <%= link_to current_user.account.organization_name, root_url, :class => "brand" %>
  24.         <% else %>
  25.           <%= link_to 'Carebox', new_user_session_path, :class => "brand" %>
  26.         <% end %>
  27.        
  28.        
  29.         <div class="nav-collapse">
  30.             <% if user_signed_in? %>
  31.             <ul class="nav">
  32.             <li class="divider-vertical"></li>
  33.             <li <%= "class=active" if controller.controller_name == "members" %>><%= link_to "Families", members_path %></li>
  34.             <li class="divider-vertical"></li>
  35.             <li class="divider-vertical"></li>
  36.  
  37.           </ul>
  38.           <ul class="nav pull-right">
  39.             <li class="divider-vertical"></li>
  40.             <li><a><%= current_user.username %></a></li>
  41.             <li class="divider-vertical"></li>
  42.             <li><%= link_to "My Profile", edit_user_registration_path %></li>
  43.             <!--
  44.            <li class="dropdown">
  45.              <a href="#" class="dropdown-toggle" data-toggle="dropdown">My Account <b class="caret"></b></a>
  46.              <ul class="dropdown-menu">
  47.                <li><%= link_to 'My Profile', edit_user_registration_path %></li>
  48.                <li><a href="#">Company Profile</a></li>
  49.              </ul>
  50.            </li>
  51.            -->            
  52.             <li class="divider-vertical"></li>
  53.             <li><%= link_to "Logout", destroy_user_session_path, method: :delete %></li>
  54.           </ul>
  55.           <% else %>
  56.             <ul class="nav pull-right">
  57.             <li class="divider-vertical"></li>
  58.             <li><%= link_to "Login", new_user_session_path %></li>
  59.             <li class="divider-vertical"></li>
  60.             <li><%= link_to "Sign up", new_account_path %></li>
  61.             <li class="divider-vertical"></li>
  62.             </ul>
  63.           <% end %>
  64.          
  65.           <%= render 'layouts/search' %>
  66.          
  67.         </div>
  68.       </div>
  69.     </div>
  70.   </div>
  71.  
  72.   <div id="content" class="container">
  73.  
  74.   <% flash.each do |name, msg| %>
  75.     <div class="alert alert-<%= name == :notice ? 'success' : 'error' %>">
  76.       <a class="close" data-dismiss="alert">×</a>
  77.       <%= msg %>
  78.     </div>
  79.   <% end %>
  80.  
  81.     <div class="row">
  82.       <%= yield %>
  83.     </div>
  84.  
  85.     <footer class="footer">
  86.       <p>Built with <a href="http://twitter.github.com/bootstrap/" target="_blank">Bootstrap</a>. Icons from <a href="http://glyphicons.com/" target="_blank">Glyphicons</a>.      
  87.     </footer>
  88.   </div>
  89.  
  90.  
  91.  
  92. </body>
  93. </html>
clone this paste RAW Paste Data