Sha256: ed8e9954d698f7b74dabb83b07ce66f4b5006c920e53141d630e1f07e01e64ed

Contents?: true

Size: 983 Bytes

Versions: 35

Compression:

Stored size: 983 Bytes

Contents

 <% if Fullstack::Cms.localized? %>
 
           <%= nav :class => "nav-pills" do %>
               
               <%= content_tag :li, :class => (:active if @locale.blank?) do  %>
                 <%= link_to t("fullstack.cms.commons", :default => "Commons"), request.path %> 
               <% end %>

               <% I18n.available_locales.each do |locale| %>
                  <%= content_tag :li, :class => (:active if @locale == locale.to_s) do  %>
                   <%= link_to t("locale_names.#{locale}", :default => "#{locale}".humanize), "?locale=#{locale}" %>
                 <% end %>
               <% end %>    
           <% end %>
 
<% end %>

  
<ul class="nav">
  <% @pages.roots.each do |root| %>
  <% Page.each_with_level(root.self_and_descendants) do |page, level| %>
  <%= nav_item page.name, edit_admin_page_path(page), :icon => (page.root? ? "home" : "file"), :style => "line-height: 36px; padding-left:#{20 * level}px" %>
  <% end %>
<% end %>
</ul>
  

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
fullstack-cms-0.2.20 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.19 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.18 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.17 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.16 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.15 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.14 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.13 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.12 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.11 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.10 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.9 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.8 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.7 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.6 app/views/admin/pages/_collection.html.erb