Sha256: 2e5765217db2f0649b0f694d5b1e08e9dfe77eeb537c0d07b2b741c86e6b6a1f
Contents?: true
Size: 1.86 KB
Versions: 3
Compression:
Stored size: 1.86 KB
Contents
<div class="navbar"> <div class="navbar-inner"> <div class="container"> <%= link_to t('invoice_bar.invoice_bar'), root_url, class: 'brand' %> <% if current_user %> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div class="nav-collapse collapse"> <ul class="nav"> <li class="<%= active_for_controller('/invoice') %>"><%= link_to t('invoice_bar.navbar.invoices'), invoices_path %></li> <li class="<%= active_for_controller('/receipt') %>"><%= link_to t('invoice_bar.navbar.receipts'), receipts_path %></li> <li class="<%= active_for_controller('/contact') %>"><%= link_to t('invoice_bar.navbar.contacts'), contacts_path %></li> <li class="<%= active_for_controller('/account') %>"><%= link_to t('invoice_bar.navbar.accounts'), accounts_path %></li> <li class="<%= active_for_controller('/settings') %>"><%= link_to t('invoice_bar.navbar.profile'), profile_path %></li> <% if current_user.administrator %> <li class="<%= active_for_controller('/users') %>"><%= link_to t('invoice_bar.navbar.users'), users_path %></li> <li class="<%= active_for_controller('/currencies') %>"><%= link_to t('invoice_bar.navbar.currencies'), currencies_path %></li> <% end %> </ul> <ul class="nav pull-right"> <li><%= link_to t('invoice_bar.navbar.logout'), logout_path %></li> </ul> <%= form_tag search_path, method: 'get', class: "navbar-search pull-right" do %> <%= text_field_tag :search, params[:search], placeholder: t('invoice_bar.navbar.search'), class: 'search-query' %> <% end %> </div> <% end %> </div> </div> </div> <div class="container sub-navigation"> <%= yield :sub_navigation %> </div>
Version data entries
3 entries across 3 versions & 1 rubygems