Sha256: ff85a93476d129e93e627b84c4a99b0b7435c0cf518d3a4f1041cdb417031ce7
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
#menu - if Cardboard.used_as_cms? && cardboard_user_can_manage?(:pages) = main_sidebar_nav_link "Pages", pages_path, id: "nav_dashboard_link", "data-skip-pjax" => true - Cardboard.resource_controllers.reject{|x|x.menu == false}.sort! { |a,b| a.menu[:priority] <=> b.menu[:priority] }.each do |controller| - if cardboard_user_can_manage?(controller.controller_name.to_sym) = main_sidebar_nav_link controller.menu[:label], {controller: controller.controller_name, action: :index}, class: "nav_resource_link"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cardboard_cms-0.1.8 | app/views/layouts/cardboard/_main_sidebar.html.slim |