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.32.fix app/views/admin/pages/_collection.html.erb
fullstack-cms-0.3.4 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.3.3 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.3.2 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.3.1 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.36 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.35 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.34 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.33 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.31 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.30 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.29 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.28 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.27 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.26 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.25 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.24 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.23 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.22 app/views/admin/pages/_collection.html.erb
fullstack-cms-0.2.21 app/views/admin/pages/_collection.html.erb