Sha256: 121a7ca5f907f01f93955fd220f39c96a7b1731dd1056d9eac154d4b0fd6a5f9

Contents?: true

Size: 1.83 KB

Versions: 5

Compression:

Stored size: 1.83 KB

Contents

<% content_for :menu do -%>  

  <%= nav(:class => 'float right') do %>
  <li class="divider-vertical">
  </li>
  
  <%= nav_item t('fullstack.admin.homepage', :default => "Homepage"), "/", :icon => "globe", :"icon_color" => :white %>
  <li class="divider-vertical">
  </li>
  
    <%= dropdown_nav_item t('fullstack.admin.account', :default => "Account"), :icon => "user", :"icon_color" => :white do %>
        <%= nav_item t('fullstack.admin.logout', :default => "Logout"), destroy_administrator_session_path, :method => :delete %>
    <% end %>
  <% end %>
  
<% end -%>

<% content_for :nav do -%>


<div class="sidebar">
	<div class="sidebar-inner">
		<div class="accordion sidebar-accordion" id="sidebar-accordion">						
      <% i = 0 %>
      <% Fullstack::Admin.grouped_resources.each do |group, resources| %>
			<div class="accordion-group">
				<div class="accordion-heading">
					<a href="#sidebar_group_collapsable_<%= i+=1 %>" data-parent="#sidebar-accordion" data-toggle="collapse" class="accordion-toggle">
						<i class="icon-<%= group.icon %>"></i> <%= t("fullstack.admin.groups.#{group.name}", :default =>  group.name.to_s.humanize) %>
					  <% if resources.map(&:name).include?(plural_name) %>
            <i class="icon-chevron-left float right" style="opacity: 0.4;"></i>
            <% end %>
          </a>
				</div>
				<div class="accordion-body collapse <%= resources.map(&:name).include?(plural_name) ? 'in' : '' %>" id="sidebar_group_collapsable_<%= i %>">
					<div class="accordion-inner">
						<ul class="nav nav-list">
              <% resources.each do |resource| %>
               <%= nav_item t("fullstack.admin.resources.#{resource.name}", :default => resource.name.to_s.humanize), [:admin, resource.name] %> 
              <% end %>
						</ul>
					</div>
				</div>
			</div>
      <% end %>
		</div>
	</div>
</div>

<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fullstack-admin-0.2.7 app/views/admin/_nav.html.erb
fullstack-admin-0.2.6 app/views/admin/_nav.html.erb
fullstack-admin-0.2.5 app/views/admin/_nav.html.erb
fullstack-admin-0.2.4 app/views/admin/_nav.html.erb
fullstack-admin-0.2.3 app/views/admin/_nav.html.erb