app/views/admin/pages/_collection.html.erb in fullstack-cms-0.2.4 vs app/views/admin/pages/_collection.html.erb in fullstack-cms-0.2.5
- old
+ new
@@ -1,7 +1,17 @@
-<ul class="nav">
- <% Page.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" %>
+<%= tabs do |t| %>
+ <% I18n.available_locales.each do |locale| %>
+ <%= t.pane t("locale_names.#{locale}", :default => "#{locale}".humanize) do %>
+
+
+ <ul class="nav">
+ <% Page.where(:locale => "#{locale}").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>
+
+
+ <% end %>
<% end %>
<% end %>
-</ul>