From 8a71bd530fbdc70dd7390c0d88200ed125a89fe7 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 10 Sep 2012 14:44:21 +0800 Subject: [PATCH] page added... --- app/views/layouts/_side_bar.html.erb | 6 +++--- .../calendar/back_end/calendar_categories_controller.rb | 7 +++++++ .../calendar/back_end/calendar_categories/index.html.erb | 1 + vendor/built_in_modules/calendar/config/locales/en.yml | 3 +++ vendor/built_in_modules/calendar/config/locales/zh_tw.yml | 3 +++ vendor/built_in_modules/calendar/config/routes.rb | 1 + 6 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 vendor/built_in_modules/calendar/app/controllers/panel/calendar/back_end/calendar_categories_controller.rb create mode 100644 vendor/built_in_modules/calendar/app/views/panel/calendar/back_end/calendar_categories/index.html.erb create mode 100644 vendor/built_in_modules/calendar/config/locales/en.yml create mode 100644 vendor/built_in_modules/calendar/config/locales/zh_tw.yml diff --git a/app/views/layouts/_side_bar.html.erb b/app/views/layouts/_side_bar.html.erb index 2e2d92f1f..32ee1b78e 100644 --- a/app/views/layouts/_side_bar.html.erb +++ b/app/views/layouts/_side_bar.html.erb @@ -93,13 +93,13 @@ <%= link_to content_tag(:i, nil, :class => 'icons-cog') + t('admin.site_settings'), nil %> <% end -%> -<%= content_tag :li, :class => active_for_controllers('cals','/panel/gallery/back_end/tags') || active_for_app_auth("calendar") do -%> +<%= content_tag :li, :class => active_for_controllers('cals','calendar_categories') || active_for_app_auth("calendar") do -%> <%= link_to content_tag(:i, nil, :class => 'icons-calendar') + t('admin.calendar'), panel_calendar_back_end_cals_path %> - <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('cals') ) do -%> + <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('cals','calendar_categories') ) do -%> <%#= content_tag :li, link_to(t('admin.ad.all_banners'), admin_ad_banners_path), :class => active_for_action('ad_banners', 'index') %> <%#= content_tag :li, link_to(t('admin.ad.new_banner'), new_admin_ad_banner_path), :class => active_for_action('ad_banners', 'new') %> <%#= content_tag :li, link_to(t('admin.ad.new_image'), new_ad_image_admin_ad_banners_path), :class => active_for_action('ad_images', 'new') %> - <%#= content_tag :li, link_to(t('gallery.categories'), panel_gallery_back_end_gallery_categories_path), :class => active_for_action('/panel/gallery/back_end/categorylist','categorylist') %> + <%= content_tag :li, link_to(t('calendar.calendars'), panel_calendar_back_end_calendar_categories_path), :class => active_for_action('calendar_categories','index') %> <%#= content_tag :li, link_to(t('gallery.tags'), panel_gallery_back_end_tags_path), :class => active_for_action('/panel/gallery/back_end/tags', 'index') %> <%#= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "Gallery"}))), :class => active_for_app_auth('gallery') if (is_admin? rescue nil) %> <% end -%> diff --git a/vendor/built_in_modules/calendar/app/controllers/panel/calendar/back_end/calendar_categories_controller.rb b/vendor/built_in_modules/calendar/app/controllers/panel/calendar/back_end/calendar_categories_controller.rb new file mode 100644 index 000000000..7c3686591 --- /dev/null +++ b/vendor/built_in_modules/calendar/app/controllers/panel/calendar/back_end/calendar_categories_controller.rb @@ -0,0 +1,7 @@ +class Panel::Calendar::BackEnd::CalendarCategoriesController < OrbitBackendController + + def index + + end + +end \ No newline at end of file diff --git a/vendor/built_in_modules/calendar/app/views/panel/calendar/back_end/calendar_categories/index.html.erb b/vendor/built_in_modules/calendar/app/views/panel/calendar/back_end/calendar_categories/index.html.erb new file mode 100644 index 000000000..d1697b91f --- /dev/null +++ b/vendor/built_in_modules/calendar/app/views/panel/calendar/back_end/calendar_categories/index.html.erb @@ -0,0 +1 @@ +this is category page \ No newline at end of file diff --git a/vendor/built_in_modules/calendar/config/locales/en.yml b/vendor/built_in_modules/calendar/config/locales/en.yml new file mode 100644 index 000000000..586c2f6ca --- /dev/null +++ b/vendor/built_in_modules/calendar/config/locales/en.yml @@ -0,0 +1,3 @@ +en: + calendar: + calendars: Calendars \ No newline at end of file diff --git a/vendor/built_in_modules/calendar/config/locales/zh_tw.yml b/vendor/built_in_modules/calendar/config/locales/zh_tw.yml new file mode 100644 index 000000000..d0bb31207 --- /dev/null +++ b/vendor/built_in_modules/calendar/config/locales/zh_tw.yml @@ -0,0 +1,3 @@ +zh_tw: + calendar: + calendars: Calendars \ No newline at end of file diff --git a/vendor/built_in_modules/calendar/config/routes.rb b/vendor/built_in_modules/calendar/config/routes.rb index bf485cf0a..39d9b60a5 100644 --- a/vendor/built_in_modules/calendar/config/routes.rb +++ b/vendor/built_in_modules/calendar/config/routes.rb @@ -4,6 +4,7 @@ Rails.application.routes.draw do namespace :back_end do resources :cals + resources :calendar_categories end end