Add tag for ask_question.
This commit is contained in:
parent
a4db1fcd2f
commit
3caa63bb46
|
@ -3,7 +3,7 @@ class AskQuestion
|
||||||
include Mongoid::Timestamps
|
include Mongoid::Timestamps
|
||||||
# include ActiveModel::Validations
|
# include ActiveModel::Validations
|
||||||
include OrbitCategory::Categorizable
|
include OrbitCategory::Categorizable
|
||||||
# include OrbitTag::Taggable
|
include OrbitTag::Taggable
|
||||||
|
|
||||||
# 欄位定義
|
# 欄位定義
|
||||||
field :serial_number, type: Integer
|
field :serial_number, type: Integer
|
||||||
|
|
|
@ -122,7 +122,7 @@ module Ask
|
||||||
end
|
end
|
||||||
widget_methods ["widget"]
|
widget_methods ["widget"]
|
||||||
widget_settings [{"data_count"=>10}]
|
widget_settings [{"data_count"=>10}]
|
||||||
# taggable "AskQuestion"
|
taggable "AskQuestion"
|
||||||
begin
|
begin
|
||||||
show_option_items data_item
|
show_option_items data_item
|
||||||
rescue => e
|
rescue => e
|
||||||
|
@ -144,13 +144,6 @@ module Ask
|
||||||
:priority=>1,
|
:priority=>1,
|
||||||
:active_for_action=>{'admin/asks'=>'index'},
|
:active_for_action=>{'admin/asks'=>'index'},
|
||||||
:available_for => 'users'
|
: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',
|
context_link 'ask.setting',
|
||||||
:link_path=>"setting_admin_asks_path" ,
|
:link_path=>"setting_admin_asks_path" ,
|
||||||
:priority=>2,
|
:priority=>2,
|
||||||
|
@ -183,6 +176,13 @@ module Ask
|
||||||
:active_for_action=>{'admin/asks'=>'categories'},
|
:active_for_action=>{'admin/asks'=>'categories'},
|
||||||
:active_for_category => 'Ask',
|
:active_for_category => 'Ask',
|
||||||
:available_for => 'managers'
|
: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',
|
context_link 'ask.acknowledgements',
|
||||||
:link_path=>"admin_ask_acknowledgements_path" ,
|
:link_path=>"admin_ask_acknowledgements_path" ,
|
||||||
:priority=>8,
|
:priority=>8,
|
||||||
|
|
Loading…
Reference in New Issue