app/views/spree/admin/menus/index.html.haml in spree_essential_menus-0.1.8 vs app/views/spree/admin/menus/index.html.haml in spree_essential_menus-0.2.3
- old
+ new
@@ -11,10 +11,12 @@
%thead
%tr
%th= sort_link @search, :link_text, t('spree.admin.menus.link_text')
%th= sort_link @search, :url, t('spree.admin.menus.url')
%th= t('spree.admin.menus.page_id')
+ %th= t('spree.admin.menus.parent_id')
+ %th= t('spree.admin.menus.menu_image')
%th= t('action')
%tbody
- @collection.each do |menu|
%tr{:id => "#{spree_dom_id menu}"}
%td
@@ -26,11 +28,22 @@
- if menu.page.present?
= link_to menu.page.title
- else
= t('.static_path')
%td
+ - if menu.parent_id.nil?
+ -
+ - else
+ = menu.parent.link_text
+ %td
+ - if menu.menu_image.present?
+ = link_to image_tag(menu.menu_image.url(:mini)), menu.menu_image.url(:color), :target => "_blank"
+ - else
+ brak
+ %td
= link_to_edit menu
= link_to_delete menu
+=# paginate @collection
-= render :partial => 'spree/admin/shared/spree_menus_sidebar'
+= render :partial => 'spree/admin/shared/spree_menus_sidebar', :locals => {:current => "menu_elements"}
\ No newline at end of file