Add tag for ask_question.

This commit is contained in:
rulingcom 2024-09-03 23:52:01 +08:00
parent a4db1fcd2f
commit 3caa63bb46
2 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@ class AskQuestion
include Mongoid::Timestamps
# include ActiveModel::Validations
include OrbitCategory::Categorizable
# include OrbitTag::Taggable
include OrbitTag::Taggable
# 欄位定義
field :serial_number, type: Integer

View File

@ -122,7 +122,7 @@ module Ask
end
widget_methods ["widget"]
widget_settings [{"data_count"=>10}]
# taggable "AskQuestion"
taggable "AskQuestion"
begin
show_option_items data_item
rescue => e
@ -144,13 +144,6 @@ module Ask
:priority=>1,
:active_for_action=>{'admin/asks'=>'index'},
:available_for => 'users'
# context_link 'tags',
# :link_path=>"admin_module_app_tags_path" ,
# :link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'ask').id}",
# :priority=>4,
# :active_for_action=>{'admin/ask'=>'tags'},
# :active_for_tag => 'Ask',
# :available_for => 'managers'
context_link 'ask.setting',
:link_path=>"setting_admin_asks_path" ,
:priority=>2,
@ -183,6 +176,13 @@ module Ask
:active_for_action=>{'admin/asks'=>'categories'},
:active_for_category => 'Ask',
:available_for => 'managers'
context_link 'tags',
:link_path=>"admin_module_app_tags_path" ,
:link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'ask').id}",
:priority=>7,
:active_for_action=>{'admin/ask'=>'tags'},
:active_for_tag => 'Ask',
:available_for => 'managers'
context_link 'ask.acknowledgements',
:link_path=>"admin_ask_acknowledgements_path" ,
:priority=>8,