Sha256: a1fc99fd442cbdf8f453934ab61e1b0386783154858033083775d6edd929a585

Contents?: true

Size: 1.1 KB

Versions: 29

Compression:

Stored size: 1.1 KB

Contents

<% content_for :menu do -%>
  
  <%= nav do %>
  <%= nav_item t('fullstack.admin.dashboard', :default => "Dashboard"), admin_root_path, :icon => "cog"  %>
  <% end %>
  
  <%= nav(:class => 'float right') do %>
  <%= nav_item t('fullstack.admin.homepage', :default => "Homepage"), "/", :icon => "home" %>
    <%= dropdown_nav_item t('fullstack.admin.account', :default => "Account"), :icon => "user" do %>
        <%= nav_item t('fullstack.admin.logout', :default => "Logout"), destroy_user_session_path, :method => :delete %>
    <% end %>
  <% end %>
  
<% end -%>

<% content_for :nav do -%>

  <div class="tabbable tabs-left float right">
    <%= nav_list :class => "nav-tabs" do %>

    <% Fullstack::Admin.resources.each do |rog| %>
        <% if rog.type == :group %> 
        <%= nav_header t("fullstack.admin.groups.#{rog.name}", :default => rog.name.to_s.humanize) %>
          
        <% elsif rog.type == :resource %>
          <%= nav_item t("fullstack.admin.resources.#{rog.name}", :default => rog.name.to_s.humanize), [:admin, rog.name] %>
        <% end %>
    <% end %>

    <% end %>
  </div>

<% end -%>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
fullstack-admin-0.2.1 app/views/admin/_nav.html.erb
fullstack-admin-0.1.56 app/views/admin/_nav.html.erb
fullstack-admin-0.1.55 app/views/admin/_nav.html.erb
fullstack-admin-0.1.54 app/views/admin/_nav.html.erb
fullstack-admin-0.1.53 app/views/admin/_nav.html.erb
fullstack-admin-0.1.52 app/views/admin/_nav.html.erb
fullstack-admin-0.1.51 app/views/admin/_nav.html.erb
fullstack-admin-0.1.50 app/views/admin/_nav.html.erb
fullstack-admin-0.1.49 app/views/admin/_nav.html.erb
fullstack-admin-0.1.48 app/views/admin/_nav.html.erb
fullstack-admin-0.1.47 app/views/admin/_nav.html.erb
fullstack-admin-0.1.46 app/views/admin/_nav.html.erb
fullstack-admin-0.1.45 app/views/admin/_nav.html.erb
fullstack-admin-0.1.44 app/views/admin/_nav.html.erb
fullstack-admin-0.1.43 app/views/admin/_nav.html.erb
fullstack-admin-0.1.42 app/views/admin/_nav.html.erb
fullstack-admin-0.1.41 app/views/admin/_nav.html.erb
fullstack-admin-0.1.40 app/views/admin/_nav.html.erb
fullstack-admin-0.1.39 app/views/admin/_nav.html.erb
fullstack-admin-0.1.38 app/views/admin/_nav.html.erb