default widgets and sidebar.
This commit is contained in:
1 parent
f9bcb27efc
commit
4bc80f2bd3
28 files changed
+275
-92
No files matched your search
+4
@@ -3,6 +3,10 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendCo
|
||||
|
||||
before_filter :for_app_manager,:except => [:index,:get_categorys_json,:get_bulletins_json]
|
||||
|
||||
before_filter :force_order_for_visitor,:only=>[:index,:get_categorys_json,:get_bulletins_json]
|
||||
before_filter :force_order_for_user,:except => [:index,:get_categorys_json,:get_bulletins_json]
|
||||
before_filter :for_app_sub_manager,:except => [:index,:get_categorys_json,:get_bulletins_json]
|
||||
|
||||
def index
|
||||
@bulletin_categorys = get_categories_for_index("BulletinCategory")
|
||||
#TODO 需要做 manager ,admin 才可以 all. 其他 available就好
|
||||
|
||||
@@ -17,4 +17,10 @@ zh_tw:
|
||||
update_bulletin_category_success: 公告類別已成功更新
|
||||
widget:
|
||||
index: 目錄Widget
|
||||
bulletins_and_web_links: 公告與連結並排Widget
|
||||
bulletins_and_web_links: 公告與連結並排Widget
|
||||
#init don't merge
|
||||
all_articles: 全部公告
|
||||
add_new: 新增
|
||||
categories: 分類
|
||||
approval_setting: 審核權限
|
||||
tags: 標籤
|
||||
+6
-4
@@ -25,7 +25,7 @@ module Announcement
|
||||
categories_query 'BulletinCategory.all'
|
||||
tags_query 'AnnouncementTag.all'
|
||||
|
||||
customize_widget "index","announcement.widget.index",:fields=>["title","category","postdate"]
|
||||
customize_widget "index","announcement.widget.index",:fields=>["title","category","postdate"],:style=>["cu_style_1","cu_style_2","cu_style_3","cu_style_4","cu_style_5"]
|
||||
customize_widget "bulletins_and_web_links","announcement.widget.bulletins_and_web_links"
|
||||
# item "index","announcement.widget.index",:default_template=>true,:fields=>["title","category","postdate"]
|
||||
# item "bulletins_and_web_links","announcement.widget.bulletins_and_web_links"
|
||||
@@ -42,13 +42,14 @@ module Announcement
|
||||
context_link 'announcement.all_articles',
|
||||
:link_path=>"panel_announcement_back_end_bulletins_path" ,
|
||||
:priority=>1,
|
||||
:active_for_action=>{:bulletins=>:index}
|
||||
:active_for_action=>{:bulletins=>:index},
|
||||
:available_for => [:all]
|
||||
|
||||
context_link 'announcement.add_new',
|
||||
:link_path=>"new_panel_announcement_back_end_bulletin_path" ,
|
||||
:priority=>2,
|
||||
:active_for_action=>{:bulletins=>:new},
|
||||
:available_for => [:manager]
|
||||
:available_for => [:sub_manager]
|
||||
|
||||
context_link 'announcement.categories',
|
||||
:link_path=>"panel_announcement_back_end_bulletin_categorys_path" ,
|
||||
@@ -59,12 +60,13 @@ module Announcement
|
||||
context_link 'announcement.tags',
|
||||
:link_path=>"panel_announcement_back_end_tags_path" ,
|
||||
:priority=>4,
|
||||
:active_for_action=>{:bulletin_categorys=>:index},
|
||||
# :active_for_action=>{:bulletin_categorys=>:index},
|
||||
:available_for => [:manager]
|
||||
|
||||
context_link 'announcement.approval_setting',
|
||||
:link_path=>"panel_announcement_back_end_approval_setting_path" ,
|
||||
:priority=>5,
|
||||
:active_for_action=>{:approvals=>:setting},
|
||||
:active_for_object_auth => 'BulletinCategory',
|
||||
:available_for => [:manager]
|
||||
|
||||
|
||||
Reference in new issue
Block a user