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? %>
|
2012-02-20 17:13:22 +00:00
|
|
|
<li class="dropdown active clear">
|
|
|
|
<a class="orbit-bar-account" href="#" data-toggle="dropdown">
|
|
|
|
<img src="images/menber-pic.png" />
|
|
|
|
<span class="member-name"><%= current_user.name %></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu account-menu">
|
|
|
|
<li>
|
|
|
|
<a href="#">
|
|
|
|
<i class="icons-wrench"></i>
|
|
|
|
Account settings
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li><%= link_to content_tag(:i, nil, :class => 'icons-out') + t(:logout), destroy_user_session_path %></li>
|
|
|
|
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li>
|
|
|
|
<a href="#">
|
|
|
|
<i class="icons-help"></i>
|
|
|
|
Help
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2012-02-13 05:02:52 +00:00
|
|
|
<% else %>
|
2012-02-19 08:33:22 +00:00
|
|
|
<li class="dropdown bar-login">
|
|
|
|
<a class="brand dropdown-toggle orbit-bar-member" href="#"><%= t(:login) %></a>
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
<ul class="log">
|
|
|
|
<li class="title"></li>
|
|
|
|
|
|
|
|
<%= form_for :user, :url => user_session_path do |f| %>
|
|
|
|
<li>
|
|
|
|
<div class="input-prepend">
|
|
|
|
<span class="add-on"><i class="icon-user"></i></span>
|
|
|
|
<%= f.text_field :email, :class => 'span2', :placeholder => t(:email), :size => 16 %>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div class="input-prepend">
|
|
|
|
<span class="add-on"><i class="icon-lock"></i></span>
|
|
|
|
<%= f.password_field :password, :class => 'span2', :placeholder => t(:password), :size => 16 %>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li class="clear">
|
|
|
|
<%= link_to t(:forgot_password), new_user_password_path, :class => 'forgot' %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= content_tag :button, t(:login), :type => :submit, :class => 'btn btn-primary' %>
|
|
|
|
<label class="remember" for="user_remember_me">
|
|
|
|
<%= f.check_box :remember_me %>
|
|
|
|
<span style="display: inline-block;height: 10px;"><%= t(:remember_me) %></span>
|
|
|
|
</label>
|
|
|
|
</li>
|
|
|
|
<li class="divider"><span><%= t(:or_lower) %></span></li>
|
|
|
|
<li><%= link_to content_tag(:button, t(:register), :class => 'btn btn-danger'), new_user_registration_path, :style => "padding:0px;" %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2012-02-13 05:02:52 +00:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2012-02-20 17:13:22 +00:00
|
|
|
<form class="navbar-search span6" action="">
|
|
|
|
<input class="search-query span4" type="text" placeholder="Search Ruling University">
|
|
|
|
</form>
|
2012-02-13 05:02:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|