app/views/kuhsaft/cms/pages/edit.html.haml in kuhsaft-0.3.6 vs app/views/kuhsaft/cms/pages/edit.html.haml in kuhsaft-1.0.0

- old
+ new

@@ -1,11 +1,17 @@ -- content_for :cms_language_tabs do - - Kuhsaft::Page.translation_locales.each do |locale| - %li{ :class => (:current if params[:locale] == locale.to_s) }= link_to locale.to_s, edit_cms_page_path(:locale => locale) - -.page-tree-breadcrumb - = link_to(t('.pages'), cms_pages_path) += render 'content_language_switch' +%ul.breadcrumb + %li + = link_to Kuhsaft::Page.model_name.human(:count => 2), kuhsaft.cms_pages_path + %span.divider / - @page.parent_pages.each do |parent_page| - = link_to(parent_page.title, edit_cms_page_path(parent_page)) + %li + - if @page.parent_pages.last == parent_page + .active + = parent_page.title + - else + = link_to parent_page.title, kuhsaft.edit_cms_page_path(parent_page) + %span.divider / +%h1= @page.title .box-container - = render :partial => 'form', :locals => { :url => cms_page_path(@page), :page_title => t('.edit_html', :title => @page.title ) } \ No newline at end of file + = render :partial => 'form', :locals => { :url => kuhsaft.cms_page_path(@page), :page_title => t('.edit_html', :title => @page.title ) }