Fix routing and naming
This commit is contained in:
parent
5a51063bed
commit
dcca1db6bd
|
@ -1,4 +1,4 @@
|
|||
class Panel::Archive::BackEnd::ArchiveFilesController < OrbitBackendController
|
||||
class Panel::Dictionary::BackEnd::DictionaryVocabsController < OrbitBackendController
|
||||
# before_filter :for_app_manager,:except => [:index,:show]
|
||||
include OrbitControllerLib::DivisionForDisable
|
||||
|
||||
|
@ -7,7 +7,7 @@ class Panel::Archive::BackEnd::ArchiveFilesController < OrbitBackendController
|
|||
|
||||
before_filter :for_app_sub_manager,:except => [:index]
|
||||
before_filter :only => [ :new,:edit,:update,:create] do |controller|
|
||||
controller.get_categorys('ArchiveFileCategory')
|
||||
controller.get_categorys('DictionaryVocabCategory')
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
|
@ -13,3 +13,8 @@ zh_tw:
|
|||
attributes:
|
||||
archive_file:
|
||||
sort_number: 排序數
|
||||
|
||||
zh_tw:
|
||||
|
||||
dictionary:
|
||||
dictionary: 字彙辭典
|
||||
|
|
|
@ -47,12 +47,12 @@ module Dictionary
|
|||
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'archive.archive',:icon_class=>"icons-archive"
|
||||
head_label_i18n 'dictionary.dictionary',:icon_class=>"icons-book"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['archive_file_categorys','archive_files'],:public=>['panel/archive/back_end/tags']})
|
||||
active_for_object_auth ['ArchiveFileCategory']
|
||||
active_for_controllers ({ :private => ['dictionary_vocab_categorys', 'dictionary_vocabs'] })
|
||||
active_for_object_auth ['DictionaryVocabCategory']
|
||||
|
||||
head_link_path "panel_archive_back_end_archive_files_path"
|
||||
head_link_path "panel_dictionary_back_end_dictionary_vocabs_path"
|
||||
|
||||
context_link 'all',
|
||||
:link_path=>"panel_archive_back_end_archive_files_path" ,
|
||||
|
@ -61,7 +61,7 @@ module Dictionary
|
|||
:available_for => [:all]
|
||||
|
||||
context_link 'add',
|
||||
:link_path => "new_panel_dicationary_back_end_dictionary_vocab_path",
|
||||
:link_path => "new_panel_dictionary_back_end_dictionary_vocab_path",
|
||||
:priority => 2,
|
||||
:active_for_action => { :dictionary_vocabs => :new },
|
||||
:available_for => [:sub_manager]
|
||||
|
|
Loading…
Reference in New Issue