From 5acc13d76dfe41678aabb74fa549a8a96b186bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Fri, 23 Aug 2024 23:04:00 +0800 Subject: [PATCH] Update sidebar order. --- lib/cancerpredict/engine.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/cancerpredict/engine.rb b/lib/cancerpredict/engine.rb index 8428a15..e64dc10 100644 --- a/lib/cancerpredict/engine.rb +++ b/lib/cancerpredict/engine.rb @@ -12,12 +12,13 @@ module Cancerpredict set_keyword_contstraints ['cancerpredictResult'] frontend_enabled side_bar do - head_label_i18n 'cancerpredict.cancerpredict', icon_class: "icons-megaphone" - available_for "users" - active_for_controllers (['admin/cancerpredicts']) - head_link_path "admin_cancerpredicts_path" + head_label_i18n 'cancerpredict.cancerpredict', icon_class: "icons-tools" + available_for "users" + active_for_controllers (['admin/cancerpredicts']) + head_link_path "admin_cancerpredicts_path" + set_sidebar_order -10 - context_link 'cancerpredict.cancerpredict', + context_link 'cancerpredict.cancerpredict', :link_path=>"admin_cancerpredicts_path" , :priority=>1, :active_for_action=>{'admin/cancerpredicts'=>'index'},