2012-02-13 05:28:42 +00:00
|
|
|
<% if controller.controller_name.eql?('pages') %>
|
|
|
|
<link href='/assets/bootstrap.css.erb' rel='stylesheet' type='text/css'/>
|
|
|
|
<link href='/assets/style.css.erb' rel='stylesheet' type='text/css'/>
|
|
|
|
<script type='text/javascript' src='/assets/bootstrap.js'></script>
|
|
|
|
<% end %>
|
2012-02-13 05:02:52 +00:00
|
|
|
|
|
|
|
<header id="orbit-bar" class="navbar">
|
|
|
|
<div class="navbar-inner">
|
|
|
|
<div class="container clear">
|
|
|
|
<div class="dropdown orbit-logo pull-left">
|
|
|
|
<a class="brand dropdown-toggle" data-toggle="dropdown" href="#">Orbit</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><%= link_to content_tag(:i, nil, :class => 'icons-dashboard') + t('admin.dashboard'), admin_dashboards_path %></li>
|
|
|
|
<li><a href="#"><i class="icons-content"></i>Content</a></li>
|
|
|
|
<li><%= link_to content_tag(:i, nil, :class => 'icons-member') + t('admin.member'), admin_users_path %></li>
|
|
|
|
<li><%= link_to content_tag(:i, nil, :class => 'icons-asset') + t('admin.asset'), admin_assets_path %></li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li><a href="#"><i class="icons-structure"></i>Structure</a></li>
|
|
|
|
<li><a href="#"><i class="icons-plus-cube"></i>Add Item</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<ul class="nav">
|
|
|
|
<li><%= link_to t(:homepage), root_path, :class => 'orbit-bar-home' %></li>
|
|
|
|
<li><a class="orbit-bar-desktop" href="#">Desktop</a></li>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav pull-right">
|
|
|
|
<% if user_signed_in? %>
|
|
|
|
<li><%= link_to t(:logout), destroy_user_session_path, :class => 'orbit-bar-logout' %></li>
|
|
|
|
<% else %>
|
|
|
|
<li>
|
|
|
|
<%= form_for "user", :url => user_session_path, :html => {:class => 'log'} do |f| %>
|
|
|
|
<%= f.text_field :email, :class => 'input-small', :placeholder => t(:email) %>
|
|
|
|
<%= f.password_field :password, :class => 'input-small', :placeholder => t(:password) %>
|
|
|
|
<%= content_tag :button, t(:login), :type => :submit, :class => 'btn' %>
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<li>
|
|
|
|
<form class="navbar-search pull-left" action="">
|
|
|
|
<input class="search-query span2" type="text" placeholder="Search">
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|