diff --git a/Gemfile b/Gemfile index 07a50937..1e2a6448 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'http://rubygems.org' -gem 'rails' +gem 'rails', "~> 3.2.9" gem "brakeman" gem 'mime-types' @@ -11,7 +11,7 @@ gem "net-ldap", "~> 0.3.1" gem 'devise', '1.5.3' gem 'exception_notification' # Send error trace gem 'execjs' -gem 'jquery-rails' +gem 'jquery-rails', '2.1.4' gem 'jquery-ui-rails' gem 'kaminari', :git => 'git://github.com/amatsuda/kaminari.git' diff --git a/app/assets/javascripts/desktop.js b/app/assets/javascripts/desktop.js index e5e4a05a..d8d67107 100644 --- a/app/assets/javascripts/desktop.js +++ b/app/assets/javascripts/desktop.js @@ -15,4 +15,3 @@ //= require orbitTimeline //= require orbitdesktop //= require desktop/books_pages -//= require desktop/seminar_pages diff --git a/app/assets/javascripts/mobile/orbit.mobile.js.erb b/app/assets/javascripts/mobile/orbit.mobile.js.erb index 2a567730..90531899 100644 --- a/app/assets/javascripts/mobile/orbit.mobile.js.erb +++ b/app/assets/javascripts/mobile/orbit.mobile.js.erb @@ -25,8 +25,8 @@ $('#index').live('pageinit',function(){ $(".slideImg").muImageResize({width: $globalW, height: Math.floor($globalW/720*240)}); $(this).find(".newpic img").muImageResize({width: 280, height: 200}); $('.slideshow').cycle({ - fx:'scrollLeft', - timeout: 6000, + fx: $effect, + timeout: $timeout }); $(".newlist").css({ "width" : $(".newitem").outerWidth()*(Math.floor($globalW/$(".newitem").outerWidth()))+30, @@ -40,8 +40,9 @@ $('#index').live('pageinit',function(){ $('#announcement_content').live('pageinit',function(){ $(this).find(".newpic img").muImageResize({width: 320, height: 220}); }); -var mobileDemo = { 'center': '24.987449, 121.576117', 'zoom': 17 }; + $('#map').live('pageinit', function() { + var mobileDemo = { 'center': $map_center, 'zoom': $map_zoom }; var $windowH = $(window).height(); $("#map_canvas").css({ 'height' : $windowH, @@ -50,7 +51,7 @@ $('#map').live('pageinit', function() { $('#map_canvas').gmap({'center': mobileDemo.center, 'zoom': mobileDemo.zoom, 'disableDefaultUI':false, 'callback': function() { var self = this; self.addMarker({'position': this.get('map').getCenter() }).click(function() { - self.openInfoWindow({ 'content': "<%= I18n.t('mobile.location_description') %>" }, this); + self.openInfoWindow({ 'content': $info }, this); }); }}); }).load('basic_map'); diff --git a/app/assets/javascripts/new_admin.js b/app/assets/javascripts/new_admin.js index c5ec022e..965a61b7 100644 --- a/app/assets/javascripts/new_admin.js +++ b/app/assets/javascripts/new_admin.js @@ -9,7 +9,6 @@ //= require jquery.form //= require bootstrap //= require jquery.masonry.min -//= require jquery.isotope.min //= require jquery.tinyscrollbar.min //= require orbit-1.0 //= require tinymce-jquery diff --git a/app/assets/javascripts/orbit-bar-search.js b/app/assets/javascripts/orbit-bar-search.js index cc422b12..265cd92b 100644 --- a/app/assets/javascripts/orbit-bar-search.js +++ b/app/assets/javascripts/orbit-bar-search.js @@ -1,28 +1,42 @@ -$(document).on('click', '.orbit-bar-search', function (){ - if ($(this).parents('.search').hasClass('visible')){ - $(this).parents('.search').stop().animate({ - 'width':'28px', - },500); - $('.navbar-search').stop().animate({ - 'left':'30px', - 'opacity':'0', - },200); - $(this).parents('.search').css({ - 'background-color': 'transparent', - }); - $(this).parents('.search').removeClass('visible'); - } - else{ - $(this).parents('.search').stop().animate({ - 'width':'265px', - },200); - $('.navbar-search').stop().animate({ - 'left':'7px', - 'opacity':'1' - },500); - $(this).parents('.search').css({ - 'background-color': 'rgba(0, 0, 0, 0.5)', - }); - $(this).parents('.search').addClass('visible'); - } -}); \ No newline at end of file + +$(document).ready(function(){ + $('.search').tooltip({ + placement: "bottom" + }); +}); +$(document).on('mouseenter', '.orbit-bar-search', function (){ + $(this).parents('.search').stop().animate({ + 'width':'265px', + },200); + $('.navbar-search').stop().animate({ + 'left':'4px', + 'opacity':'1' + },500); + $(this).parents('.search').css({ + 'background-color': 'rgba(0, 0, 0, 0.5)', + }); + $(this).parents('.search').addClass('visible'); +}); + + +$(document).on('mouseleave', '.search.visible', function (){ + $(this).stop().animate({ + 'width':'28px', + },500); + $('.navbar-search').stop().animate({ + 'left':'30px', + 'opacity':'0', + },200); + $(this).css({ + 'background-color': 'transparent', + }); + $(this).removeClass('visible'); +}); + +$(document).on("mouseenter",".orbit-bar-language, .language-menu",function(){ + $(this).parents('.language').addClass("open") +}) + +$(document).on("mouseleave",".orbit-bar-language, .language-menu",function(){ + $(this).parents('.language').removeClass("open") +}) diff --git a/app/assets/javascripts/page_edit.js.erb b/app/assets/javascripts/page_edit.js.erb index 29047c7b..aec24de6 100644 --- a/app/assets/javascripts/page_edit.js.erb +++ b/app/assets/javascripts/page_edit.js.erb @@ -1,5 +1,11 @@ function get_part_id(){ - return $(".edit_page_part").attr("action").split('/').pop(); + return $(".edit_page_part,.edit_page").attr("action").split('/').pop(); +} + +function get_object_path(){ + a = window.location.href.split('/'); + a.pop(); + return a.join('/'); } $("div.editable").live("mouseenter mouseleave", function (event) { @@ -10,26 +16,26 @@ $("#page_design").live('change', function() { $.getScript($(this).attr('rel') + '/' + $(this).val() + '/reload_themes'); }); -$("#page_module_app_id").live('change', function() { - var app_id = $(this).val(); - if(app_id!=''){ - $.getScript($(this).attr('rel') + '/' + $(this).val() + '/reload_frontend_pages',function(data, textStatus){ - if(textStatus == 'success'){ - $(this).after(data); - } - }); - } - else{ - $("#app_page_url").children().remove(); - } -}); +// $("#page_module_app_id").live('change', function() { +// var app_id = $(this).val(); +// if(app_id!=''){ +// $.getScript($(this).attr('rel') + '/' + $(this).val() + '/reload_after_module_changed',function(data, textStatus){ +// if(textStatus == 'success'){ +// $(this).after(data); +// } +// }); +// } +// else{ +// $("#app_page_url").children().remove(); +// } +// }); $("#module_app_list select").live('change', function() { - $.getScript($(this).attr('rel') + '/' + $(this).val() + '/reload_widgets?part_id=' + get_part_id()); + $.getScript(get_object_path() + '/reload_after_module_changed?module_app_id='+$(this).val()); //?part_id=' + get_part_id()); }); -$("#widget_list select").live('change', function() { - $.getScript($(this).attr('rel') + '/' + $(this).val() + '/reload_widget_styles?module_app_id=' + $("#module_app_list select").val() + '&part_id=' + get_part_id()); +$("#widget_list select,#frontend_list select").live('change', function() { + $.getScript(get_object_path() +'/reload_after_list_changed?frontend=' + $(this).val() + '&module_app_id=' + $("#module_app_list select").val() );//+ '&part_id=' + get_part_id()); }); $("#tag_list select").live('change', function() { diff --git a/app/assets/javascripts/site_editor.js b/app/assets/javascripts/site_editor.js index 5d77e701..3c7281bd 100644 --- a/app/assets/javascripts/site_editor.js +++ b/app/assets/javascripts/site_editor.js @@ -10,7 +10,6 @@ //= require jquery.ui.sortable //= require jquery_ujs //= require bootstrap -//= require jquery.isotope.min //= require jquery.tinyscrollbar.min //= require orbit-1.0 //= require orbit-bar-search diff --git a/app/assets/stylesheets/admin/default_widget_setting.css b/app/assets/stylesheets/admin/default_widget_setting.css index b3fe424d..1743849a 100644 --- a/app/assets/stylesheets/admin/default_widget_setting.css +++ b/app/assets/stylesheets/admin/default_widget_setting.css @@ -1,6 +1,11 @@ +label{ + white-space: nowrap !important; +} .style_switch{} -.style_switch ul{} +.style_switch ul{ + margin: 0; +} .style_switch li{ float: left; @@ -9,19 +14,22 @@ width: 103px; } .style_radio{ - margin: 0 0 5px 10px; + cursor: pointer; + margin: 0 0 0 10px; } .style_img{ display: block; - margin: 0 0 5px; + margin: 5px 0 5px -28px; } .style_description{ color: #6B6B6B; display: block; - margin: 0 0 0 5px; + font-size: 12px; + margin: 0 0 0 -25px; + white-space: normal; } label{ - white-space: nowrap !important ; -} \ No newline at end of file + white-space: nowrap !important ; +} diff --git a/app/assets/stylesheets/new_admin.css.erb b/app/assets/stylesheets/new_admin.css.erb index 2cb340da..325e9cb5 100644 --- a/app/assets/stylesheets/new_admin.css.erb +++ b/app/assets/stylesheets/new_admin.css.erb @@ -13,7 +13,6 @@ *= require list *= require widget *= require scroll_style - *= require isotope *= require icons *= require site-map *= require lib/bootstrap-datetimepicker diff --git a/app/controllers/admin/module_apps_controller.rb b/app/controllers/admin/module_apps_controller.rb index 9729a97a..da029420 100644 --- a/app/controllers/admin/module_apps_controller.rb +++ b/app/controllers/admin/module_apps_controller.rb @@ -9,32 +9,6 @@ class Admin::ModuleAppsController < ApplicationController end - def reload_frontend_pages - @categories =[] - @module_app = ModuleApp.find(params[:id]) - - @frontend_path = @module_app.widgets.keys[0] if ( !@module_app.widgets.blank? && @module_app.widgets[0].blank? ) - - @frontend_style = @module_app.widgets[@frontend_path] if ( !@frontend_path.blank? ) - - case @module_app.key - when 'announcement' - @categories = BulletinCategory.all - @tags = AnnouncementTag.all - when 'news' - @categories = NewsBulletinCategory.all - @tags = NewsTag.all - when 'web_resource' - @categories = WebLinkCategory.all - @tags = WebResourceTag.all - when 'archive' - @categories = ArchiveFileCategory.all - @tags = ArchiveTag.all - end - respond_to do |format| - format.js {} - end - end def module_auth_proc @module_app = ModuleApp.find(params[:id]) @@ -136,7 +110,6 @@ class Admin::ModuleAppsController < ApplicationController end #user is not permited to do that flash[:notice] = t('app_auth.operation_not_permitted') - render :nothing => true, :status => 403 - end - + render :nothing => true,:status => 403 + end end \ No newline at end of file diff --git a/app/controllers/admin/object_auths_controller.rb b/app/controllers/admin/object_auths_controller.rb index dab659b4..d407d3db 100644 --- a/app/controllers/admin/object_auths_controller.rb +++ b/app/controllers/admin/object_auths_controller.rb @@ -1,5 +1,5 @@ class Admin::ObjectAuthsController < ApplicationController - include OrbitCoreLib::PermissionUnility + include OrbitCoreLib::PermissionUtility layout "new_admin" before_filter :force_order # before_filter :is_admin? ,:only => :index diff --git a/app/controllers/admin/object_auths_new_interface_controller.rb b/app/controllers/admin/object_auths_new_interface_controller.rb index 3af52ac2..cb210877 100644 --- a/app/controllers/admin/object_auths_new_interface_controller.rb +++ b/app/controllers/admin/object_auths_new_interface_controller.rb @@ -1,7 +1,11 @@ class Admin::ObjectAuthsNewInterfaceController < OrbitBackendController - include OrbitCoreLib::PermissionUnility + include OrbitCoreLib::PermissionUtility before_filter :force_order - + + def set_module_app + @module_app = ModuleApp.where(:title=>'Announcement').first + end + def setting @sys_users = User.all(conditions: {admin: false}).includes(:avatar).not_guest_user @@ -59,6 +63,7 @@ class Admin::ObjectAuthsNewInterfaceController < OrbitBackendController def force_order authenticate_user! + set_module_app setup_vars check_if_user_can_do_object_auth end diff --git a/app/controllers/admin/page_parts_controller.rb b/app/controllers/admin/page_parts_controller.rb index af6b0ed8..21050985 100644 --- a/app/controllers/admin/page_parts_controller.rb +++ b/app/controllers/admin/page_parts_controller.rb @@ -25,31 +25,28 @@ class Admin::PagePartsController < ApplicationController def edit @part = PagePart.find(params[:id]) @module_apps = ModuleApp.excludes(widgets: nil).where(enable_frontend: true).order_by(:title, :asc) - @module_app = @part.module_app ? @part.module_app : @module_apps[0] + @module_app = @part.module_app ? @part.module_app : nil @user_choose = @part.widget_path @r_tag = @part.public_r_tag.blank? ? LIST[:public_r_tags][0] : @part.public_r_tag @tag_objects = @r_tag.classify.constantize.all rescue nil + + if @module_app + @widget_path = @part.widget_path ? @part.widget_path : @module_app.widgets.keys[0] + @widget_style = @module_app.get_widget_style[@widget_path][:style] unless @widget_path.nil? or @module_app.nil? + end + + + unless @module_app.nil? + @categories = @module_app.get_categories + @tags = @module_app.get_tags + end + + @widget_path = @part.widget_path ? @part.widget_path : (@module_app.widgets.keys[0] rescue nil) - @widget_path = @part.widget_path ? @part.widget_path : @module_app.widgets.keys[0] - - if @module_app.widgets.any?{|b| b.class == Array} + if @module_app && @module_app.widgets.any?{|b| b.class == Array} @widget_style = @module_app.widgets[@widget_path] if !@widget_path.blank? && !@module_app.widgets.blank? end - - case @module_app.key - when 'announcement' - @categories = BulletinCategory.all - @tags = AnnouncementTag.all - when 'gallery' - @albums = GalleryAlbum.all - @tags = [] - when 'web_resource' - @categories = WebLinkCategory.all - @tags = WebResourceTag.all - when 'archive' - @categories = ArchiveFileCategory.all - @tags = ArchiveTag.all - end + end def create @@ -59,9 +56,12 @@ class Admin::PagePartsController < ApplicationController def update @part = PagePart.find(params[:id]) - params[:page_part][:widget_field] = params[:page_part][:widget_field].zip( params[:page_part][:widget_field_type] ) if params[:page_part][:widget_field] - params[:page_part][:widget_field_type] = nil - + params[:page_part][:widget_field] = params[:page_part][:widget_field].zip( params[:page_part][:widget_field_type] ) if params[:page_part][:widget_field] + params[:page_part][:widget_field_type] = nil + + if params[:page_part][:module_app].blank? + params[:page_part][:module_app] = nil + end if @part.update_attributes(params[:page_part]) set_children_sub_menu(@part) if @part.public_r_tag && @part.public_r_tag.eql?('sub_menu') flash.now[:notice] = t('update.success.content') @@ -91,30 +91,14 @@ class Admin::PagePartsController < ApplicationController end def reload_widgets - @part = PagePart.find params[:part_id] - @categories =[] - @module_app = ModuleApp.find(params[:id]) - - @widget_path = @module_app.widgets.keys[0] if ( @module_app.widgets[0].blank? ) - + @part = PagePart.find params[:id] + @module_app = ModuleApp.find(params[:module_app_id]) rescue nil + @categories =@module_app ? @module_app.get_categories : [] + @tags =@module_app ? @module_app.get_tags : [] + @widget_path = @module_app.widgets.keys[0] if (@module_app && @module_app.widgets[0].blank? ) @widget_style = @module_app.widgets[@widget_path] if ( !@widget_path.blank? ) - case @module_app.key - when 'announcement' - @categories = BulletinCategory.all - @tags = AnnouncementTag.all - when 'gallery' - @albums = GalleryAlbum.all - @tags = [] - when 'web_resource' - @categories = WebLinkCategory.all - @tags = WebResourceTag.all - when 'archive' - @categories = ArchiveFileCategory.all - @tags = ArchiveTag.all - end - - @part.widget_path = @module_app.widgets.first if @module_app.needs_to_widget_option? + @part.widget_path = @module_app.widgets.first if( @module_app) respond_to do |format| format.js {} end @@ -122,9 +106,11 @@ class Admin::PagePartsController < ApplicationController def reload_widget_styles @module_app = ModuleApp.find(params[:module_app_id]) - @part = PagePart.find params[:part_id] - @user_choose =@widget_path= params[:id] - @widget_style = @module_app.widgets[params[:id]] + + @part = PagePart.find params[:id] + @user_choose =@widget_path= params[:frontend] + @widget_style = @module_app.widgets[@widget_path] + respond_to do |format| format.js {} diff --git a/app/controllers/admin/pages_controller.rb b/app/controllers/admin/pages_controller.rb index 73ddc398..f2de0c9e 100644 --- a/app/controllers/admin/pages_controller.rb +++ b/app/controllers/admin/pages_controller.rb @@ -19,15 +19,21 @@ helper Admin::PagePartsHelper end def edit - @item = Page.find(params[:id]) + @item = @page =Page.find(params[:id]) + @user_choose = @item.app_frontend_url @apps = ModuleApp.excludes(app_pages: nil).entries @module_apps = ModuleApp.excludes(widgets: nil).where(enable_frontend: true).order_by(:title, :asc) @designs = Design.all.entries @design = @item.design ? @item.design : @designs.first - @app_frontend_urls = @item.module_app.app_pages if @item.module_app - + + if @item.module_app + @app_frontend_urls = @item.module_app.app_pages.map{|t| [I18n.t(t[0]),t[1]]} + @app_frontend_urls << [I18n.t('default_widget.name'),'default_widget'] if @item.module_app.has_default_widget? + end + + if @item.module_app @module_app = @item.module_app @@ -84,13 +90,13 @@ helper Admin::PagePartsHelper def update @item = Page.find(params[:id]) - if @item.module_app && @item.module_app.key == 'page_content' && @item.page_contexts.blank? - @item.page_contexts.build(:create_user_id => current_user.id, :update_user_id => current_user.id ) - end - - params[:page][:frontend_field] = params[:page][:frontend_field].zip( params[:page][:frontend_field_type] ) if params[:page][:frontend_field] - params[:page][:frontend_field_type] = nil + if @item.module_app && @item.module_app.key == 'page_content' && @item.page_contexts.blank? + @item.page_contexts.build(:create_user_id => current_user.id, :update_user_id => current_user.id ) + end + params[:page][:frontend_field] = params[:page][:frontend_field].zip( params[:page][:frontend_field_type] ) if params[:page][:frontend_field] + params[:page][:frontend_field_type] = nil + if @item.update_attributes(params[:page]) flash[:notice] = t('update.success.page') respond_to do |format| @@ -123,7 +129,42 @@ helper Admin::PagePartsHelper format.js { @item = @item.parent } end end - + + def reload_front_end_setting + @page = Page.find params[:id] + @module_app = ModuleApp.find params[:module_app_id] + @chosen_frontend = @user_choose = params[:frontend] + end + + def reload_frontend_pages + @page = Page.find params[:id] rescue nil + # @categories =[] + @module_app = ModuleApp.find(params[:module_app_id]) rescue nil + @app_frontend_urls = @module_app.nil? ? nil : @module_app.app_pages.map{|t| [I18n.t(t[0]),t[1]]} + @app_frontend_urls << [I18n.t('default_widget.name'),'default_widget'] if(@module_app && @module_app.has_default_widget?) + + case (@module_app.nil? ? nil : @module_app.key ) + when 'announcement' + @categories = BulletinCategory.all + @tags = AnnouncementTag.all + when 'news' + @categories = NewsBulletinCategory.all + @tags = NewsTag.all + when 'web_resource' + @categories = WebLinkCategory.all + @tags = WebResourceTag.all + when 'archive' + @categories = ArchiveFileCategory.all + @tags = ArchiveTag.all + else + @categories = [] + @tags = [] + end + respond_to do |format| + format.js {} + end + end + def reload_themes @design = Design.find(params[:id]) @themes = @design.themes diff --git a/app/controllers/admin/plugins_controller.rb b/app/controllers/admin/plugins_controller.rb index 424a482d..57cb9ad8 100644 --- a/app/controllers/admin/plugins_controller.rb +++ b/app/controllers/admin/plugins_controller.rb @@ -4,7 +4,7 @@ class Admin::PluginsController < ApplicationController def index - @plugins = OrbitApp::Module::Registration.all + @plugins = OrbitApp::Plugin::Registration.all if(!params[:show_plugin_profile].nil?) diff --git a/app/controllers/admin/users_new_interface_controller.rb b/app/controllers/admin/users_new_interface_controller.rb index af06aa9a..23eace92 100644 --- a/app/controllers/admin/users_new_interface_controller.rb +++ b/app/controllers/admin/users_new_interface_controller.rb @@ -36,7 +36,7 @@ class Admin::UsersNewInterfaceController < OrbitBackendController def show @user = User.find(params[:id]) - @plugins = OrbitApp::Module::Registration.all + @plugins = OrbitApp::Plugin::Registration.all @profile_data = [] @teacher_data = [] diff --git a/app/controllers/default_widget_controller.rb b/app/controllers/default_widget_controller.rb index ba5e8ba5..637810cd 100644 --- a/app/controllers/default_widget_controller.rb +++ b/app/controllers/default_widget_controller.rb @@ -1,7 +1,12 @@ class DefaultWidgetController< OrbitWidgetController def front_end_available(var) - @page_part = PagePart.find params[:part_id] + @page_part = case params[:item_type] + when "page" + Page.find params[:page_id] + when "page_part" + PagePart.find params[:part_id] + end @page_part.module_app.enable_frontend? end @@ -9,11 +14,17 @@ class DefaultWidgetController< OrbitWidgetController @tag_class = nil @default_widget = @page_part.module_app.get_default_widget - @widget_image_field = @default_widget[:image] - data_limit = @page_part.widget_data_count.is_a?(Fixnum) ? @page_part.widget_data_count : (@page_part.widget_data_count.to_i rescue 3) + @widget_image_field = @default_widget["image"] || @default_widget[:image] + data_limit = case @page_part + when Page + @fields = @page_part.frontend_field + @page_part.frontend_data_count.is_a?(Fixnum) ? @page_part.frontend_data_count : (@page_part.frontend_data_count.to_i rescue 3) + when PagePart + @fields = @page_part.widget_field + @page_part.widget_data_count.is_a?(Fixnum) ? @page_part.widget_data_count : (@page_part.widget_data_count.to_i rescue 3) + end @data = eval(@default_widget["query"]).limit(data_limit).includes(@widget_image_field) - @fields = @page_part.widget_field - + case params[:type] when "typeA" @tag_class = 'default_widget_typeA' @@ -26,15 +37,6 @@ class DefaultWidgetController< OrbitWidgetController render "typeC" end - # {"inner"=>"true", - # "category_id"=>"false", - # "tag_id"=>"", - # "page"=>"", - # "search_query"=>"", - # "part_title"=>"", - # "part_id"=>"50ac426f83e75219d20000a7", - # "controller"=>"default_widget", - # "action"=>"default_widget", - # "type"=>"typeA"} end + end diff --git a/app/controllers/desktop_publications_controller.000.rb b/app/controllers/desktop_publications_controller.000.rb deleted file mode 100644 index fc3f36ab..00000000 --- a/app/controllers/desktop_publications_controller.000.rb +++ /dev/null @@ -1,75 +0,0 @@ -class DesktopPublicationsController< ApplicationController - def journal_p - render "desktop/journal_p", :layout => false - end - - def journal_p_list - render "desktop/journal_pages/list", :layout => false - end - - def journal_p_add - debugger - render "desktop/journal_pages/add", :layout => false - end - - def books - render "desktop/books", :layout => false - end - - def books_list - render "desktop/books/list", :layout => false - end - - def books_add - render "desktop/books/add", :layout => false - end - - def seminar_p - render "desktop/seminar_p", :layout => false - end - - def seminar_p_list - render "desktop/seminar_pages/list", :layout => false - end - - def seminar_p_add - render "desktop/seminar_pages/add", :layout => false - end - - def create_journal - Journal.create(user_id: current_user.id, title: "Ice Cream Sandwich") - b = Array.new - b << {"success"=>"true"} - render :json=>b.to_json - end - - def getjournals - @journals = current_user.journals - data = Array.new - @journals.each do |journal| - @papers = journal.papers.all - data << {"title" => journal.title, "papers" => @papers} - end - render :json=>data.to_json - end - - def delete_journal - @journals = Journal.find("") - @journals.delete - b = Array.new - b << {"success"=>"true"} - render :json=>b.to_json - end - - def update_journal - @journal = Journal.find("4ff2d6ebbd98eb02b9000017") - @papers = @journal.papers - @papers.each do |paper| - paper.update_attributes(:user_id => current_user.id) - end - b = Array.new - - b << {"success"=>"true"} - render :json=>b.to_json - end -end diff --git a/app/controllers/desktop_publications_controller.rb b/app/controllers/desktop_publications_controller.rb index ae77ed19..918b99e2 100644 --- a/app/controllers/desktop_publications_controller.rb +++ b/app/controllers/desktop_publications_controller.rb @@ -1,10 +1,6 @@ require 'mime/types' class DesktopPublicationsController< ApplicationController - #def journal_p - # render "desktop/journal_p", :layout => false - #end - def books render "desktop/books", :layout => false end @@ -16,44 +12,4 @@ class DesktopPublicationsController< ApplicationController def books_add render "desktop/books/add", :layout => false end - - def seminar_p - render "desktop/seminar_p", :layout => false - end - - def seminar_p_list - render "desktop/seminar_pages/list", :layout => false - end - - def seminar_p_add - render "desktop/seminar_pages/add", :layout => false - end - -# def create_journal -# Journal.create(user_id: current_user.id, title: "Ice Cream Sandwich") -# b = Array.new -# b << {"success"=>"true"} -# render :json=>b.to_json -# end -# -# -# def delete_journal -# @journals = Journal.find("") -# @journals.delete -# b = Array.new -# b << {"success"=>"true"} -# render :json=>b.to_json -# end -# -# def update_journal -# @journal = Journal.find("4ff2d6ebbd98eb02b9000017") -# @papers = @journal.papers -# @papers.each do |paper| -# paper.update_attributes(:user_id => current_user.id) -# end -# b = Array.new -# -# b << {"success"=>"true"} -# render :json=>b.to_json -# end end diff --git a/app/controllers/orbit_backend_controller.rb b/app/controllers/orbit_backend_controller.rb index 557070f4..7c25e6fc 100644 --- a/app/controllers/orbit_backend_controller.rb +++ b/app/controllers/orbit_backend_controller.rb @@ -1,10 +1,6 @@ class OrbitBackendController < ApplicationController - #before_filter :setup_vars - #before_filter :set_current_user - - # before_filter {|c| c.front_end_available(@app_title)} - # before_filter :check_user_can_use - include OrbitCoreLib::PermissionUnility + include OrbitCoreLib::AppBackendUtility + include OrbitCoreLib::PermissionUtility include AdminHelper include ApplicationHelper diff --git a/app/controllers/orbit_frontend_controller.rb b/app/controllers/orbit_frontend_controller.rb index e1be8167..386b8cda 100644 --- a/app/controllers/orbit_frontend_controller.rb +++ b/app/controllers/orbit_frontend_controller.rb @@ -1,3 +1,4 @@ class OrbitFrontendController< OrbitFrontendComponentController + end \ No newline at end of file diff --git a/app/controllers/orbit_widget_controller.rb b/app/controllers/orbit_widget_controller.rb index 47e24fe0..f006cd43 100644 --- a/app/controllers/orbit_widget_controller.rb +++ b/app/controllers/orbit_widget_controller.rb @@ -1,3 +1,4 @@ class OrbitWidgetController< OrbitFrontendComponentController + end \ No newline at end of file diff --git a/app/helpers/admin/page_parts_helper.rb b/app/helpers/admin/page_parts_helper.rb index e8a1afc4..818fe46b 100644 --- a/app/helpers/admin/page_parts_helper.rb +++ b/app/helpers/admin/page_parts_helper.rb @@ -10,43 +10,85 @@ module Admin::PagePartsHelper end def widget_field_options(i,local_item=nil) - local_item = @part if local_item.nil? - options = @module_app.widget_fields.collect{|widget_field| [I18n.t(widget_field[1]), widget_field[0]]} - options_for_select(options, (local_item[:widget_field][i][0] if (local_item && !local_item[:widget_field].blank? && !local_item[:widget_field][i].blank?)) ) + local_item = @part if local_item.nil? && @part + local_item = @page if local_item.nil? && @page + + options = @module_app.widget_fields.collect do |widget_field| + label = I18n.t("#{@module_app.key}.default_widget.#{widget_field[0]}") + [label, widget_field[0]] + end + + case local_item + when Page + options_for_select(options, (local_item[:frontend_field][i][0] if (local_item && !local_item[:frontend_field].blank? && !local_item[:frontend_field][i].blank?)) ) + when PagePart + options_for_select(options, (local_item[:widget_field][i][0] if (local_item && !local_item[:widget_field].blank? && !local_item[:widget_field][i].blank?)) ) + end end def widget_fiield_type_options(i,local_item=nil) options = LIST[:widget_field_type].collect{|widget_field| [widget_field.humanize, widget_field]} - local_item = @part if local_item.nil? - options_for_select(options, (local_item[:widget_field][i][1] if (local_item && !local_item[:widget_field].blank? && !local_item[:widget_field][i].blank?)) ) + local_item = @part if local_item.nil? && @part + local_item = @page if local_item.nil? && @page + + case local_item + when Page + options_for_select(options, (local_item[:frontend_field][i][1] if (local_item && !local_item[:frontend_field].blank? && !local_item[:frontend_field][i].blank?)) ) + when PagePart + options_for_select(options, (local_item[:widget_field][i][1] if (local_item && !local_item[:widget_field].blank? && !local_item[:widget_field][i].blank?)) ) + end end def tag_checked_value(part,radio_value) - part and (part[:tag] == radio_value) ? true : false + if radio_value.blank? + (part.nil? || part[:tag].blank?)? true : false + else + part and (part[:tag] == radio_value.to_s) ? true : false + end end - def category_checked_value(part,radio_value) - part and (part[:category] == radio_value) ? true : false + if radio_value.blank? + (part.nil? || part[:category].blank?)? true : false + else + part and (part[:category] == radio_value.to_s) ? true : false + end end def style_checked_value(part,radio_value) - part and (part.widget_style == radio_value) ? true : false + case part + when Page + if part.frontend_style.nil? && radio_value == "typeA" + true + else + (part.frontend_style == radio_value) ? true : false + end + when PagePart + if part.widget_style.nil? && radio_value == "typeA" + true + else + (part.widget_style == radio_value) ? true : false + end + when nil + false + end end def nil_radio_button(part,tag_or_cate) + field_name = case part + when PagePart + 'page_part' + when Page + 'page' + end content_tag :label,:class=>"radio inline" do - op = radio_button("page_part", tag_or_cate, '' , :checked => eval("#{tag_or_cate}_checked_value(part,'')")) + op = radio_button(field_name, tag_or_cate, '' , :checked => eval("#{tag_or_cate}_checked_value(part,'')")) op << I18n.t("default_widget.no_value") end end def show_default_widget_setting_panel - if @module_app.has_default_widget? && (!@user_choose.nil? && @user_choose== 'default_widget') #&& @part.widget_path == 'default_widget' - true - else - false - end + @module_app && @module_app.has_default_widget? && (!@user_choose.nil? && @user_choose== 'default_widget') #&& @part.widget_path == 'default_widget' end def show_custom_widget_setting_panel diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index 120e1245..7cb28b96 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -16,7 +16,7 @@ module AdminHelper end def is_admin? - current_or_guest_user.admin? + current_or_guest_user.admin? rescue false end def is_member? diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5c6cca95..655a2090 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -54,8 +54,14 @@ module ApplicationHelper raw(formatted_messages.join) end - def link_back - link_to t('back'), get_go_back, :class => 'nav' + def link_back(custom_class=nil) + case custom_class + when nil + link_to t('back'), get_go_back, :class => 'nav' + else + link_to t('back'), get_go_back, :class => custom_class + end + end # Clean the link back @@ -197,7 +203,6 @@ module ApplicationHelper javascripts << "\n" javascripts << "\n" javascripts << "\n" - javascripts << "\n" javascripts << "\n" javascripts << "\n" javascripts << "\n" diff --git a/app/helpers/default_widget_helper.rb b/app/helpers/default_widget_helper.rb index acab557c..645f50f0 100644 --- a/app/helpers/default_widget_helper.rb +++ b/app/helpers/default_widget_helper.rb @@ -49,7 +49,8 @@ module DefaultWidgetHelper when nil eval method_entry else - eval("#{method_entry}('#{object}')" ) + object = "'#{object.to_s}'" if object.class == BSON::ObjectId + eval("#{method_entry}(#{object})" ) end end diff --git a/app/models/item.rb b/app/models/item.rb index 6b34d8b8..a670435f 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -4,7 +4,8 @@ class Item include Mongoid::Timestamps include Mongoid::Tree include Mongoid::Tree::Ordering - + LIST = YAML.load(File.read('config/list.yml')) + field :name field :path field :is_published, :type => Boolean, :default => false @@ -15,7 +16,7 @@ class Item validates_format_of :name, :with => /^[0-9a-zA-Z\-_]+$/ - validates :name, :exclusion => { :in => LIST[:forbidden_item_names] } + # validates :name, :exclusion => { :in => LIST[:forbidden_item_names] } validates_uniqueness_of :name, :scope => :parent_id validates_presence_of :name validates_associated :parent, :children diff --git a/app/models/module_app.rb b/app/models/module_app.rb index ab88cdea..fb735438 100644 --- a/app/models/module_app.rb +++ b/app/models/module_app.rb @@ -1,111 +1,130 @@ class ModuleApp include Mongoid::Document include Mongoid::Timestamps - include OrbitCoreLib::ObjectTokenUnility + include OrbitCoreLib::ObjectTokenUtility + include OrbitApp::ModuleAppMembershipTools field :key field :title - field :version - field :organization - field :author - field :intro - field :update_info - field :create_date - field :enable_frontend, type: Boolean, :default => true + field :sidebar_order#,type: Integer + + def refetch_setting!(reg) + # %w{module_label category base_url version organization author intro update_info create_date}.each do |field| + # self[field.to_sym] = reg.send field + # end + self[:app_pages] = reg.get_app_pages + self[:enable_frontend] = reg.get_enable_frontend + self[:get_widget_style] = reg.get_widgets + self[:using_default_widget] = !reg.get_default_widget.blank? + self[:widgets] = reg.get_widgets + end + - field :app_pages ,type: Array - # field :widgets ,type: Array - field :widgets ,type: Hash - field :widget_fields ,type: Array - field :widget_options,type:Hash - field :widget_options_fields_i18n,type:Hash - field :widget_fields_link_method,type:Hash - field :get_default_widget,type:Hash + # def app_pages + # get_registration.get_app_pages + # end + + + def enable_frontend? + self[:enable_frontend] + end + + def get_default_widget + raise 'Need to link with OrbitApp [type: Array]' + end + + + def get_widget_for_select + widgets = get_widget_style + ary = widgets.collect do |k,v| + if k == 'default_widget' + [I18n.t('widget.default_widget'),'default_widget'] + else + [I18n.t(v[:label]),k] + end + + end + end + + # def get_widget_style + # get_registration.get_widgets + # end + + def has_default_widget? + self[:widgets].has_key? 'default_widget' + end + + def label + I18n.t(label_i18n) + end + + def label_i18n + reg = get_registration + reg.nil? ? 'Init is not defined completely' : get_registration.get_label_i18n + end + + + # def needs_to_widget_option? + # if self.widget_options + # self.widget_options.has_key? widgets.first + # else + # false + # end + # end + + def using_default_widget? + # !get_registration.get_default_widget.blank? + self[:get_default_widget] + end + + def widget_fields + # binding.pry + # raise 'Need to link with OrbitApp [type: Array]' + get_registration.get_default_widget_fields + end + + # def widgets + # # get_registration.get_widgets + # # get_registration.get_default_widget + # end + + def widget_options(widget_path=nil) + get_registration.get_widget_by_path(widget_path) + # raise 'Need to link with OrbitApp [type: Hash]' + end + + def widget_options_fields_i18n + raise 'Need to link with OrbitApp [type: Hash]' + end + + def widget_fields_link_method + raise 'Need to link with OrbitApp [type: Hash]' + end + has_many :managers,as: :managing_app ,:class_name => "AppManager" ,:dependent => :destroy#,:foreign_key => "managing_app_id",:inverse_of => :managing_app has_many :sub_managers,as: :sub_managing_app ,:class_name => "AppManager", :dependent => :destroy#,:foreign_key => "sub_managing_app_id",:inverse_of => :sub_managing_app - has_many :tags + # # has_many :tags has_many :page_parts has_many :pages has_one :app_auth,dependent: :delete - - before_save :set_key - - def is_manager?(user) - managing_users.include?(user) - end - - def is_sub_manager?(user) - sub_managing_users.include?(user) || is_manager?(user) - end - - def managing_users - self.managers.collect{ |t| t.user } - end - - def sub_managing_users - self.sub_managers.collect{ |t| t.user } - end - - def assign_manager(user,assigner) - manager = AppManager.first(conditions: {managing_app_id: self.id,user_id: user.id}) rescue nil - if manager.nil? - manager = self.managers.create(:user_id => user.id,:rule_creator_id => (assigner.id rescue nil)) - end - manager - end - - def assign_sub_manager(user,assigner) - submanager = AppManager.first(conditions: {sub_managing_app_id: self.id,user_id: user.id}) rescue nil - if submanager.nil? && !self.managing_users.include?(user) - submanager = self.sub_managers.create(:user_id => user.id,:rule_creator_id => (assigner.id rescue nil) ) - end - submanager - end - - def remove_manager(user) - manager = AppManager.first(conditions: {managing_app_id: self.id,user_id: user.id}) rescue nil - if manager - manager.destroy - else - false - end - end - - def remove_sub_manager(user) - submanager = AppManager.first(conditions: {sub_managing_app_id: self.id,user_id: user.id}) rescue nil - if submanager - submanager.destroy - else - false - end - end - - def needs_to_widget_option? - if self.widget_options - self.widget_options.has_key? widgets.first - else - false - end + + def get_tags + get_registration.get_tags end - def has_default_widget? - case self[:widgets] - when Array - false - when Hash - self[:widgets].has_key? 'default_widget' - end - + def get_categories + get_registration.get_categories end - protected - - def set_key - self.key = self.title.underscore.singularize if self.title + def module_name + I18n.t(get_registration.get_label_i18n) end + def get_registration + OrbitApp::Module::Registration.find_by_key(key) + end end diff --git a/app/models/object_auth.rb b/app/models/object_auth.rb index 6c7405ca..f2ef5c04 100644 --- a/app/models/object_auth.rb +++ b/app/models/object_auth.rb @@ -1,5 +1,5 @@ class ObjectAuth < PrototypeAuth - include OrbitCoreLib::ObjectTokenUnility + include OrbitCoreLib::ObjectTokenUtility validates_uniqueness_of :title ,:scope => [:obj_authable_type,:obj_authable_id] #{ |c| } belongs_to :obj_authable, polymorphic: true after_save :check_user_has_can_access_app diff --git a/app/models/page_part.rb b/app/models/page_part.rb index ebaac684..b48c8060 100644 --- a/app/models/page_part.rb +++ b/app/models/page_part.rb @@ -23,6 +23,15 @@ class PagePart before_save :delete_empty_widget_field after_save :update_parent + # def module_app + # if self[:module_app] + # self[:module_app] + # elsif self[:kind] == 'module_widget' + # self.page.module_app + # else + # nil + # end + # end protected @@ -37,5 +46,4 @@ class PagePart self.page.save end - end \ No newline at end of file diff --git a/app/uploaders/location_uploader.rb b/app/uploaders/location_uploader.rb new file mode 100644 index 00000000..1c2ec99d --- /dev/null +++ b/app/uploaders/location_uploader.rb @@ -0,0 +1,61 @@ +class LocationUploader < CarrierWave::Uploader::Base + + # Include RMagick or ImageScience support: + # include CarrierWave::RMagick + # include CarrierWave::ImageScience + include CarrierWave::MiniMagick + + # Choose what kind of storage to use for this uploader: + # storage :file + # storage :s3 + + # Override the directory where uploaded files will be stored. + # This is a sensible default for uploaders that are meant to be mounted: + def store_dir + "location/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" + end + + # Provide a default URL as a default if there hasn't been a file uploaded: + # def default_url + # "/images/fallback/" + [version_name, "default.png"].compact.join('_') + # end + + # Process files as they are uploaded: + # process :scale => [200, 300] + # + # def scale(width, height) + # # do something + # end + + # Create different versions of your uploaded files: + # version :thumb do + # process :scale => [50, 50] + # end + + version :thumb do + process :resize_to_fill => [150, 120] + end + + # Add a white list of extensions which are allowed to be uploaded. + # For images you might use something like this: + # def extension_white_list + # %w(jpg jpeg gif png) + # end + + # Override the filename of the uploaded files: + # def filename + # "something.jpg" if original_filename + # end + +# def manipulate! +# raise current_path.inspect +# image = ::MiniMagick::Image.open(current_path) +# image = yield(image) +# image.write(current_path) +# ::MiniMagick::Image.open(current_path) +# rescue ::MiniMagick::Error, ::MiniMagick::Invalid => e +# raise CarrierWave::ProcessingError.new("Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: #{e}") +# end + +end + diff --git a/app/views/admin/module_apps/_app_selector.html.erb b/app/views/admin/module_apps/_app_selector.html.erb index c20a3885..60cf2d6f 100644 --- a/app/views/admin/module_apps/_app_selector.html.erb +++ b/app/views/admin/module_apps/_app_selector.html.erb @@ -1 +1 @@ -<%= f.select :module_app_id, @apps.collect { |t| [t.title.capitalize, t.id] }, {:include_blank => true} ,{:rel => admin_module_apps_path } %> +<%= f.select :module_app_id, @apps.collect { |t| [t.module_name, t.id] }, {:include_blank => true} ,{:rel => admin_module_apps_path } %> diff --git a/app/views/admin/module_apps/reload_frontend_pages.js.erb b/app/views/admin/module_apps/reload_frontend_pages.js.erb deleted file mode 100644 index 4bfbd7fc..00000000 --- a/app/views/admin/module_apps/reload_frontend_pages.js.erb +++ /dev/null @@ -1,5 +0,0 @@ -$('#app_page_url').html("<%= escape_javascript(select 'page', 'app_frontend_url', @module_app.app_pages) %>"); -$('#app_page_frontend_style').html("<%= escape_javascript(select 'page', 'frontend_style', @module_app.widgets[@frontend_path]) if !@frontend_path.blank? %>"); -$('#app_page_category').html("<%= j (select 'page', 'category', @categories.collect{|category| [category.title, category.id]}, {:include_blank => true}) if @categories %>"); -$('#app_page_tag').html("<%= j (select 'page', 'tag', @tags.collect{|tag| [tag[I18n.locale], tag.id]}, {:include_blank => true}) if @tags %>"); -$('#app_page_frontend_field').html("<%= j render '../admin/pages/frontend_fields' %>") diff --git a/app/views/admin/page_parts/_custom_widget_setting.html.erb b/app/views/admin/page_parts/_custom_widget_setting.html.erb index a257336e..998b5853 100644 --- a/app/views/admin/page_parts/_custom_widget_setting.html.erb +++ b/app/views/admin/page_parts/_custom_widget_setting.html.erb @@ -1,12 +1,20 @@ -
- - <% if @module_app.widgets[@widget_path].blank? %> - <%= t("default_widget.no_support_setting")%> - <%else%> - <%= select('page_part', 'widget_style', @module_app.widgets[@widget_path]) %> - <% end %> - <% if(@module_app.widget_options && @module_app.widget_options.has_key?(@widget_path)) %> - - <%= render :partial=> "widget_ext_options" %> - <% end %> -
\ No newline at end of file +
+ +
+ <% if @module_app.nil? || @module_app.widgets.nil? || (@module_app.widgets[@widget_path].blank? rescue true) %> + <%= t("default_widget.no_support_setting")%> + <%else%> + <%= select('page_part', 'widget_style', @module_app.widgets[@widget_path]["style"]) %> + <% end %> +
+
+ <% if(@module_app && @module_app.widget_options(@widget_path)) %> +
+ +
+ <%= render :partial=> "widget_ext_options" %> +
+
+ <% end %> \ No newline at end of file diff --git a/app/views/admin/page_parts/_default_widget_setting.html.erb b/app/views/admin/page_parts/_default_widget_setting.html.erb index 728bf010..8496b19b 100644 --- a/app/views/admin/page_parts/_default_widget_setting.html.erb +++ b/app/views/admin/page_parts/_default_widget_setting.html.erb @@ -1,4 +1,19 @@ -
+<% case object%> + <% when PagePart %> + <% object_name = 'page_part' %> + <% field_name = 'widget_field' %> + <% data_count = 'widget_data_count' %> + <% when Page %> + <% object_name = 'page' %> + <% field_name = 'frontend_field' %> + <% data_count = 'frontend_data_count' %> +<% end %> + +
+ +
@@ -16,19 +31,24 @@
<%= i+1 %> - <%= select_tag "page_part[widget_field][]", widget_field_options(i), :include_blank => true %> + <%= select_tag "#{object_name}[#{field_name}][]", widget_field_options(i), :include_blank => true %> - <%= select_tag "page_part[widget_field_type][]", widget_fiield_type_options(i), :include_blank => true %>
+ <%= select_tag "#{object_name}[#{field_name}_type][]", widget_fiield_type_options(i), :include_blank => true %>
-
+

<% end %>
- <%= label_tag t("default_widget.widget_data_count") %> + + <%= label_tag t("default_widget.widget_data_count") %> +
- <%= text_field_tag :widget_data_count,@part.widget_data_count %> + + <%= text_field_tag "#{object_name}[#{data_count}]",object.send(data_count) %> +
+
\ No newline at end of file diff --git a/app/views/admin/page_parts/_default_widget_style_panel.html.erb b/app/views/admin/page_parts/_default_widget_style_panel.html.erb index 3a4096b4..bc6fc89c 100644 --- a/app/views/admin/page_parts/_default_widget_style_panel.html.erb +++ b/app/views/admin/page_parts/_default_widget_style_panel.html.erb @@ -1,45 +1,58 @@ -
- +<% field_name='' %> +<% case object %> + <% when Page %> + <% field_name = "page[frontend_style]" %> + <% when PagePart %> + <% field_name = "page_part[widget_style]" %> +<% end %> + +
+ +
  • <%=image_tag 'module/default_widgets/style01.png'%> - <%= t("default_widget.caption.typeA") %> + <%= t("default_widget.caption.typeA") %> + +
  • <%=image_tag 'module/default_widgets/style02.png'%> - <%= t("default_widget.caption.typeA") %> + <%= t("default_widget.caption.typeB_style2") %> +
  • <%=image_tag 'module/default_widgets/style03.png'%> <%= t("default_widget.caption.typeB_style3") %> +
  • <%=image_tag 'module/default_widgets/style04.png'%> <%= t("default_widget.caption.typeB_style4") %> +
  • <%=image_tag 'module/default_widgets/style05.png'%> <%= t("default_widget.caption.typeC") %> +
+
\ No newline at end of file diff --git a/app/views/admin/page_parts/_edit.html.erb b/app/views/admin/page_parts/_edit.html.erb index c4bc7476..812f50c7 100644 --- a/app/views/admin/page_parts/_edit.html.erb +++ b/app/views/admin/page_parts/_edit.html.erb @@ -1,10 +1,11 @@ <%= stylesheet_link_tag "admin/default_widget_setting" %> -<%= form_for @part, :url => admin_page_part_path(@part) do |f| %> - +<%= form_for @part, :url => admin_page_part_path(@part),:html=>{:class=>"clear form-horizontal edit_page_part"} do |f| %> <% LIST[:page_part_kinds].each do |kind| %> + <%= label_tag '',:class=>'checkbox inline' do %> <%= f.radio_button :kind, kind, :class => 'part_kind' %> <%= t(kind, :scope => 'page_part_kinds') %> + <% end %> <% end %> <% LIST[:page_part_kinds].each do |kind| %>
@@ -12,7 +13,9 @@
<% end %> -

- <%= f.submit t(:update_) %> <%= link_back %> -

+
+ <%= f.submit t(:update_),:class=>"btn btn-primary" %> + <%= link_back("btn") %> + +
<% end %> diff --git a/app/views/admin/page_parts/_module_widget.html.erb b/app/views/admin/page_parts/_module_widget.html.erb index 5cfcbbf0..38fb013f 100644 --- a/app/views/admin/page_parts/_module_widget.html.erb +++ b/app/views/admin/page_parts/_module_widget.html.erb @@ -1,39 +1,47 @@
- <%= f.fields_for :title_translations do |f| %> + <%= f.fields_for :title_translations do |f| %> <% @site_valid_locales.each do |locale| %> -

- <%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}" %> - <%= f.text_field locale, :value => (@part.title_translations[locale] rescue nil),:size=>30 %> -

- <% end %> +
+ <%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}",:class=>"control-label" %> +
+ <%= f.text_field locale, :value => (@part.title_translations[locale] rescue nil),:size=>30 %> +
+
<% end %> + <% end %>
-

- - <%= f.select :module_app, options_from_collection_for_select(@module_apps, :id, :title, :selected => @module_app.id), {}, {:rel => admin_page_parts_path} %> -

+ +
+ +
+ <%= f.select :module_app, options_from_collection_for_select(@module_apps, :id, :module_name, :selected => (@module_app.id rescue nil)), {:include_blank => true }, {:rel => admin_page_parts_path,:id=>"page_module_app_id"} %> +
+
-

- - <%= f.select :widget_path, @module_app.widgets.collect{|k,v| [k.humanize, k]}, {}, { :selected => @part.widget_path, :rel => admin_page_parts_path } %> -

+
+ +
+ <%= f.select :widget_path, @module_app ? @module_app.widgets.collect{|k,v| [I18n.t(v["i18n"]),k]} : [], {}, { :selected => @part.widget_path, :rel => admin_page_parts_path } %> +
+
+
-
- <%= render :partial => 'widget_data_source_category' %> +
+ <%= render :partial => 'widget_data_source_category' ,:locals=>{:object=>@part}%>
-
- <%= render :partial => 'widget_data_source_tag' %> +
+ <%= render :partial => 'widget_data_source_tag' ,:locals=>{:object=>@part} %>
- <%= render :partial => 'widget_setting' ,:locals=>{:f=>f} %> + <%= render :partial => 'widget_setting' ,:locals=>{:f=>f,:object=>@part} %>
- - diff --git a/app/views/admin/page_parts/_reset.html.erb b/app/views/admin/page_parts/_reset.html.erb new file mode 100644 index 00000000..3698d0f5 --- /dev/null +++ b/app/views/admin/page_parts/_reset.html.erb @@ -0,0 +1,8 @@ +
+ +
+ <%= t('default_widget.no_support_setting') %> +
+
\ No newline at end of file diff --git a/app/views/admin/page_parts/_widget_data_source_category.html.erb b/app/views/admin/page_parts/_widget_data_source_category.html.erb index bd358cda..d088c645 100644 --- a/app/views/admin/page_parts/_widget_data_source_category.html.erb +++ b/app/views/admin/page_parts/_widget_data_source_category.html.erb @@ -1,12 +1,22 @@ - +<% case object %> +<% when Page %> + <% field_name = 'page' %> +<% when PagePart %> + <% field_name = 'page_part' %> +<% end %> + + + +
<% if @categories %> -
- <%= nil_radio_button(@part,:category) %> - <%= content_tag_for(:label, @categories,:class=>"radio inline") do |category|%> - <%= radio_button("page_part", "category", category.id, :checked => category_checked_value(@part,category.id) )%> - <%= category.title%> - <% end %> -
- <% else %> - <%= t("default_widget.no_support_setting")%> - <% end %> \ No newline at end of file +
+ <%= nil_radio_button(object,:category) %> + <%= content_tag_for(:label, @categories,:class=>"radio inline") do |category|%> + <%= radio_button_tag("#{field_name}[category]", category.id, category_checked_value(object,category.id) )%> + <%= category.title%> + <% end %> +
+ <% else %> + <%= t("default_widget.no_support_setting")%> + <% end %> +
\ No newline at end of file diff --git a/app/views/admin/page_parts/_widget_data_source_tag.html.erb b/app/views/admin/page_parts/_widget_data_source_tag.html.erb index 062cd1f5..bcb3e9c3 100644 --- a/app/views/admin/page_parts/_widget_data_source_tag.html.erb +++ b/app/views/admin/page_parts/_widget_data_source_tag.html.erb @@ -1,12 +1,22 @@ - +<% case object %> +<% when Page %> + <% field_name = 'page' %> +<% when PagePart %> + <% field_name = 'page_part' %> +<% end %> + + + +
<% if @categories %>
- <%= nil_radio_button(@part,:tag) %> + <%= nil_radio_button(object,:tag) %> <%= content_tag_for(:label, @tags,:class=>"radio inline") do |tag|%> - <%= radio_button("page_part", "tag", tag.id, :checked => tag_checked_value(@part,tag.id) )%> + <%= radio_button_tag("#{field_name}[tag]", tag.id, tag_checked_value(object,tag.id) ) %> <%= tag[I18n.locale]%> - <% end %> + <% end if @tags%>
<% else %> <%= t("default_widget.no_support_setting")%> - <% end %> \ No newline at end of file + <% end %> +
\ No newline at end of file diff --git a/app/views/admin/page_parts/_widget_ext_options.html.erb b/app/views/admin/page_parts/_widget_ext_options.html.erb index c38d0543..6985939b 100644 --- a/app/views/admin/page_parts/_widget_ext_options.html.erb +++ b/app/views/admin/page_parts/_widget_ext_options.html.erb @@ -1,5 +1,6 @@ - <% @module_app.widget_options[@widget_path].each do |key,options| %> - <%= label_tag(t(@module_app.widget_options_fields_i18n[@widget_path][key]))%> + <% @module_app.widget_options(@widget_path).get_options.each do |key,settings| %> + <% options = settings[:opts] %> + <%= label_tag(t(settings[:label_i18n]))%> <% case options%> <% when Hash%> <%= select_tag "page_part[widget_options][#{key}]", options_from_collection_for_select(eval(options["query"]), options["value"], options["label"].to_s, :selected => (@part.widget_options[key] rescue nil)) %> diff --git a/app/views/admin/page_parts/_widget_setting.html.erb b/app/views/admin/page_parts/_widget_setting.html.erb index a84717b1..8de90109 100644 --- a/app/views/admin/page_parts/_widget_setting.html.erb +++ b/app/views/admin/page_parts/_widget_setting.html.erb @@ -1,10 +1,10 @@ <% if show_default_widget_setting_panel %>
- <%= render :partial => 'default_widget_style_panel',:locals=>{:f=>f} %> - <%= render :partial => 'default_widget_setting' %> + <%= render :partial => 'admin/page_parts/default_widget_style_panel',:locals=>{:f=>f,:object=>object} %> + <%= render :partial => 'admin/page_parts/default_widget_setting',:locals=>{:object=>object} %>
<% elsif show_custom_widget_setting_panel %>
- <%= render :partial => 'custom_widget_setting' %> + <%= render :partial => 'admin/page_parts/custom_widget_setting',:locals=>{:object=>object} %>
<% end %> diff --git a/app/views/admin/page_parts/old_partials/_widget_categories.html.erb b/app/views/admin/page_parts/old_partials/_widget_categories.html.erb deleted file mode 100644 index 7db04e3e..00000000 --- a/app/views/admin/page_parts/old_partials/_widget_categories.html.erb +++ /dev/null @@ -1 +0,0 @@ - <%= select 'page_part', 'category', @categories.collect{|category| [category.title, category.id]}, :selected => (@part ? @part[:category] : nil), :include_blank => true if @categories && @categories.size > 0 %> \ No newline at end of file diff --git a/app/views/admin/page_parts/old_partials/_widget_tags.html.erb b/app/views/admin/page_parts/old_partials/_widget_tags.html.erb deleted file mode 100644 index 688ac3cb..00000000 --- a/app/views/admin/page_parts/old_partials/_widget_tags.html.erb +++ /dev/null @@ -1 +0,0 @@ - <%= select 'page_part', 'tag', @tags.collect{|tag| [tag[I18n.locale], tag.id]}, :selected => (@part ? @part[:tag] : nil), :include_blank => true if @tags && @tags.size > 0 %> \ No newline at end of file diff --git a/app/views/admin/page_parts/reload_widget_styles.js.erb b/app/views/admin/page_parts/reload_widget_styles.js.erb index 8451fbec..b9eb3649 100644 --- a/app/views/admin/page_parts/reload_widget_styles.js.erb +++ b/app/views/admin/page_parts/reload_widget_styles.js.erb @@ -1,7 +1,7 @@ - <% if show_default_widget_setting_panel %> - $('#widget_setting').html("<%= j render :partial => 'default_widget_style_panel' %>"); - $('#widget_setting').append("<%= j render :partial => 'default_widget_setting' %>"); + $('#widget_setting').html("<%= j render :partial => 'default_widget_style_panel',:locals=>{:object=>@part} %>"); + $('#widget_setting').append("<%= j render :partial => 'default_widget_setting',:locals=>{:object=>@part} %>"); <% elsif show_custom_widget_setting_panel %> $('#widget_setting').html("<%= j render :partial => 'custom_widget_setting' %>"); <% end %> + diff --git a/app/views/admin/page_parts/reload_widgets.js.erb b/app/views/admin/page_parts/reload_widgets.js.erb index e046c1f0..c32e07c2 100644 --- a/app/views/admin/page_parts/reload_widgets.js.erb +++ b/app/views/admin/page_parts/reload_widgets.js.erb @@ -1,13 +1,18 @@ -$('#widget_list select').html("<%= j options_for_select(@module_app.widgets.collect{|k,v| k},@part.widget_path) %>"); -$("#widget_data_source_category").html("<%= j render :partial => 'widget_data_source_category' %>"); -$("#widget_data_source_tag").html("<%= j render :partial => 'widget_data_source_tag' %>"); +<% if @module_app%> + $('#widget_list select').html("<%= j options_for_select(@module_app.widgets.collect{|k,v| [I18n.t(v['i18n']),k]},@part.widget_path) %>"); + $("#widget_data_source_category").html("<%= j render :partial => 'widget_data_source_category',:locals=>{:object=>@part} %>"); + $("#widget_data_source_tag").html("<%= j render :partial => 'widget_data_source_tag',:locals=>{:object=>@part} %>"); -<% if !@part.widget_path.blank? %> - <% if show_default_widget_setting_panel %> - $('#widget_setting').html("<%= j render :partial => 'default_widget_style_panel' %>"); - $('#widget_setting').append("<%= j render :partial => 'default_widget_setting' %>"); - <% elsif show_custom_widget_setting_panel %> - $('#widget_setting').html("<%= j render :partial => 'custom_widget_setting' %>"); + <% if @part %> + <% if show_default_widget_setting_panel %> + $('#widget_setting').html("<%= j render :partial => 'default_widget_style_panel' %>"); + $('#widget_setting').append("<%= j render :partial => 'default_widget_setting',:locals=>{:object=>@part} %>"); + <% elsif show_custom_widget_setting_panel %> + $('#widget_setting').html("<%= j render :partial => 'custom_widget_setting' %>"); + <% end %> <% end %> + <% else %> + $('#widget_option').find("div.well.controls").html("<%= t('default_widget.no_support_setting')%>"); + $('#widget_setting').html("<%=j render :partial=> 'reset',:locals=>{:label_i18n=>'default_widget.select_widget_style'}%>"); + $('#widget_list select').html("<%= j options_for_select([]) %>"); <% end %> - diff --git a/app/views/admin/pages/_app_selector.html.erb b/app/views/admin/pages/_app_selector.html.erb index c20a3885..9cb4c694 100644 --- a/app/views/admin/pages/_app_selector.html.erb +++ b/app/views/admin/pages/_app_selector.html.erb @@ -1 +1 @@ -<%= f.select :module_app_id, @apps.collect { |t| [t.title.capitalize, t.id] }, {:include_blank => true} ,{:rel => admin_module_apps_path } %> +<%= f.select :module_app_id, @apps.collect { |t| [t.module_name, t.id] }, {:include_blank => true} ,{:rel => admin_pages_path } %> diff --git a/app/views/admin/pages/_custom_frontend_setting.html.erb b/app/views/admin/pages/_custom_frontend_setting.html.erb new file mode 100644 index 00000000..8b52708e --- /dev/null +++ b/app/views/admin/pages/_custom_frontend_setting.html.erb @@ -0,0 +1,8 @@ +
+ +
+ <%= t("default_widget.no_support_setting")%> +
+
diff --git a/app/views/admin/pages/_form.html.erb b/app/views/admin/pages/_form.html.erb index 85c1450f..8198cda6 100644 --- a/app/views/admin/pages/_form.html.erb +++ b/app/views/admin/pages/_form.html.erb @@ -2,9 +2,12 @@ <%= f.hidden_field :parent, :value => (@item.parent.id rescue nil) %>
- <%= f.label :name, t(:name), :class => 'control-label' %> + <%= f.label :name, '*'+t(:name), :class => 'control-label' %> + +
<%= f.text_field :name, :class => 'text input-xlarge' %> + 請輸入數字或英文,不可使用空白
@@ -35,36 +38,37 @@
-
- <%= f.label :name, t(:module), :class => 'control-label' %> + +
+ <%= f.label '',t("default_widget.select_module_app"), :class => 'control-label' %>
<%= render :partial => "app_selector", :locals => { :f => f } %> - - <%= select('page','app_frontend_url', @app_frontend_urls, :selected => @item.app_frontend_url ) rescue ''%> - - - <%= select('page','frontend_style', @frontend_style, :selected => @item[:frontend_style], :include_blank => true ) rescue ''%> - - - <%= select('page','category', @categories.collect{|category| [category.title, category.id]}, :selected => @item[:category], :include_blank => true ) rescue ''%> - - - <%= select('page','tag', @tags.collect{|tag| [tag[I18n.locale], tag.id]}, :selected => @item[:tag], :include_blank => true ) rescue ''%> - - - <%= render 'frontend_fields' %> - -
-
- <%= f.label :frontend_data_count, t(:frontend_data_count), :class => 'control-label' %> -
- <%= f.text_field :frontend_data_count %> + +
+ <%= f.label '', t("front_page.select_app_url"), :class => 'control-label' %> +
+ <%= select('page','app_frontend_url', @app_frontend_urls || [], :selected => @item.app_frontend_url ) rescue ''%>
+ + +
+ <%= render :partial=>"admin/page_parts/widget_data_source_category",:locals=>{:object=>@item} %> +
+ +
+ <%= render :partial=>"admin/page_parts/widget_data_source_tag" ,:locals=>{:object=>@item}%> +
+ +
+ <%= render :partial => 'frontend_setting', :locals=>{:object=>@item,:f=>f} %> +
+ +
- <%= f.label :is_published, "#{t(:is_published)} ?", :class => 'control-label' %> + <%= f.label :is_published, "#{t('front_page.is_published')} ?", :class => 'control-label' %>
- <%= f.label :menu_enabled_for, "#{t(:menu_enabled_for)}:", :class => 'control-label' %> + <%= f.label :menu_enabled_for, "#{t('front_page.menu_enable_lang')}:", :class => 'control-label' %>
<% @site_valid_locales.each do |valid_locale| %>
- <%= f.label :enabled_for, "#{t(:enabled_for)}:", :class => 'control-label' %> + <%= f.label :enabled_for, "#{t('front_page.link_enable_lang')}:", :class => 'control-label' %>
<% @site_valid_locales.each do |valid_locale| %>
-
-
\ No newline at end of file diff --git a/app/views/layouts/_orbit_bar.html.erb b/app/views/layouts/_orbit_bar.html.erb index 36638302..7d20daf1 100644 --- a/app/views/layouts/_orbit_bar.html.erb +++ b/app/views/layouts/_orbit_bar.html.erb @@ -10,25 +10,19 @@
" else part = page.page_parts.detect{ |p| p.name.to_s == content['name'].to_s } rescue nil @@ -116,7 +123,9 @@ module ParserFrontEnd else "/panel/\#{part.module_app.key}/widget/\#{part.widget_path}?inner=true" end - options = "&part_id=\#{part.id}&category_id=\#{!part[:category].blank? ? part[:category].blank? : category}&tag_id=\#{!part[:tag].blank? ? part[:tag] : tag}&page=\#{params[:page]}&search_query=\#{params[:search_query]}&part_title=\#{Rack::Utils.escape(part_title).gsub(\"\+\", \"\%20\") rescue nil}" + + options = "&part_id=\#{part.id}&category_id=\#{!part[:category].blank? ? part[:category].blank? : category}&tag_id=\#{!part[:tag].blank? ? part[:tag] : tag}&page=\#{params[:page]}&search_query=\#{params[:search_query]}&part_title=\#{Rack::Utils.escape(part_title).gsub(\"\+\", \"\%20\") rescue nil}&item_type=page_part" + ret << "" when 'public_r_tag' diff --git a/lib/tasks/migrate.rake b/lib/tasks/migrate.rake index a791b7b6..14516d93 100644 --- a/lib/tasks/migrate.rake +++ b/lib/tasks/migrate.rake @@ -351,9 +351,11 @@ namespace :migrate do end - task :make_default_widget_work_config => :environment do + + task :make_default_widget_work_config_for_announcement => :environment do a = ModuleApp.where(:key=>'announcement').first a.widgets[:default_widget] = ['typeA','typeC','typeB_style2','typeB_style3','typeB_style4'] + a.widgets = {"index"=>["1", "2"], "default_widget"=>["typeA", "typeC", "typeB_style2", "typeB_style3", "typeB_style4"]} a.widget_fields = [ ["title","announcement.default_widget.title"], ["bulletin_category_with_title","announcement.default_widget.bulletin_category_with_title"], @@ -370,6 +372,24 @@ namespace :migrate do a.save end + task :make_default_widget_work_config_for_web_link => :environment do + a = ModuleApp.where(:key=>'web_resource').first + a.widgets = { "default_widget"=>["typeA", "typeC", "typeB_style2", "typeB_style3", "typeB_style4"]} + a.widget_fields = [ + ["title","web_link.default_widget.title"], + ["web_link_with_title","web_link.default_widget.bulletin_category_with_title"] + ] + a.get_default_widget = {:query=>'WebLink.all'} + a.widget_fields_link_method = { + "title"=>{:method => 'panel_web_resource_front_end_web_link_path', + :args=>:self}, + "web_link_with_title"=>{ + :method => 'panel_web_resource_front_end_web_link_path', + :args=>{:category_id => [:web_link_category,:id]}} + } + a.save + end + task :reorder_items => :environment do reorder_children(Item.root) @@ -392,17 +412,32 @@ namespace :migrate do task :correct_gallery_and_web_resoure_config => :environment do a = ModuleApp.where(:key=>'web_resource').first - a.widgets = {} - a.widgets[:web_links] = [] - a.widgets[:home_list] = [] - a.save + if a + a.widgets = {} + a.widgets[:web_links] = [] + a.widgets[:home_list] = [] + a.app_pages = ["web_links"] + a.save + end a = ModuleApp.where(:key=>'gallery').first - a.widgets = {} - a.widgets[:widget1] = [] - a.widget_options_fields_i18n = {"widget1"=>{"vertical"=>"gallery.widget_option.vertical", "horizontal"=>"gallery.widget_option.horizontal", "album_id"=>"gallery.widget_option.album"}} - a.widget_options = {"widget1"=>{"vertical"=>[1, 2], "horizontal"=>[1, 2, 3, 4, 5, 6], "album_id"=>{"query"=>"GalleryAlbum.all", "value"=>:id, "label"=>:name}}} - a.save + if a + a.widgets = {} + a.widgets[:widget1] = [] + a.widget_options_fields_i18n = {"widget1"=>{"vertical"=>"gallery.widget_option.vertical", "horizontal"=>"gallery.widget_option.horizontal", "album_id"=>"gallery.widget_option.album"}} + a.widget_options = {"widget1"=>{"vertical"=>[1, 2], "horizontal"=>[1, 2, 3, 4, 5, 6], "album_id"=>{"query"=>"GalleryAlbum.all", "value"=>:id, "label"=>:name}}} + a.save + end + + end + + task :clean_module_app_objects => :environment do + ModuleApp.all.each do |ma| + %w{intro widget_fields_link_method widgets get_default_widget app_pages author enable_frontend get_widget_style get_widget_style organization update_info using_default_widget version widget_fields version create_date}.each do |field| + ma.unset field + end + ma.save + end end end diff --git a/log/sunspot-solr-development.log.1 b/log/sunspot-solr-development.log.1 deleted file mode 100644 index 76fd38c6..00000000 --- a/log/sunspot-solr-development.log.1 +++ /dev/null @@ -1,222 +0,0 @@ -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrResourceLoader locateSolrHome -INFO: JNDI not configured for solr (NoInitialContextEx) -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrResourceLoader locateSolrHome -INFO: using system property solr.solr.home: /home/nccu/stage/NCCU/solr -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrResourceLoader -INFO: Solr home set to '/home/nccu/stage/NCCU/solr/' -Sep 24, 2012 10:20:33 AM org.apache.solr.servlet.SolrDispatchFilter init -INFO: SolrDispatchFilter.init() -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrResourceLoader locateSolrHome -INFO: JNDI not configured for solr (NoInitialContextEx) -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrResourceLoader locateSolrHome -INFO: using system property solr.solr.home: /home/nccu/stage/NCCU/solr -Sep 24, 2012 10:20:33 AM org.apache.solr.core.CoreContainer$Initializer initialize -INFO: looking for solr.xml: /home/nccu/stage/NCCU/solr/solr.xml -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrResourceLoader -INFO: Solr home set to '/home/nccu/stage/NCCU/solr/' -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrConfig initLibs -INFO: Adding specified lib dirs to ClassLoader -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrConfig -INFO: Loaded SolrConfig: solrconfig.xml -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrCore -INFO: Opening new SolrCore at /home/nccu/stage/NCCU/solr/, dataDir=/home/nccu/stage/NCCU/solr/data/development/ -Sep 24, 2012 10:20:33 AM org.apache.solr.schema.IndexSchema readSchema -INFO: Reading Solr Schema -Sep 24, 2012 10:20:33 AM org.apache.solr.schema.IndexSchema readSchema -INFO: Schema name=sunspot -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created string: org.apache.solr.schema.StrField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created tdouble: org.apache.solr.schema.TrieDoubleField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created rand: org.apache.solr.schema.RandomSortField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created null: org.apache.solr.analysis.CJKTokenizerFactory -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created null: org.apache.solr.analysis.StandardFilterFactory -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created null: org.apache.solr.analysis.LowerCaseFilterFactory -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created text: org.apache.solr.schema.TextField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created boolean: org.apache.solr.schema.BoolField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created date: org.apache.solr.schema.DateField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created sdouble: org.apache.solr.schema.SortableDoubleField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created sfloat: org.apache.solr.schema.SortableFloatField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created sint: org.apache.solr.schema.SortableIntField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created slong: org.apache.solr.schema.SortableLongField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created tint: org.apache.solr.schema.TrieIntField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created tfloat: org.apache.solr.schema.TrieFloatField -Sep 24, 2012 10:20:33 AM org.apache.solr.util.plugin.AbstractPluginLoader load -INFO: created tdate: org.apache.solr.schema.TrieDateField -Sep 24, 2012 10:20:33 AM org.apache.solr.schema.IndexSchema readSchema -INFO: default search field is text -Sep 24, 2012 10:20:33 AM org.apache.solr.schema.IndexSchema readSchema -INFO: query parser default operator is AND -Sep 24, 2012 10:20:33 AM org.apache.solr.schema.IndexSchema readSchema -INFO: unique key field: id -Sep 24, 2012 10:20:33 AM org.apache.solr.core.JmxMonitoredMap -INFO: No JMX servers found, not exposing Solr information with JMX. -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrCore initListeners -INFO: Added SolrEventListener: org.apache.solr.core.QuerySenderListener{queries=[]} -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrCore initListeners -INFO: Added SolrEventListener: org.apache.solr.core.QuerySenderListener{queries=[{q=solr rocks,start=0,rows=10}, {q=static firstSearcher warming query from solrconfig.xml}]} -Sep 24, 2012 10:20:33 AM org.apache.solr.request.XSLTResponseWriter init -INFO: xsltCacheLifetimeSeconds=5 -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created standard: solr.SearchHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created dismax: solr.SearchHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created partitioned: solr.SearchHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /spell: solr.SearchHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created tvrh: org.apache.solr.handler.component.SearchHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: adding lazy requestHandler: org.apache.solr.handler.extraction.ExtractingRequestHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /update/extract: org.apache.solr.handler.extraction.ExtractingRequestHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /terms: org.apache.solr.handler.component.SearchHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: adding lazy requestHandler: solr.SearchHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /elevate: solr.SearchHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /update: solr.XmlUpdateRequestHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /update/javabin: solr.BinaryUpdateRequestHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /analysis/document: solr.DocumentAnalysisRequestHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /analysis/field: solr.FieldAnalysisRequestHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: adding lazy requestHandler: solr.CSVRequestHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /update/csv: solr.CSVRequestHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /admin/: org.apache.solr.handler.admin.AdminHandlers -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /admin/ping: PingRequestHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /debug/dump: solr.DumpRequestHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.core.RequestHandlers initHandlersFromConfig -INFO: created /mlt: solr.MoreLikeThisHandler -Sep 24, 2012 10:20:33 AM org.apache.solr.search.SolrIndexSearcher -INFO: Opening Searcher@6a510e39 main -Sep 24, 2012 10:20:33 AM org.apache.solr.update.DirectUpdateHandler2$CommitTracker -INFO: AutoCommit: disabled -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SpellCheckComponent inform -INFO: Initializing spell checkers -Sep 24, 2012 10:20:33 AM org.apache.solr.spelling.AbstractLuceneSpellChecker init -INFO: Using WhitespaceAnalzyer for dictionary: default -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SpellCheckComponent inform -WARNING: No queryConverter defined, using default converter -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.QueryElevationComponent inform -INFO: Loading QueryElevation from: /home/nccu/stage/NCCU/solr/conf/elevate.xml -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.QueryComponent@3cc70b0d -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.FacetComponent@2fa6a1a7 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.MoreLikeThisComponent@64bef361 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.HighlightComponent@345c98f3 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.StatsComponent@2b3d9460 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding debug component:org.apache.solr.handler.component.DebugComponent@57d840cd -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.QueryComponent@3cc70b0d -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.FacetComponent@2fa6a1a7 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.MoreLikeThisComponent@64bef361 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.HighlightComponent@345c98f3 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.StatsComponent@2b3d9460 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding debug component:org.apache.solr.handler.component.DebugComponent@57d840cd -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.QueryComponent@3cc70b0d -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.FacetComponent@2fa6a1a7 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.MoreLikeThisComponent@64bef361 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.HighlightComponent@345c98f3 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.StatsComponent@2b3d9460 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding debug component:org.apache.solr.handler.component.DebugComponent@57d840cd -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.QueryComponent@3cc70b0d -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.FacetComponent@2fa6a1a7 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.MoreLikeThisComponent@64bef361 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.HighlightComponent@345c98f3 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.StatsComponent@2b3d9460 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.SpellCheckComponent@36867fc9 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding debug component:org.apache.solr.handler.component.DebugComponent@57d840cd -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.QueryComponent@3cc70b0d -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.FacetComponent@2fa6a1a7 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.MoreLikeThisComponent@64bef361 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.HighlightComponent@345c98f3 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.StatsComponent@2b3d9460 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.TermVectorComponent@382f8116 -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding debug component:org.apache.solr.handler.component.DebugComponent@57d840cd -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SearchHandler inform -INFO: Adding component:org.apache.solr.handler.component.TermsComponent@36c3e82b -Sep 24, 2012 10:20:33 AM org.apache.solr.core.QuerySenderListener newSearcher -INFO: QuerySenderListener sending requests to Searcher@6a510e39 main -Sep 24, 2012 10:20:33 AM org.apache.solr.core.CoreContainer register -INFO: registering core: -Sep 24, 2012 10:20:33 AM org.apache.solr.servlet.SolrDispatchFilter init -INFO: user.dir=/home/nccu/.rvm/gems/ruby-1.9.2-p318@stage/gems/sunspot_solr-1.3.3/solr -Sep 24, 2012 10:20:33 AM org.apache.solr.servlet.SolrDispatchFilter init -INFO: SolrDispatchFilter.init() done -Sep 24, 2012 10:20:33 AM org.apache.solr.servlet.SolrServlet init -INFO: SolrServlet.init() -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrResourceLoader locateSolrHome -INFO: JNDI not configured for solr (NoInitialContextEx) -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrResourceLoader locateSolrHome -INFO: using system property solr.solr.home: /home/nccu/stage/NCCU/solr -Sep 24, 2012 10:20:33 AM org.apache.solr.servlet.SolrServlet init -INFO: SolrServlet.init() done -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrResourceLoader locateSolrHome -INFO: JNDI not configured for solr (NoInitialContextEx) -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrResourceLoader locateSolrHome -INFO: using system property solr.solr.home: /home/nccu/stage/NCCU/solr -Sep 24, 2012 10:20:33 AM org.apache.solr.servlet.SolrUpdateServlet init -INFO: SolrUpdateServlet.init() done -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrCore execute -INFO: [] webapp=null path=null params={start=0&event=firstSearcher&q=solr+rocks&rows=10} hits=0 status=0 QTime=46 -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrCore execute -INFO: [] webapp=null path=null params={event=firstSearcher&q=static+firstSearcher+warming+query+from+solrconfig.xml} hits=0 status=0 QTime=4 -Sep 24, 2012 10:20:33 AM org.apache.solr.core.QuerySenderListener newSearcher -INFO: QuerySenderListener done. -Sep 24, 2012 10:20:33 AM org.apache.solr.handler.component.SpellCheckComponent$SpellCheckerListener newSearcher -INFO: Loading spell index for spellchecker: default -Sep 24, 2012 10:20:33 AM org.apache.solr.core.SolrCore registerSearcher -INFO: [] Registered new searcher Searcher@6a510e39 main diff --git a/route b/route new file mode 100644 index 00000000..36cad50c --- /dev/null +++ b/route @@ -0,0 +1,1038 @@ + users_passwd PUT /users_passwd(.:format) desktop/registrations#update + new_user_session GET /users/sign_in(.:format) devise/sessions#new + user_session POST /users/sign_in(.:format) devise/sessions#create + destroy_user_session GET /users/sign_out(.:format) devise/sessions#destroy + user_password POST /users/password(.:format) devise/passwords#create + new_user_password GET /users/password/new(.:format) devise/passwords#new + edit_user_password GET /users/password/edit(.:format) devise/passwords#edit + PUT /users/password(.:format) devise/passwords#update + cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel + user_registration POST /users(.:format) devise/registrations#create + new_user_registration GET /users/sign_up(.:format) devise/registrations#new + edit_user_registration GET /users/edit(.:format) devise/registrations#edit + PUT /users(.:format) devise/registrations#update + DELETE /users(.:format) devise/registrations#destroy + resque_server /admin/resque Resque::Server + site_set_registered /site/set_registered(.:format) CentralServerExchangeApp + site_public_key /site/public_key(.:format) CentralServerExchangeApp + site_update /site/update(.:format) GithubApp + /purchase/:type(.:format) CentralServerExchangeApp + load_orbit_bar /load_orbit_bar(.:format) pages#load_orbit_bar + /admin/resque #>, @realm=nil, @authenticator=#>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :html_types=>["text/html", "application/xhtml"], :xss_mode=>:block, :nosniff=>true, :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :html_types=>["text/html", "application/xhtml"], :xss_mode=>:block, :nosniff=>true, :frame_options=>:sameorigin, :except=>[:session_hijacking, :remote_token]}>>>, @template=#\\n\\n\\n \\n \"\n\n\n\n; _erbout.concat((h exception.class ).to_s); _erbout.concat \" at \"; _erbout.concat((h path ).to_s); _erbout.concat \"\\n\\n \\n\\n\\n\\n\\n
\\n
\\n \\\"application\\n
\\n

\"\n\n; _erbout.concat((h exception.class ).to_s); _erbout.concat \" at \"; _erbout.concat((h path ).to_s); _erbout.concat \"\\n

\\n

\"\n\n; _erbout.concat((h exception.message ).to_s); _erbout.concat \"

\\n
    \\n
  • file: \\n \"\n\n\n; _erbout.concat((h frames.first.filename.split(\"/\").last ).to_s); _erbout.concat \"
  • \\n
  • location: \"\n; _erbout.concat((h frames.first.function ).to_s); _erbout.concat \"\\n
  • \\n
  • line:\\n \"\n\n\n; _erbout.concat((h frames.first.lineno ).to_s); _erbout.concat \"
  • \\n
\\n
\\n
\\n
\\n\\n
\\n

BACKTRACE

\\n

(expand)

\\n

JUMP TO:\\n GET\\n POST\\n COOKIES\\n ENV\\n

\\n
\\n\\n
    \\n\\n \"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n; id = 1 ; _erbout.concat \"\\n \"\n; frames.each do |frame| ; _erbout.concat \"\\n \"\n; if frame.context_line && frame.context_line != \"#\" ; _erbout.concat \"\\n\\n
  • \\n \"\n; _erbout.concat((h frame.filename ).to_s); _erbout.concat \" in\\n \"\n; _erbout.concat((h frame.function ).to_s); _erbout.concat \"\\n
  • \\n\\n
  • \\n \"\n; if frame.pre_context ; _erbout.concat \"\\n
      \\n \"\n; frame.pre_context.each do |line| ; _erbout.concat \"\\n
    1. \"\n; _erbout.concat((h line ).to_s); _erbout.concat \"
    2. \\n \"\n; end ; _erbout.concat \"\\n
    \\n \"\n\n; end ; _erbout.concat \"\\n\\n
      \\n
    1. \"; _erbout.concat((\n h frame.context_line ).to_s); _erbout.concat \"
    2. \\n
    \\n\\n \"\n\n\n; if frame.post_context ; _erbout.concat \"\\n
      \\n \"\n; frame.post_context.each do |line| ; _erbout.concat \"\\n
    1. \"\n; _erbout.concat((h line ).to_s); _erbout.concat \"
    2. \\n \"\n; end ; _erbout.concat \"\\n
    \\n \"\n\n; end ; _erbout.concat \"\\n
    \\n
  • \\n\\n \"\n\n\n\n; end ; _erbout.concat \"\\n\\n \"\n\n; id += 1 ; _erbout.concat \"\\n \"\n; end ; _erbout.concat \"\\n\\n
\\n
\\n\\n
\\n

GET

\\n \"\n\n\n\n\n\n\n; if req.GET and not req.GET.empty? ; _erbout.concat \"\\n \\n \\n \\n \\n \\n \"\n\n\n\n\n\n; req.GET.sort_by { |k, v| k.to_s }.each { |key, val| ; _erbout.concat \"\\n \\n \\n \\n \\n \"\n\n; } ; _erbout.concat \"\\n
VariableValue
\"\n\n; _erbout.concat((h key ).to_s); _erbout.concat \"
\"\n; _erbout.concat((h val.inspect ).to_s); _erbout.concat \"
\\n \"\n\n; else ; _erbout.concat \"\\n

No GET data.

\\n \"\n\n; end ; _erbout.concat \"\\n
\\n
\\n\\n
\\n

POST

\\n \"\n\n\n\n\n\n; if req.POST and not req.POST.empty? ; _erbout.concat \"\\n \\n \\n \\n \\n \\n \"\n\n\n\n\n\n; req.POST.sort_by { |k, v| k.to_s }.each { |key, val| ; _erbout.concat \"\\n \\n \\n \\n \\n \"\n\n; } ; _erbout.concat \"\\n
VariableValue
\"\n\n; _erbout.concat((h key ).to_s); _erbout.concat \"
\"\n; _erbout.concat((h val.inspect ).to_s); _erbout.concat \"
\\n \"\n\n; else ; _erbout.concat \"\\n

No POST data.

\\n \"\n\n; end ; _erbout.concat \"\\n
\\n
\\n\\n
\\n

COOKIES

\\n \"\n\n\n\n\n\n; unless req.cookies.empty? ; _erbout.concat \"\\n \\n \\n \\n \\n \\n \"\n\n\n\n\n\n; req.cookies.each { |key, val| ; _erbout.concat \"\\n \\n \\n \\n \\n \"\n\n; } ; _erbout.concat \"\\n
VariableValue
\"\n\n; _erbout.concat((h key ).to_s); _erbout.concat \"
\"\n; _erbout.concat((h val.inspect ).to_s); _erbout.concat \"
\\n \"\n\n; else ; _erbout.concat \"\\n

No cookie data.

\\n \"\n\n; end ; _erbout.concat \"\\n
\\n
\\n\\n
\\n

Rack ENV

\\n \\n \\n \\n \\n \\n \"\n\n\n\n\n\n\n\n\n\n\n; env.sort_by { |k, v| k.to_s }.each { |key, val| ; _erbout.concat \"\\n \\n \\n \\n \\n \"\n\n; } ; _erbout.concat \"\\n
VariableValue
\"\n\n; _erbout.concat((h key ).to_s); _erbout.concat \"
\"\n; _erbout.concat((h val ).to_s); _erbout.concat \"
\\n
\\n
\\n\\n

You're seeing this error because you have\\nenabled the show_exceptions setting.

\\n
\\n \\n\\n\"\n\n\n\n\n\n\n\n\n\n; _erbout.force_encoding(__ENCODING__)", @enc=#, @filename=nil>>> + file_upload_admin_assets GET /admin/assets/file_upload(.:format) admin/assets#file_upload + delete_admin_assets GET /admin/assets/delete(.:format) admin/assets#delete + admin_assets GET /admin/assets(.:format) admin/assets#index + POST /admin/assets(.:format) admin/assets#create + new_admin_asset GET /admin/assets/new(.:format) admin/assets#new + edit_admin_asset GET /admin/assets/:id/edit(.:format) admin/assets#edit + admin_asset GET /admin/assets/:id(.:format) admin/assets#show + PUT /admin/assets/:id(.:format) admin/assets#update + DELETE /admin/assets/:id(.:format) admin/assets#destroy + admin_asset_categories GET /admin/asset_categories(.:format) admin/asset_categories#index + POST /admin/asset_categories(.:format) admin/asset_categories#create + new_admin_asset_category GET /admin/asset_categories/new(.:format) admin/asset_categories#new + edit_admin_asset_category GET /admin/asset_categories/:id/edit(.:format) admin/asset_categories#edit + admin_asset_category GET /admin/asset_categories/:id(.:format) admin/asset_categories#show + PUT /admin/asset_categories/:id(.:format) admin/asset_categories#update + DELETE /admin/asset_categories/:id(.:format) admin/asset_categories#destroy + admin_asset_tags GET /admin/asset_tags(.:format) admin/asset_tags#index + POST /admin/asset_tags(.:format) admin/asset_tags#create + new_admin_asset_tag GET /admin/asset_tags/new(.:format) admin/asset_tags#new + edit_admin_asset_tag GET /admin/asset_tags/:id/edit(.:format) admin/asset_tags#edit + admin_asset_tag GET /admin/asset_tags/:id(.:format) admin/asset_tags#show + PUT /admin/asset_tags/:id(.:format) admin/asset_tags#update + DELETE /admin/asset_tags/:id(.:format) admin/asset_tags#destroy + admin_app_auths GET /admin/app_auths(.:format) admin/app_auths#index + POST /admin/app_auths(.:format) admin/app_auths#create + new_admin_app_auth GET /admin/app_auths/new(.:format) admin/app_auths#new + edit_admin_app_auth GET /admin/app_auths/:id/edit(.:format) admin/app_auths#edit + admin_app_auth GET /admin/app_auths/:id(.:format) admin/app_auths#show + PUT /admin/app_auths/:id(.:format) admin/app_auths#update + DELETE /admin/app_auths/:id(.:format) admin/app_auths#destroy + admin_object_auth_init_ob_auth GET /admin/object_auths/:object_auth_id/new_interface/:ob_type/:title/new(.:format) admin/object_auths_new_interface#new + admin_object_auth_ob_auth GET /admin/object_auths/:object_auth_id/new_interface(.:format) admin/object_auths_new_interface#setting + admin_object_auth_ob_auth POST /admin/object_auths/:object_auth_id/new_interface(.:format) admin/object_auths_new_interface#update_setting + admin_object_auth_ob_auth_show PUT /admin/object_auths/:object_auth_id/new_interface(.:format) admin/object_auths_new_interface#user_list + init_admin_object_auths GET /admin/object_auths/new/:type/:obj_id(.:format) admin/object_auths#new + create_role_admin_object_auth POST /admin/object_auths/:id/:id/create_role(.:format) admin/object_auths#create_role + remove_admin_object_auth DELETE /admin/object_auths/:id/remove/:type/:target_id(.:format) admin/object_auths#remove_role + admin_object_auths GET /admin/object_auths(.:format) admin/object_auths#index + POST /admin/object_auths(.:format) admin/object_auths#create + new_admin_object_auth GET /admin/object_auths/new(.:format) admin/object_auths#new + edit_admin_object_auth GET /admin/object_auths/:id/edit(.:format) admin/object_auths#edit + admin_object_auth GET /admin/object_auths/:id(.:format) admin/object_auths#show + PUT /admin/object_auths/:id(.:format) admin/object_auths#update + DELETE /admin/object_auths/:id(.:format) admin/object_auths#destroy + admin_realtime_preview_ad_banner PUT /admin/ad_banners/:id/preview(.:format) admin/ad_banners#realtime_preview + admin_rename_ad_banner POST /admin/ad_banners/:id/rename(.:format) admin/ad_banners#rename + new_ad_image_admin_ad_banners GET /admin/ad_banners/new_ad_image(.:format) admin/ad_images#new + create_ad_image_admin_ad_banners POST /admin/ad_banners/new_ad_image(.:format) admin/ad_images#create + admin_ad_banner_ad_images POST /admin/ad_banners/:ad_banner_id/ad_images(.:format) admin/ad_images#create + new_admin_ad_banner_ad_image GET /admin/ad_banners/:ad_banner_id/ad_images/new(.:format) admin/ad_images#new + edit_admin_ad_banner_ad_image GET /admin/ad_banners/:ad_banner_id/ad_images/:id/edit(.:format) admin/ad_images#edit + admin_ad_banner_ad_image PUT /admin/ad_banners/:ad_banner_id/ad_images/:id(.:format) admin/ad_images#update + DELETE /admin/ad_banners/:ad_banner_id/ad_images/:id(.:format) admin/ad_images#destroy + admin_ad_banners GET /admin/ad_banners(.:format) admin/ad_banners#index + POST /admin/ad_banners(.:format) admin/ad_banners#create + new_admin_ad_banner GET /admin/ad_banners/new(.:format) admin/ad_banners#new + edit_admin_ad_banner GET /admin/ad_banners/:id/edit(.:format) admin/ad_banners#edit + admin_ad_banner GET /admin/ad_banners/:id(.:format) admin/ad_banners#show + PUT /admin/ad_banners/:id(.:format) admin/ad_banners#update + DELETE /admin/ad_banners/:id(.:format) admin/ad_banners#destroy + admin_dashboards GET /admin/dashboards(.:format) admin/dashboards#index + POST /admin/dashboards(.:format) admin/dashboards#create + new_admin_dashboard GET /admin/dashboards/new(.:format) admin/dashboards#new + edit_admin_dashboard GET /admin/dashboards/:id/edit(.:format) admin/dashboards#edit + admin_dashboard GET /admin/dashboards/:id(.:format) admin/dashboards#show + PUT /admin/dashboards/:id(.:format) admin/dashboards#update + DELETE /admin/dashboards/:id(.:format) admin/dashboards#destroy + upload_package_admin_designs GET /admin/designs/upload_package(.:format) admin/designs#upload_package + delete_admin_designs GET /admin/designs/delete(.:format) admin/designs#delete + POST /admin/designs/upload_package(.:format) admin/designs#upload_package + edit_file_admin_design POST /admin/designs/:id/edit_file(.:format) admin/designs#edit_file + update_file_admin_design POST /admin/designs/:id/update_file(.:format) admin/designs#update_file + upload_image_admin_design POST /admin/designs/:id/upload_image(.:format) admin/designs#upload_image + admin_designs GET /admin/designs(.:format) admin/designs#index + POST /admin/designs(.:format) admin/designs#create + new_admin_design GET /admin/designs/new(.:format) admin/designs#new + edit_admin_design GET /admin/designs/:id/edit(.:format) admin/designs#edit + admin_design GET /admin/designs/:id(.:format) admin/designs#show + PUT /admin/designs/:id(.:format) admin/designs#update + DELETE /admin/designs/:id(.:format) admin/designs#destroy + admin_info_add_attribute_field GET /admin/infos/:info_id/add_attribute_field(.:format) admin/infos#add_attribute_field + admin_infos GET /admin/infos(.:format) admin/infos#index + POST /admin/infos(.:format) admin/infos#create + new_admin_info GET /admin/infos/new(.:format) admin/infos#new + edit_admin_info GET /admin/infos/:id/edit(.:format) admin/infos#edit + admin_info GET /admin/infos/:id(.:format) admin/infos#show + PUT /admin/infos/:id(.:format) admin/infos#update + DELETE /admin/infos/:id(.:format) admin/infos#destroy + admin_items GET /admin/items(.:format) admin/items#index + POST /admin/items(.:format) admin/items#create + new_admin_item GET /admin/items/new(.:format) admin/items#new + edit_admin_item GET /admin/items/:id/edit(.:format) admin/items#edit + admin_item GET /admin/items/:id(.:format) admin/items#show + PUT /admin/items/:id(.:format) admin/items#update + DELETE /admin/items/:id(.:format) admin/items#destroy + admin_update_position /admin/update_position(.:format) admin/items#update_position + delete_admin_link GET /admin/links/:id/delete(.:format) admin/links#delete + admin_links GET /admin/links(.:format) admin/links#index + POST /admin/links(.:format) admin/links#create + new_admin_link GET /admin/links/new(.:format) admin/links#new + edit_admin_link GET /admin/links/:id/edit(.:format) admin/links#edit + admin_link GET /admin/links/:id(.:format) admin/links#show + PUT /admin/links/:id(.:format) admin/links#update + DELETE /admin/links/:id(.:format) admin/links#destroy + delete_admin_page GET /admin/pages/:id/delete(.:format) admin/pages#delete + reload_themes_admin_page GET /admin/pages/:id/reload_themes(.:format) admin/pages#reload_themes + admin_pages GET /admin/pages(.:format) admin/pages#index + POST /admin/pages(.:format) admin/pages#create + new_admin_page GET /admin/pages/new(.:format) admin/pages#new + edit_admin_page GET /admin/pages/:id/edit(.:format) admin/pages#edit + admin_page GET /admin/pages/:id(.:format) admin/pages#show + PUT /admin/pages/:id(.:format) admin/pages#update + DELETE /admin/pages/:id(.:format) admin/pages#destroy + admin_module_app_manager_auth_proc GET /admin/module_apps/:module_app_id/manager_auth_proc(.:format) admin/module_apps_new_interface#setting + admin_module_app_manager_auth_proc POST /admin/module_apps/:module_app_id/manager_auth_proc(.:format) admin/module_apps_new_interface#update_setting + admin_module_app_manager_auth_show PUT /admin/module_apps/:module_app_id/manager_auth_proc(.:format) admin/module_apps_new_interface#user_list + remove_admin_module_app_app_auth DELETE /admin/module_apps/:module_app_id/app_auths/:id/remove/:type/:target_id(.:format) admin/app_auths#remove + admin_module_app_app_auths GET /admin/module_apps/:module_app_id/app_auths(.:format) admin/app_auths#index + POST /admin/module_apps/:module_app_id/app_auths(.:format) admin/app_auths#create + new_admin_module_app_app_auth GET /admin/module_apps/:module_app_id/app_auths/new(.:format) admin/app_auths#new + edit_admin_module_app_app_auth GET /admin/module_apps/:module_app_id/app_auths/:id/edit(.:format) admin/app_auths#edit + admin_module_app_app_auth GET /admin/module_apps/:module_app_id/app_auths/:id(.:format) admin/app_auths#show + PUT /admin/module_apps/:module_app_id/app_auths/:id(.:format) admin/app_auths#update + DELETE /admin/module_apps/:module_app_id/app_auths/:id(.:format) admin/app_auths#destroy + assign_manager_admin_module_app POST /admin/module_apps/:id/assign_manager(.:format) admin/module_apps#assign_manager + assign_sub_manager_admin_module_app POST /admin/module_apps/:id/assign_sub_manager(.:format) admin/module_apps#assign_sub_manager + remove_manager_admin_module_app DELETE /admin/module_apps/:id/remove_manager/:app_manager_id(.:format) admin/module_apps#remove_manager + remove_sub_manager_admin_module_app DELETE /admin/module_apps/:id/remove_sub_manager/:app_sub_manager_id(.:format) admin/module_apps#remove_sub_manager + reload_frontend_pages_admin_module_app GET /admin/module_apps/:id/reload_frontend_pages(.:format) admin/module_apps#reload_frontend_pages + admin_module_apps GET /admin/module_apps(.:format) admin/module_apps#index + POST /admin/module_apps(.:format) admin/module_apps#create + new_admin_module_app GET /admin/module_apps/new(.:format) admin/module_apps#new + edit_admin_module_app GET /admin/module_apps/:id/edit(.:format) admin/module_apps#edit + admin_module_app GET /admin/module_apps/:id(.:format) admin/module_apps#show + PUT /admin/module_apps/:id(.:format) admin/module_apps#update + DELETE /admin/module_apps/:id(.:format) admin/module_apps#destroy + reload_widgets_admin_page_part GET /admin/page_parts/:id/reload_widgets(.:format) admin/page_parts#reload_widgets + reload_widget_styles_admin_page_part GET /admin/page_parts/:id/reload_widget_styles(.:format) admin/page_parts#reload_widget_styles + reload_r_tag_options_admin_page_part GET /admin/page_parts/:id/reload_r_tag_options(.:format) admin/page_parts#reload_r_tag_options + admin_page_parts GET /admin/page_parts(.:format) admin/page_parts#index + POST /admin/page_parts(.:format) admin/page_parts#create + new_admin_page_part GET /admin/page_parts/new(.:format) admin/page_parts#new + edit_admin_page_part GET /admin/page_parts/:id/edit(.:format) admin/page_parts#edit + admin_page_part GET /admin/page_parts/:id(.:format) admin/page_parts#show + PUT /admin/page_parts/:id(.:format) admin/page_parts#update + DELETE /admin/page_parts/:id(.:format) admin/page_parts#destroy + admin_plugins GET /admin/plugins(.:format) admin/plugins#index + POST /admin/plugins(.:format) admin/plugins#create + new_admin_plugin GET /admin/plugins/new(.:format) admin/plugins#new + edit_admin_plugin GET /admin/plugins/:id/edit(.:format) admin/plugins#edit + admin_plugin GET /admin/plugins/:id(.:format) admin/plugins#show + PUT /admin/plugins/:id(.:format) admin/plugins#update + DELETE /admin/plugins/:id(.:format) admin/plugins#destroy + install_app_admin_purchases GET /admin/purchases/install_app(.:format) admin/purchases#install_app + buy_template_admin_purchase GET /admin/purchases/:id/buy_template(.:format) admin/purchases#buy_template + download_admin_purchase GET /admin/purchases/:id/download(.:format) admin/purchases#download + admin_purchases GET /admin/purchases(.:format) admin/purchases#index + POST /admin/purchases(.:format) admin/purchases#create + new_admin_purchase GET /admin/purchases/new(.:format) admin/purchases#new + edit_admin_purchase GET /admin/purchases/:id/edit(.:format) admin/purchases#edit + admin_purchase GET /admin/purchases/:id(.:format) admin/purchases#show + PUT /admin/purchases/:id(.:format) admin/purchases#update + DELETE /admin/purchases/:id(.:format) admin/purchases#destroy + admin_role_role_field GET /admin/roles/:role_id/role_field(.:format) admin/roles#role_field + admin_role_sub_role_field GET /admin/roles/:role_id/sub_role_field(.:format) admin/roles#sub_role_field + admin_role_sub_role GET /admin/roles/:role_id/sub_role(.:format) admin/roles#sub_role + admin_role_add_sub_role GET /admin/roles/:role_id/add_sub_role(.:format) admin/roles#add_sub_role + admin_role_edit_sub_role GET /admin/roles/:role_id/edit_sub_role(.:format) admin/roles#edit_sub_role + admin_role_add_attribute_field GET /admin/roles/:role_id/add_attribute_field(.:format) admin/roles#add_attribute_field + admin_roles GET /admin/roles(.:format) admin/roles#index + POST /admin/roles(.:format) admin/roles#create + new_admin_role GET /admin/roles/new(.:format) admin/roles#new + edit_admin_role GET /admin/roles/:id/edit(.:format) admin/roles#edit + admin_role GET /admin/roles/:id(.:format) admin/roles#show + PUT /admin/roles/:id(.:format) admin/roles#update + DELETE /admin/roles/:id(.:format) admin/roles#destroy + admin_site_mail_setting GET /admin/sites/:site_id/mail_setting(.:format) admin/sites#mail_setting + admin_site_site_info GET /admin/sites/:site_id/site_info(.:format) admin/sites#site_info + admin_site_sitemap GET /admin/sites/:site_id/sitemap(.:format) admin/sites#sitemap + admin_site_sitemap_frontend GET /admin/sites/:site_id/sitemap_frontend(.:format) admin/sites#sitemap_frontend + sitemap_toggle_admin_site GET /admin/sites/:id/sitemap_toggle(.:format) admin/sites#sitemap_toggle + admin_site_system_info GET /admin/sites/:site_id/system_info(.:format) admin/sites#system_info + admin_site_ui_theme GET /admin/sites/:site_id/ui_theme(.:format) admin/sites#ui_theme + admin_site_change_design GET /admin/sites/:site_id/change_design(.:format) admin/sites#change_design + admin_sites GET /admin/sites(.:format) admin/sites#index + POST /admin/sites(.:format) admin/sites#create + new_admin_site GET /admin/sites/new(.:format) admin/sites#new + edit_admin_site GET /admin/sites/:id/edit(.:format) admin/sites#edit + admin_site GET /admin/sites/:id(.:format) admin/sites#show + PUT /admin/sites/:id(.:format) admin/sites#update + DELETE /admin/sites/:id(.:format) admin/sites#destroy + admin_tags GET /admin/tags(.:format) admin/tags#index + POST /admin/tags(.:format) admin/tags#create + new_admin_tag GET /admin/tags/new(.:format) admin/tags#new + edit_admin_tag GET /admin/tags/:id/edit(.:format) admin/tags#edit + admin_tag GET /admin/tags/:id(.:format) admin/tags#show + PUT /admin/tags/:id(.:format) admin/tags#update + DELETE /admin/tags/:id(.:format) admin/tags#destroy + admin_users GET /admin/users(.:format) admin/users#index + POST /admin/users(.:format) admin/users#create + new_admin_user GET /admin/users/new(.:format) admin/users#new + edit_admin_user GET /admin/users/:id/edit(.:format) admin/users#edit + admin_user GET /admin/users/:id(.:format) admin/users#show + PUT /admin/users/:id(.:format) admin/users#update + DELETE /admin/users/:id(.:format) admin/users#destroy + temp_edit_admin_users_new_interface GET /admin/users_new_interface/:id/temp_edit(.:format) admin/users_new_interface#temp_edit + admin_users_new_interface_index GET /admin/users_new_interface(.:format) admin/users_new_interface#index + POST /admin/users_new_interface(.:format) admin/users_new_interface#create + new_admin_users_new_interface GET /admin/users_new_interface/new(.:format) admin/users_new_interface#new + edit_admin_users_new_interface GET /admin/users_new_interface/:id/edit(.:format) admin/users_new_interface#edit + admin_users_new_interface GET /admin/users_new_interface/:id(.:format) admin/users_new_interface#show + PUT /admin/users_new_interface/:id(.:format) admin/users_new_interface#update + DELETE /admin/users_new_interface/:id(.:format) admin/users_new_interface#destroy + admin_member_select_member_select_search POST /admin/member_selects/:member_select_id/member_select_search(.:format) admin/member_selects#member_select_search + admin_member_select_member_select_add POST /admin/member_selects/:member_select_id/member_select_add(.:format) admin/member_selects#member_select_add + admin_member_selects GET /admin/member_selects(.:format) admin/member_selects#index + POST /admin/member_selects(.:format) admin/member_selects#create + new_admin_member_select GET /admin/member_selects/new(.:format) admin/member_selects#new + edit_admin_member_select GET /admin/member_selects/:id/edit(.:format) admin/member_selects#edit + admin_member_select GET /admin/member_selects/:id(.:format) admin/member_selects#show + PUT /admin/member_selects/:id(.:format) admin/member_selects#update + DELETE /admin/member_selects/:id(.:format) admin/member_selects#destroy + admin_module_store /admin/module_store(.:format) admin/module_store#index + admin_module_store_show /admin/module_store/show(.:format) admin/module_store#show + admin_template_store /admin/template_store(.:format) admin/template_store#index + admin_template_store_template /admin/template_store/template/:id(.:format) admin/template_store#show + panel_users GET /panel/users(.:format) panel/users#index + POST /panel/users(.:format) panel/users#create + new_panel_user GET /panel/users/new(.:format) panel/users#new + edit_panel_user GET /panel/users/:id/edit(.:format) panel/users#edit + panel_user GET /panel/users/:id(.:format) panel/users#show + PUT /panel/users/:id(.:format) panel/users#update + DELETE /panel/users/:id(.:format) panel/users#destroy + upload_desktop_widgets GET /desktop_widgets/upload(.:format) desktop_widgets#upload + delete_desktop_widgets GET /desktop_widgets/delete(.:format) desktop_widgets#delete + POST /desktop_widgets/upload(.:format) desktop_widgets#upload + desktop_widgets GET /desktop_widgets(.:format) desktop_widgets#index + POST /desktop_widgets(.:format) desktop_widgets#create + new_desktop_widget GET /desktop_widgets/new(.:format) desktop_widgets#new + edit_desktop_widget GET /desktop_widgets/:id/edit(.:format) desktop_widgets#edit + desktop_widget GET /desktop_widgets/:id(.:format) desktop_widgets#show + PUT /desktop_widgets/:id(.:format) desktop_widgets#update + DELETE /desktop_widgets/:id(.:format) desktop_widgets#destroy + desktop /desktop(.:format) desktop#index + desktop_desktop /desktop/desktop(.:format) desktop#desktop + /desktop/desktop(.:format) desktop#desktop + desktop_app_manager /desktop/app_manager(.:format) desktop#app_manager + desktop_allsections /desktop/allsections(.:format) desktop#allsections + desktop_settings /desktop/settings(.:format) desktop#settings + desktop_get_desktop_settings /desktop/get_desktop_settings(.:format) desktop#get_desktop_settings + desktop_save_desktop_settings /desktop/save_desktop_settings(.:format) desktop#save_desktop_settings + desktop_getgroups /desktop/getgroups(.:format) desktop#getgroups + desktop_getsectionlist /desktop/getsectionlist(.:format) desktop#getsectionlist + desktop_themes /desktop/themes(.:format) desktop#themes + desktop_sections /desktop/sections(.:format) desktop#sections + desktop_getapplist /desktop/getapplist(.:format) desktop#getapplist + desktop_newpositions /desktop/newpositions(.:format) desktop#newpositions + desktop_connections /desktop/connections(.:format) desktop#connections + desktop_widget_layout /desktop/widget_layout(.:format) desktop#widget_layout + desktop_temp_func /desktop/temp_func(.:format) desktop#temp_func + desktop_publications_books /desktop_publications/books(.:format) desktop_publications#books + desktop_publications_books_list /desktop_publications/books_list(.:format) desktop_publications#books_list + desktop_publications_books_add /desktop_publications/books_add(.:format) desktop_publications#books_add + desktop_publications_conference_p /desktop_publications/conference_p(.:format) desktop_publications#conference_p + desktop_publications_conference_p_list /desktop_publications/conference_p_list(.:format) desktop_publications#conference_p_list + desktop_publications_conference_p_add /desktop_publications/conference_p_add(.:format) desktop_publications#conference_p_add + desktop_research_research_d /desktop_research/research_d(.:format) desktop_research#research_d + desktop_research_research_d_list /desktop_research/research_d_list(.:format) desktop_research#research_d_list + desktop_research_research_d_add /desktop_research/research_d_add(.:format) desktop_research#research_d_add + desktop_research_research_p /desktop_research/research_p(.:format) desktop_research#research_p + desktop_research_research_p_list /desktop_research/research_p_list(.:format) desktop_research#research_p_list + desktop_research_research_p_add /desktop_research/research_p_add(.:format) desktop_research#research_p_add + twitter /twitter(.:format) otheraccounts#twitter + forgmail /forgmail(.:format) otheraccounts#gmail + otheraccounts_getaccounts /otheraccounts/getaccounts(.:format) otheraccounts#getaccounts + save_account_info /save_account_info(.:format) otheraccounts#saveaccountinfo + desktop_appstore_appstore /desktop_appstore/appstore(.:format) desktop_appstore#appstore + desktop_appstore_onlinestore /desktop_appstore/onlinestore(.:format) desktop_appstore#onlinestore + desktop_appstore_widgets /desktop_appstore/widgets(.:format) desktop_appstore#widgets + desktop_appstore_getuserwidgets /desktop_appstore/getuserwidgets(.:format) desktop_appstore#getuserwidgets + desktop_appstore_widgets_settings /desktop_appstore/widgets_settings(.:format) desktop_appstore#widgets_settings + desktop_orbit_orbit /desktop_orbit/orbit(.:format) desktop_orbit#orbit + desktop_orbit_eventajaxload /desktop_orbit/eventajaxload(.:format) desktop_orbit#eventajaxload + desktop_orbit_gettimelinespan /desktop_orbit/gettimelinespan(.:format) desktop_orbit#gettimelinespan + front_show_banner /front/show_banner(/:id)(.:format) front#show_banner + front_show_footer /front/show_footer(/:id)(.:format) front#show_footer + front_show_menu /front/show_menu(/:id)(.:format) front#show_menu + front_show_page_sub_menu /front/show_page_sub_menu(/:id)(.:format) front#show_page_sub_menu + front_show_site_sub_menu /front/show_site_sub_menu(/:id)(.:format) front#show_site_sub_menu + front_show_sitemap /front/show_sitemap(/:id)(.:format) front#show_sitemap + mobile_announcement /mobile(/:app)/announcement(.:format) mobile#announcement + mobile_announcement_content /mobile(/:app)/announcement_content/:id(.:format) mobile#announcement_content + mobile_dialog_contact /mobile(/:app)/dialog_contact(.:format) mobile#dialog_contact + mobile_dialog_copyright /mobile(/:app)/dialog_copyright(.:format) mobile#dialog_copyright + mobile_dialog_language /mobile(/:app)/dialog_language(.:format) mobile#dialog_language + mobile_map /mobile(/:app)/map(.:format) mobile#map + mobile_page /mobile(/:app)/page(.:format) mobile#page + mobile_page_content /mobile(/:app)/page_content/:id(.:format) mobile#page_content + mobile /mobile(/:app)(.:format) mobile#index + /panel/orbit_app/widget/:type(.:format) default_widget#default_widget + /panel/:app_name/front_end/:app_action/:id(/:controller_action)(.:format) pages#show_from_link + /panel/:app_name/front_end/:app_action(.:format) pages#index_from_link + /share/:model/:id(.:format) application#render_share + /gridfs/*path(.:format) gridfs#serve + page /*page_name(.:format) pages#show + root / pages#index + front_show_inner_ad_image /panel/ad_banner/front_end/inner_page/:id(.:format) front#show_inner_ad_image + panel_web_resource_back_end_root /panel/web_resource/back_end(.:format) panel/web_resource/back_end/web_links#index + delete_panel_web_resource_back_end_web_links GET /panel/web_resource/back_end/web_links/delete(.:format) panel/web_resource/back_end/web_links#delete + panel_web_resource_back_end_web_links GET /panel/web_resource/back_end/web_links(.:format) panel/web_resource/back_end/web_links#index + POST /panel/web_resource/back_end/web_links(.:format) panel/web_resource/back_end/web_links#create + new_panel_web_resource_back_end_web_link GET /panel/web_resource/back_end/web_links/new(.:format) panel/web_resource/back_end/web_links#new + edit_panel_web_resource_back_end_web_link GET /panel/web_resource/back_end/web_links/:id/edit(.:format) panel/web_resource/back_end/web_links#edit + panel_web_resource_back_end_web_link GET /panel/web_resource/back_end/web_links/:id(.:format) panel/web_resource/back_end/web_links#show + PUT /panel/web_resource/back_end/web_links/:id(.:format) panel/web_resource/back_end/web_links#update + DELETE /panel/web_resource/back_end/web_links/:id(.:format) panel/web_resource/back_end/web_links#destroy + panel_web_resource_back_end_web_link_categorys GET /panel/web_resource/back_end/web_link_categorys(.:format) panel/web_resource/back_end/web_link_categorys#index + POST /panel/web_resource/back_end/web_link_categorys(.:format) panel/web_resource/back_end/web_link_categorys#create + new_panel_web_resource_back_end_web_link_category GET /panel/web_resource/back_end/web_link_categorys/new(.:format) panel/web_resource/back_end/web_link_categorys#new + edit_panel_web_resource_back_end_web_link_category GET /panel/web_resource/back_end/web_link_categorys/:id/edit(.:format) panel/web_resource/back_end/web_link_categorys#edit + panel_web_resource_back_end_web_link_category GET /panel/web_resource/back_end/web_link_categorys/:id(.:format) panel/web_resource/back_end/web_link_categorys#show + PUT /panel/web_resource/back_end/web_link_categorys/:id(.:format) panel/web_resource/back_end/web_link_categorys#update + DELETE /panel/web_resource/back_end/web_link_categorys/:id(.:format) panel/web_resource/back_end/web_link_categorys#destroy + panel_web_resource_back_end_tags GET /panel/web_resource/back_end/tags(.:format) panel/web_resource/back_end/tags#index + POST /panel/web_resource/back_end/tags(.:format) panel/web_resource/back_end/tags#create + new_panel_web_resource_back_end_tag GET /panel/web_resource/back_end/tags/new(.:format) panel/web_resource/back_end/tags#new + edit_panel_web_resource_back_end_tag GET /panel/web_resource/back_end/tags/:id/edit(.:format) panel/web_resource/back_end/tags#edit + panel_web_resource_back_end_tag GET /panel/web_resource/back_end/tags/:id(.:format) panel/web_resource/back_end/tags#show + PUT /panel/web_resource/back_end/tags/:id(.:format) panel/web_resource/back_end/tags#update + DELETE /panel/web_resource/back_end/tags/:id(.:format) panel/web_resource/back_end/tags#destroy + panel_web_resource_front_end_web_links GET /panel/web_resource/front_end/web_links(.:format) panel/web_resource/front_end/web_links#index + POST /panel/web_resource/front_end/web_links(.:format) panel/web_resource/front_end/web_links#create + new_panel_web_resource_front_end_web_link GET /panel/web_resource/front_end/web_links/new(.:format) panel/web_resource/front_end/web_links#new + edit_panel_web_resource_front_end_web_link GET /panel/web_resource/front_end/web_links/:id/edit(.:format) panel/web_resource/front_end/web_links#edit + panel_web_resource_front_end_web_link GET /panel/web_resource/front_end/web_links/:id(.:format) panel/web_resource/front_end/web_links#show + PUT /panel/web_resource/front_end/web_links/:id(.:format) panel/web_resource/front_end/web_links#update + DELETE /panel/web_resource/front_end/web_links/:id(.:format) panel/web_resource/front_end/web_links#destroy + panel_web_resource_widget_web_links /panel/web_resource/widget/web_links(.:format) panel/web_resource/widget/web_links#index + panel_web_resource_widget_home_list /panel/web_resource/widget/home_list(.:format) panel/web_resource/widget/web_links#home_list + panel_web_resource_widget_reload_web_links /panel/web_resource/widget/reload_web_links(.:format) panel/web_resource/widget/web_links#reload_web_links + /appfront/*path(.:format) :controller#:action + panel_personal_research_back_end_research_setting /panel/personal_research/back_end/research_setting(.:format) panel/personal_research/back_end/researchs#research_setting + delete_panel_personal_research_back_end_researchs GET /panel/personal_research/back_end/researchs/delete(.:format) panel/personal_research/back_end/researchs#delete + panel_personal_research_back_end_research_tag_quick_add /panel/personal_research/back_end/researchs/:research_id/tag_quick_add(.:format) panel/personal_research/back_end/researchs#tag_quick_add + panel_personal_research_back_end_research_tag_quick_edit /panel/personal_research/back_end/researchs/:research_id/tag_quick_edit(.:format) panel/personal_research/back_end/researchs#tag_quick_edit + panel_personal_research_back_end_researchs GET /panel/personal_research/back_end/researchs(.:format) panel/personal_research/back_end/researchs#index + POST /panel/personal_research/back_end/researchs(.:format) panel/personal_research/back_end/researchs#create + new_panel_personal_research_back_end_research GET /panel/personal_research/back_end/researchs/new(.:format) panel/personal_research/back_end/researchs#new + edit_panel_personal_research_back_end_research GET /panel/personal_research/back_end/researchs/:id/edit(.:format) panel/personal_research/back_end/researchs#edit + panel_personal_research_back_end_research GET /panel/personal_research/back_end/researchs/:id(.:format) panel/personal_research/back_end/researchs#show + PUT /panel/personal_research/back_end/researchs/:id(.:format) panel/personal_research/back_end/researchs#update + DELETE /panel/personal_research/back_end/researchs/:id(.:format) panel/personal_research/back_end/researchs#destroy + panel_personal_research_back_end_tags GET /panel/personal_research/back_end/tags(.:format) panel/personal_research/back_end/tags#index + POST /panel/personal_research/back_end/tags(.:format) panel/personal_research/back_end/tags#create + new_panel_personal_research_back_end_tag GET /panel/personal_research/back_end/tags/new(.:format) panel/personal_research/back_end/tags#new + edit_panel_personal_research_back_end_tag GET /panel/personal_research/back_end/tags/:id/edit(.:format) panel/personal_research/back_end/tags#edit + panel_personal_research_back_end_tag GET /panel/personal_research/back_end/tags/:id(.:format) panel/personal_research/back_end/tags#show + PUT /panel/personal_research/back_end/tags/:id(.:format) panel/personal_research/back_end/tags#update + DELETE /panel/personal_research/back_end/tags/:id(.:format) panel/personal_research/back_end/tags#destroy + panel_personal_research_front_end_researchs GET /panel/personal_research/front_end/researchs(.:format) panel/personal_research/front_end/researchs#index + POST /panel/personal_research/front_end/researchs(.:format) panel/personal_research/front_end/researchs#create + new_panel_personal_research_front_end_research GET /panel/personal_research/front_end/researchs/new(.:format) panel/personal_research/front_end/researchs#new + edit_panel_personal_research_front_end_research GET /panel/personal_research/front_end/researchs/:id/edit(.:format) panel/personal_research/front_end/researchs#edit + panel_personal_research_front_end_research GET /panel/personal_research/front_end/researchs/:id(.:format) panel/personal_research/front_end/researchs#show + PUT /panel/personal_research/front_end/researchs/:id(.:format) panel/personal_research/front_end/researchs#update + DELETE /panel/personal_research/front_end/researchs/:id(.:format) panel/personal_research/front_end/researchs#destroy + panel_personal_research_plugin_researchs GET /panel/personal_research/plugin/researchs(.:format) panel/personal_research/plugin/researchs#index + POST /panel/personal_research/plugin/researchs(.:format) panel/personal_research/plugin/researchs#create + new_panel_personal_research_plugin_research GET /panel/personal_research/plugin/researchs/new(.:format) panel/personal_research/plugin/researchs#new + edit_panel_personal_research_plugin_research GET /panel/personal_research/plugin/researchs/:id/edit(.:format) panel/personal_research/plugin/researchs#edit + panel_personal_research_plugin_research GET /panel/personal_research/plugin/researchs/:id(.:format) panel/personal_research/plugin/researchs#show + PUT /panel/personal_research/plugin/researchs/:id(.:format) panel/personal_research/plugin/researchs#update + DELETE /panel/personal_research/plugin/researchs/:id(.:format) panel/personal_research/plugin/researchs#destroy + panel_personal_research_widget_researchs /panel/personal_research/widget/researchs(.:format) panel/personal_research/widget/researchs#index + panel_personal_research_widget_home_list /panel/personal_research/widget/home_list(.:format) panel/personal_research/widget/researchs#home_list + panel_personal_research_widget_reload_researchs /panel/personal_research/widget/reload_researchs(.:format) panel/personal_research/widget/researchs#reload_researchs + /appfront/*path(.:format) :controller#:action + panel_personal_project_back_end_project_setting /panel/personal_project/back_end/project_setting(.:format) panel/personal_project/back_end/projects#project_setting + delete_panel_personal_project_back_end_projects GET /panel/personal_project/back_end/projects/delete(.:format) panel/personal_project/back_end/projects#delete + panel_personal_project_back_end_project_project_category_quick_add /panel/personal_project/back_end/projects/:project_id/project_category_quick_add(.:format) panel/personal_project/back_end/projects#project_category_quick_add + panel_personal_project_back_end_project_project_category_quick_edit /panel/personal_project/back_end/projects/:project_id/project_category_quick_edit(.:format) panel/personal_project/back_end/projects#project_category_quick_edit + panel_personal_project_back_end_projects GET /panel/personal_project/back_end/projects(.:format) panel/personal_project/back_end/projects#index + POST /panel/personal_project/back_end/projects(.:format) panel/personal_project/back_end/projects#create + new_panel_personal_project_back_end_project GET /panel/personal_project/back_end/projects/new(.:format) panel/personal_project/back_end/projects#new + edit_panel_personal_project_back_end_project GET /panel/personal_project/back_end/projects/:id/edit(.:format) panel/personal_project/back_end/projects#edit + panel_personal_project_back_end_project GET /panel/personal_project/back_end/projects/:id(.:format) panel/personal_project/back_end/projects#show + PUT /panel/personal_project/back_end/projects/:id(.:format) panel/personal_project/back_end/projects#update + DELETE /panel/personal_project/back_end/projects/:id(.:format) panel/personal_project/back_end/projects#destroy + panel_personal_project_back_end_project_categorys GET /panel/personal_project/back_end/project_categorys(.:format) panel/personal_project/back_end/project_categorys#index + POST /panel/personal_project/back_end/project_categorys(.:format) panel/personal_project/back_end/project_categorys#create + new_panel_personal_project_back_end_project_category GET /panel/personal_project/back_end/project_categorys/new(.:format) panel/personal_project/back_end/project_categorys#new + edit_panel_personal_project_back_end_project_category GET /panel/personal_project/back_end/project_categorys/:id/edit(.:format) panel/personal_project/back_end/project_categorys#edit + panel_personal_project_back_end_project_category GET /panel/personal_project/back_end/project_categorys/:id(.:format) panel/personal_project/back_end/project_categorys#show + PUT /panel/personal_project/back_end/project_categorys/:id(.:format) panel/personal_project/back_end/project_categorys#update + DELETE /panel/personal_project/back_end/project_categorys/:id(.:format) panel/personal_project/back_end/project_categorys#destroy + panel_personal_project_back_end_tags GET /panel/personal_project/back_end/tags(.:format) panel/personal_project/back_end/tags#index + POST /panel/personal_project/back_end/tags(.:format) panel/personal_project/back_end/tags#create + new_panel_personal_project_back_end_tag GET /panel/personal_project/back_end/tags/new(.:format) panel/personal_project/back_end/tags#new + edit_panel_personal_project_back_end_tag GET /panel/personal_project/back_end/tags/:id/edit(.:format) panel/personal_project/back_end/tags#edit + panel_personal_project_back_end_tag GET /panel/personal_project/back_end/tags/:id(.:format) panel/personal_project/back_end/tags#show + PUT /panel/personal_project/back_end/tags/:id(.:format) panel/personal_project/back_end/tags#update + DELETE /panel/personal_project/back_end/tags/:id(.:format) panel/personal_project/back_end/tags#destroy + panel_personal_project_front_end_projects GET /panel/personal_project/front_end/projects(.:format) panel/personal_project/front_end/projects#index + POST /panel/personal_project/front_end/projects(.:format) panel/personal_project/front_end/projects#create + new_panel_personal_project_front_end_project GET /panel/personal_project/front_end/projects/new(.:format) panel/personal_project/front_end/projects#new + edit_panel_personal_project_front_end_project GET /panel/personal_project/front_end/projects/:id/edit(.:format) panel/personal_project/front_end/projects#edit + panel_personal_project_front_end_project GET /panel/personal_project/front_end/projects/:id(.:format) panel/personal_project/front_end/projects#show + PUT /panel/personal_project/front_end/projects/:id(.:format) panel/personal_project/front_end/projects#update + DELETE /panel/personal_project/front_end/projects/:id(.:format) panel/personal_project/front_end/projects#destroy + panel_personal_project_plugin_projects GET /panel/personal_project/plugin/projects(.:format) panel/personal_project/plugin/projects#index + POST /panel/personal_project/plugin/projects(.:format) panel/personal_project/plugin/projects#create + new_panel_personal_project_plugin_project GET /panel/personal_project/plugin/projects/new(.:format) panel/personal_project/plugin/projects#new + edit_panel_personal_project_plugin_project GET /panel/personal_project/plugin/projects/:id/edit(.:format) panel/personal_project/plugin/projects#edit + panel_personal_project_plugin_project GET /panel/personal_project/plugin/projects/:id(.:format) panel/personal_project/plugin/projects#show + PUT /panel/personal_project/plugin/projects/:id(.:format) panel/personal_project/plugin/projects#update + DELETE /panel/personal_project/plugin/projects/:id(.:format) panel/personal_project/plugin/projects#destroy + panel_personal_project_widget_projects /panel/personal_project/widget/projects(.:format) panel/personal_project/widget/projects#index + panel_personal_project_widget_home_list /panel/personal_project/widget/home_list(.:format) panel/personal_project/widget/projects#home_list + panel_personal_project_widget_reload_projects /panel/personal_project/widget/reload_projects(.:format) panel/personal_project/widget/projects#reload_projects + /appfront/*path(.:format) :controller#:action + panel_personal_patent_back_end_writing_patent_setting /panel/personal_patent/back_end/writing_patent_setting(.:format) panel/personal_patent/back_end/writing_patents#writing_patent_setting + delete_panel_personal_patent_back_end_writing_patents GET /panel/personal_patent/back_end/writing_patents/delete(.:format) panel/personal_patent/back_end/writing_patents#delete + panel_personal_patent_back_end_writing_patent_writing_patent_category_quick_add /panel/personal_patent/back_end/writing_patents/:writing_patent_id/writing_patent_category_quick_add(.:format) panel/personal_patent/back_end/writing_patents#writing_patent_category_quick_add +panel_personal_patent_back_end_writing_patent_writing_patent_category_quick_edit /panel/personal_patent/back_end/writing_patents/:writing_patent_id/writing_patent_category_quick_edit(.:format) panel/personal_patent/back_end/writing_patents#writing_patent_category_quick_edit + panel_personal_patent_back_end_writing_patents GET /panel/personal_patent/back_end/writing_patents(.:format) panel/personal_patent/back_end/writing_patents#index + POST /panel/personal_patent/back_end/writing_patents(.:format) panel/personal_patent/back_end/writing_patents#create + new_panel_personal_patent_back_end_writing_patent GET /panel/personal_patent/back_end/writing_patents/new(.:format) panel/personal_patent/back_end/writing_patents#new + edit_panel_personal_patent_back_end_writing_patent GET /panel/personal_patent/back_end/writing_patents/:id/edit(.:format) panel/personal_patent/back_end/writing_patents#edit + panel_personal_patent_back_end_writing_patent GET /panel/personal_patent/back_end/writing_patents/:id(.:format) panel/personal_patent/back_end/writing_patents#show + PUT /panel/personal_patent/back_end/writing_patents/:id(.:format) panel/personal_patent/back_end/writing_patents#update + DELETE /panel/personal_patent/back_end/writing_patents/:id(.:format) panel/personal_patent/back_end/writing_patents#destroy + panel_personal_patent_back_end_writing_patent_categorys GET /panel/personal_patent/back_end/writing_patent_categorys(.:format) panel/personal_patent/back_end/writing_patent_categorys#index + POST /panel/personal_patent/back_end/writing_patent_categorys(.:format) panel/personal_patent/back_end/writing_patent_categorys#create + new_panel_personal_patent_back_end_writing_patent_category GET /panel/personal_patent/back_end/writing_patent_categorys/new(.:format) panel/personal_patent/back_end/writing_patent_categorys#new + edit_panel_personal_patent_back_end_writing_patent_category GET /panel/personal_patent/back_end/writing_patent_categorys/:id/edit(.:format) panel/personal_patent/back_end/writing_patent_categorys#edit + panel_personal_patent_back_end_writing_patent_category GET /panel/personal_patent/back_end/writing_patent_categorys/:id(.:format) panel/personal_patent/back_end/writing_patent_categorys#show + PUT /panel/personal_patent/back_end/writing_patent_categorys/:id(.:format) panel/personal_patent/back_end/writing_patent_categorys#update + DELETE /panel/personal_patent/back_end/writing_patent_categorys/:id(.:format) panel/personal_patent/back_end/writing_patent_categorys#destroy + panel_personal_patent_back_end_tags GET /panel/personal_patent/back_end/tags(.:format) panel/personal_patent/back_end/tags#index + POST /panel/personal_patent/back_end/tags(.:format) panel/personal_patent/back_end/tags#create + new_panel_personal_patent_back_end_tag GET /panel/personal_patent/back_end/tags/new(.:format) panel/personal_patent/back_end/tags#new + edit_panel_personal_patent_back_end_tag GET /panel/personal_patent/back_end/tags/:id/edit(.:format) panel/personal_patent/back_end/tags#edit + panel_personal_patent_back_end_tag GET /panel/personal_patent/back_end/tags/:id(.:format) panel/personal_patent/back_end/tags#show + PUT /panel/personal_patent/back_end/tags/:id(.:format) panel/personal_patent/back_end/tags#update + DELETE /panel/personal_patent/back_end/tags/:id(.:format) panel/personal_patent/back_end/tags#destroy + panel_personal_patent_front_end_writing_patents GET /panel/personal_patent/front_end/writing_patents(.:format) panel/personal_patent/front_end/writing_patents#index + POST /panel/personal_patent/front_end/writing_patents(.:format) panel/personal_patent/front_end/writing_patents#create + new_panel_personal_patent_front_end_writing_patent GET /panel/personal_patent/front_end/writing_patents/new(.:format) panel/personal_patent/front_end/writing_patents#new + edit_panel_personal_patent_front_end_writing_patent GET /panel/personal_patent/front_end/writing_patents/:id/edit(.:format) panel/personal_patent/front_end/writing_patents#edit + panel_personal_patent_front_end_writing_patent GET /panel/personal_patent/front_end/writing_patents/:id(.:format) panel/personal_patent/front_end/writing_patents#show + PUT /panel/personal_patent/front_end/writing_patents/:id(.:format) panel/personal_patent/front_end/writing_patents#update + DELETE /panel/personal_patent/front_end/writing_patents/:id(.:format) panel/personal_patent/front_end/writing_patents#destroy + panel_personal_patent_plugin_writing_patents GET /panel/personal_patent/plugin/writing_patents(.:format) panel/personal_patent/plugin/writing_patents#index + POST /panel/personal_patent/plugin/writing_patents(.:format) panel/personal_patent/plugin/writing_patents#create + new_panel_personal_patent_plugin_writing_patent GET /panel/personal_patent/plugin/writing_patents/new(.:format) panel/personal_patent/plugin/writing_patents#new + edit_panel_personal_patent_plugin_writing_patent GET /panel/personal_patent/plugin/writing_patents/:id/edit(.:format) panel/personal_patent/plugin/writing_patents#edit + panel_personal_patent_plugin_writing_patent GET /panel/personal_patent/plugin/writing_patents/:id(.:format) panel/personal_patent/plugin/writing_patents#show + PUT /panel/personal_patent/plugin/writing_patents/:id(.:format) panel/personal_patent/plugin/writing_patents#update + DELETE /panel/personal_patent/plugin/writing_patents/:id(.:format) panel/personal_patent/plugin/writing_patents#destroy + panel_personal_patent_widget_writing_patents /panel/personal_patent/widget/writing_patents(.:format) panel/personal_patent/widget/writing_patents#index + panel_personal_patent_widget_home_list /panel/personal_patent/widget/home_list(.:format) panel/personal_patent/widget/writing_patents#home_list + panel_personal_patent_widget_reload_writing_patents /panel/personal_patent/widget/reload_writing_patents(.:format) panel/personal_patent/widget/writing_patents#reload_writing_patents + /appfront/*path(.:format) :controller#:action + panel_personal_lab_back_end_lab_setting /panel/personal_lab/back_end/lab_setting(.:format) panel/personal_lab/back_end/labs#lab_setting + delete_panel_personal_lab_back_end_labs GET /panel/personal_lab/back_end/labs/delete(.:format) panel/personal_lab/back_end/labs#delete + panel_personal_lab_back_end_labs GET /panel/personal_lab/back_end/labs(.:format) panel/personal_lab/back_end/labs#index + POST /panel/personal_lab/back_end/labs(.:format) panel/personal_lab/back_end/labs#create + new_panel_personal_lab_back_end_lab GET /panel/personal_lab/back_end/labs/new(.:format) panel/personal_lab/back_end/labs#new + edit_panel_personal_lab_back_end_lab GET /panel/personal_lab/back_end/labs/:id/edit(.:format) panel/personal_lab/back_end/labs#edit + panel_personal_lab_back_end_lab GET /panel/personal_lab/back_end/labs/:id(.:format) panel/personal_lab/back_end/labs#show + PUT /panel/personal_lab/back_end/labs/:id(.:format) panel/personal_lab/back_end/labs#update + DELETE /panel/personal_lab/back_end/labs/:id(.:format) panel/personal_lab/back_end/labs#destroy + panel_personal_lab_back_end_tags GET /panel/personal_lab/back_end/tags(.:format) panel/personal_lab/back_end/tags#index + POST /panel/personal_lab/back_end/tags(.:format) panel/personal_lab/back_end/tags#create + new_panel_personal_lab_back_end_tag GET /panel/personal_lab/back_end/tags/new(.:format) panel/personal_lab/back_end/tags#new + edit_panel_personal_lab_back_end_tag GET /panel/personal_lab/back_end/tags/:id/edit(.:format) panel/personal_lab/back_end/tags#edit + panel_personal_lab_back_end_tag GET /panel/personal_lab/back_end/tags/:id(.:format) panel/personal_lab/back_end/tags#show + PUT /panel/personal_lab/back_end/tags/:id(.:format) panel/personal_lab/back_end/tags#update + DELETE /panel/personal_lab/back_end/tags/:id(.:format) panel/personal_lab/back_end/tags#destroy + panel_personal_lab_front_end_labs GET /panel/personal_lab/front_end/labs(.:format) panel/personal_lab/front_end/labs#index + POST /panel/personal_lab/front_end/labs(.:format) panel/personal_lab/front_end/labs#create + new_panel_personal_lab_front_end_lab GET /panel/personal_lab/front_end/labs/new(.:format) panel/personal_lab/front_end/labs#new + edit_panel_personal_lab_front_end_lab GET /panel/personal_lab/front_end/labs/:id/edit(.:format) panel/personal_lab/front_end/labs#edit + panel_personal_lab_front_end_lab GET /panel/personal_lab/front_end/labs/:id(.:format) panel/personal_lab/front_end/labs#show + PUT /panel/personal_lab/front_end/labs/:id(.:format) panel/personal_lab/front_end/labs#update + DELETE /panel/personal_lab/front_end/labs/:id(.:format) panel/personal_lab/front_end/labs#destroy + panel_personal_lab_plugin_labs GET /panel/personal_lab/plugin/labs(.:format) panel/personal_lab/plugin/labs#index + POST /panel/personal_lab/plugin/labs(.:format) panel/personal_lab/plugin/labs#create + new_panel_personal_lab_plugin_lab GET /panel/personal_lab/plugin/labs/new(.:format) panel/personal_lab/plugin/labs#new + edit_panel_personal_lab_plugin_lab GET /panel/personal_lab/plugin/labs/:id/edit(.:format) panel/personal_lab/plugin/labs#edit + panel_personal_lab_plugin_lab GET /panel/personal_lab/plugin/labs/:id(.:format) panel/personal_lab/plugin/labs#show + PUT /panel/personal_lab/plugin/labs/:id(.:format) panel/personal_lab/plugin/labs#update + DELETE /panel/personal_lab/plugin/labs/:id(.:format) panel/personal_lab/plugin/labs#destroy + panel_personal_lab_widget_labs /panel/personal_lab/widget/labs(.:format) panel/personal_lab/widget/labs#index + panel_personal_lab_widget_home_list /panel/personal_lab/widget/home_list(.:format) panel/personal_lab/widget/labs#home_list + panel_personal_lab_widget_reload_labs /panel/personal_lab/widget/reload_labs(.:format) panel/personal_lab/widget/labs#reload_labs + /appfront/*path(.:format) :controller#:action + panel_personal_journal_desktop_journal_p /panel/personal_journal/desktop/journal_p(.:format) panel/personal_journal/desktop/journal_p#journal_p + panel_personal_journal_desktop_get_journals_json /panel/personal_journal/desktop/get_journals_json(.:format) panel/personal_journal/desktop/journal_pages#get_journals_json + panel_personal_journal_desktop_journal_type /panel/personal_journal/desktop/journal_type(.:format) panel/personal_journal/desktop/journal_pages#journal_type + panel_personal_journal_desktop_journal_pages GET /panel/personal_journal/desktop/journal_pages(.:format) panel/personal_journal/desktop/journal_pages#index + POST /panel/personal_journal/desktop/journal_pages(.:format) panel/personal_journal/desktop/journal_pages#create + new_panel_personal_journal_desktop_journal_page GET /panel/personal_journal/desktop/journal_pages/new(.:format) panel/personal_journal/desktop/journal_pages#new + edit_panel_personal_journal_desktop_journal_page GET /panel/personal_journal/desktop/journal_pages/:id/edit(.:format) panel/personal_journal/desktop/journal_pages#edit + panel_personal_journal_desktop_journal_page PUT /panel/personal_journal/desktop/journal_pages/:id(.:format) panel/personal_journal/desktop/journal_pages#update + DELETE /panel/personal_journal/desktop/journal_pages/:id(.:format) panel/personal_journal/desktop/journal_pages#destroy + panel_personal_journal_desktop_co_authors GET /panel/personal_journal/desktop/co_authors(.:format) panel/personal_journal/desktop/co_authors#index + POST /panel/personal_journal/desktop/co_authors(.:format) panel/personal_journal/desktop/co_authors#create + new_panel_personal_journal_desktop_co_author GET /panel/personal_journal/desktop/co_authors/new(.:format) panel/personal_journal/desktop/co_authors#new + edit_panel_personal_journal_desktop_co_author GET /panel/personal_journal/desktop/co_authors/:id/edit(.:format) panel/personal_journal/desktop/co_authors#edit + panel_personal_journal_desktop_co_author PUT /panel/personal_journal/desktop/co_authors/:id(.:format) panel/personal_journal/desktop/co_authors#update + DELETE /panel/personal_journal/desktop/co_authors/:id(.:format) panel/personal_journal/desktop/co_authors#destroy + panel_personal_journal_desktop_co_author_relations GET /panel/personal_journal/desktop/co_author_relations(.:format) panel/personal_journal/desktop/co_author_relations#index + POST /panel/personal_journal/desktop/co_author_relations(.:format) panel/personal_journal/desktop/co_author_relations#create + new_panel_personal_journal_desktop_co_author_relation GET /panel/personal_journal/desktop/co_author_relations/new(.:format) panel/personal_journal/desktop/co_author_relations#new + edit_panel_personal_journal_desktop_co_author_relation GET /panel/personal_journal/desktop/co_author_relations/:id/edit(.:format) panel/personal_journal/desktop/co_author_relations#edit + panel_personal_journal_desktop_co_author_relation PUT /panel/personal_journal/desktop/co_author_relations/:id(.:format) panel/personal_journal/desktop/co_author_relations#update + DELETE /panel/personal_journal/desktop/co_author_relations/:id(.:format) panel/personal_journal/desktop/co_author_relations#destroy + panel_personal_journal_back_end_writing_journal_setting /panel/personal_journal/back_end/writing_journal_setting(.:format) panel/personal_journal/back_end/writing_journals#writing_journal_setting + delete_panel_personal_journal_back_end_writing_journals GET /panel/personal_journal/back_end/writing_journals/delete(.:format) panel/personal_journal/back_end/writing_journals#delete + panel_personal_journal_back_end_writing_journal_level_type_quick_add /panel/personal_journal/back_end/writing_journals/:writing_journal_id/level_type_quick_add(.:format) panel/personal_journal/back_end/writing_journals#level_type_quick_add + panel_personal_journal_back_end_writing_journal_level_type_quick_edit /panel/personal_journal/back_end/writing_journals/:writing_journal_id/level_type_quick_edit(.:format) panel/personal_journal/back_end/writing_journals#level_type_quick_edit + panel_personal_journal_back_end_writing_journal_author_type_quick_add /panel/personal_journal/back_end/writing_journals/:writing_journal_id/author_type_quick_add(.:format) panel/personal_journal/back_end/writing_journals#author_type_quick_add + panel_personal_journal_back_end_writing_journal_author_type_quick_edit /panel/personal_journal/back_end/writing_journals/:writing_journal_id/author_type_quick_edit(.:format) panel/personal_journal/back_end/writing_journals#author_type_quick_edit + panel_personal_journal_back_end_writing_journal_paper_type_quick_add /panel/personal_journal/back_end/writing_journals/:writing_journal_id/paper_type_quick_add(.:format) panel/personal_journal/back_end/writing_journals#paper_type_quick_add + panel_personal_journal_back_end_writing_journal_paper_type_quick_edit /panel/personal_journal/back_end/writing_journals/:writing_journal_id/paper_type_quick_edit(.:format) panel/personal_journal/back_end/writing_journals#paper_type_quick_edit + panel_personal_journal_back_end_writing_journal_tag_quick_add /panel/personal_journal/back_end/writing_journals/:writing_journal_id/tag_quick_add(.:format) panel/personal_journal/back_end/writing_journals#tag_quick_add + panel_personal_journal_back_end_writing_journal_tag_quick_edit /panel/personal_journal/back_end/writing_journals/:writing_journal_id/tag_quick_edit(.:format) panel/personal_journal/back_end/writing_journals#tag_quick_edit + panel_personal_journal_back_end_writing_journals GET /panel/personal_journal/back_end/writing_journals(.:format) panel/personal_journal/back_end/writing_journals#index + POST /panel/personal_journal/back_end/writing_journals(.:format) panel/personal_journal/back_end/writing_journals#create + new_panel_personal_journal_back_end_writing_journal GET /panel/personal_journal/back_end/writing_journals/new(.:format) panel/personal_journal/back_end/writing_journals#new + edit_panel_personal_journal_back_end_writing_journal GET /panel/personal_journal/back_end/writing_journals/:id/edit(.:format) panel/personal_journal/back_end/writing_journals#edit + panel_personal_journal_back_end_writing_journal GET /panel/personal_journal/back_end/writing_journals/:id(.:format) panel/personal_journal/back_end/writing_journals#show + PUT /panel/personal_journal/back_end/writing_journals/:id(.:format) panel/personal_journal/back_end/writing_journals#update + DELETE /panel/personal_journal/back_end/writing_journals/:id(.:format) panel/personal_journal/back_end/writing_journals#destroy + panel_personal_journal_back_end_journal_paper_types GET /panel/personal_journal/back_end/journal_paper_types(.:format) panel/personal_journal/back_end/journal_paper_types#index + POST /panel/personal_journal/back_end/journal_paper_types(.:format) panel/personal_journal/back_end/journal_paper_types#create + new_panel_personal_journal_back_end_journal_paper_type GET /panel/personal_journal/back_end/journal_paper_types/new(.:format) panel/personal_journal/back_end/journal_paper_types#new + edit_panel_personal_journal_back_end_journal_paper_type GET /panel/personal_journal/back_end/journal_paper_types/:id/edit(.:format) panel/personal_journal/back_end/journal_paper_types#edit + panel_personal_journal_back_end_journal_paper_type GET /panel/personal_journal/back_end/journal_paper_types/:id(.:format) panel/personal_journal/back_end/journal_paper_types#show + PUT /panel/personal_journal/back_end/journal_paper_types/:id(.:format) panel/personal_journal/back_end/journal_paper_types#update + DELETE /panel/personal_journal/back_end/journal_paper_types/:id(.:format) panel/personal_journal/back_end/journal_paper_types#destroy + panel_personal_journal_back_end_journal_author_types GET /panel/personal_journal/back_end/journal_author_types(.:format) panel/personal_journal/back_end/journal_author_types#index + POST /panel/personal_journal/back_end/journal_author_types(.:format) panel/personal_journal/back_end/journal_author_types#create + new_panel_personal_journal_back_end_journal_author_type GET /panel/personal_journal/back_end/journal_author_types/new(.:format) panel/personal_journal/back_end/journal_author_types#new + edit_panel_personal_journal_back_end_journal_author_type GET /panel/personal_journal/back_end/journal_author_types/:id/edit(.:format) panel/personal_journal/back_end/journal_author_types#edit + panel_personal_journal_back_end_journal_author_type GET /panel/personal_journal/back_end/journal_author_types/:id(.:format) panel/personal_journal/back_end/journal_author_types#show + PUT /panel/personal_journal/back_end/journal_author_types/:id(.:format) panel/personal_journal/back_end/journal_author_types#update + DELETE /panel/personal_journal/back_end/journal_author_types/:id(.:format) panel/personal_journal/back_end/journal_author_types#destroy + panel_personal_journal_back_end_journal_level_types GET /panel/personal_journal/back_end/journal_level_types(.:format) panel/personal_journal/back_end/journal_level_types#index + POST /panel/personal_journal/back_end/journal_level_types(.:format) panel/personal_journal/back_end/journal_level_types#create + new_panel_personal_journal_back_end_journal_level_type GET /panel/personal_journal/back_end/journal_level_types/new(.:format) panel/personal_journal/back_end/journal_level_types#new + edit_panel_personal_journal_back_end_journal_level_type GET /panel/personal_journal/back_end/journal_level_types/:id/edit(.:format) panel/personal_journal/back_end/journal_level_types#edit + panel_personal_journal_back_end_journal_level_type GET /panel/personal_journal/back_end/journal_level_types/:id(.:format) panel/personal_journal/back_end/journal_level_types#show + PUT /panel/personal_journal/back_end/journal_level_types/:id(.:format) panel/personal_journal/back_end/journal_level_types#update + DELETE /panel/personal_journal/back_end/journal_level_types/:id(.:format) panel/personal_journal/back_end/journal_level_types#destroy + panel_personal_journal_back_end_tags GET /panel/personal_journal/back_end/tags(.:format) panel/personal_journal/back_end/tags#index + POST /panel/personal_journal/back_end/tags(.:format) panel/personal_journal/back_end/tags#create + new_panel_personal_journal_back_end_tag GET /panel/personal_journal/back_end/tags/new(.:format) panel/personal_journal/back_end/tags#new + edit_panel_personal_journal_back_end_tag GET /panel/personal_journal/back_end/tags/:id/edit(.:format) panel/personal_journal/back_end/tags#edit + panel_personal_journal_back_end_tag GET /panel/personal_journal/back_end/tags/:id(.:format) panel/personal_journal/back_end/tags#show + PUT /panel/personal_journal/back_end/tags/:id(.:format) panel/personal_journal/back_end/tags#update + DELETE /panel/personal_journal/back_end/tags/:id(.:format) panel/personal_journal/back_end/tags#destroy + panel_personal_journal_front_end_writing_journals GET /panel/personal_journal/front_end/writing_journals(.:format) panel/personal_journal/front_end/writing_journals#index + POST /panel/personal_journal/front_end/writing_journals(.:format) panel/personal_journal/front_end/writing_journals#create + new_panel_personal_journal_front_end_writing_journal GET /panel/personal_journal/front_end/writing_journals/new(.:format) panel/personal_journal/front_end/writing_journals#new + edit_panel_personal_journal_front_end_writing_journal GET /panel/personal_journal/front_end/writing_journals/:id/edit(.:format) panel/personal_journal/front_end/writing_journals#edit + panel_personal_journal_front_end_writing_journal GET /panel/personal_journal/front_end/writing_journals/:id(.:format) panel/personal_journal/front_end/writing_journals#show + PUT /panel/personal_journal/front_end/writing_journals/:id(.:format) panel/personal_journal/front_end/writing_journals#update + DELETE /panel/personal_journal/front_end/writing_journals/:id(.:format) panel/personal_journal/front_end/writing_journals#destroy + panel_personal_journal_plugin_writing_journals GET /panel/personal_journal/plugin/writing_journals(.:format) panel/personal_journal/plugin/writing_journals#index + POST /panel/personal_journal/plugin/writing_journals(.:format) panel/personal_journal/plugin/writing_journals#create + new_panel_personal_journal_plugin_writing_journal GET /panel/personal_journal/plugin/writing_journals/new(.:format) panel/personal_journal/plugin/writing_journals#new + edit_panel_personal_journal_plugin_writing_journal GET /panel/personal_journal/plugin/writing_journals/:id/edit(.:format) panel/personal_journal/plugin/writing_journals#edit + panel_personal_journal_plugin_writing_journal GET /panel/personal_journal/plugin/writing_journals/:id(.:format) panel/personal_journal/plugin/writing_journals#show + PUT /panel/personal_journal/plugin/writing_journals/:id(.:format) panel/personal_journal/plugin/writing_journals#update + DELETE /panel/personal_journal/plugin/writing_journals/:id(.:format) panel/personal_journal/plugin/writing_journals#destroy + panel_personal_journal_widget_writing_journals /panel/personal_journal/widget/writing_journals(.:format) panel/personal_journal/widget/writing_journals#index + panel_personal_journal_widget_home_list /panel/personal_journal/widget/home_list(.:format) panel/personal_journal/widget/writing_journals#home_list + panel_personal_journal_widget_reload_writing_journals /panel/personal_journal/widget/reload_writing_journals(.:format) panel/personal_journal/widget/writing_journals#reload_writing_journals + /appfront/*path(.:format) :controller#:action + panel_personal_honor_back_end_honor_setting /panel/personal_honor/back_end/honor_setting(.:format) panel/personal_honor/back_end/honors#honor_setting + delete_panel_personal_honor_back_end_honors GET /panel/personal_honor/back_end/honors/delete(.:format) panel/personal_honor/back_end/honors#delete + panel_personal_honor_back_end_honor_honor_category_quick_add /panel/personal_honor/back_end/honors/:honor_id/honor_category_quick_add(.:format) panel/personal_honor/back_end/honors#honor_category_quick_add + panel_personal_honor_back_end_honor_honor_category_quick_edit /panel/personal_honor/back_end/honors/:honor_id/honor_category_quick_edit(.:format) panel/personal_honor/back_end/honors#honor_category_quick_edit + panel_personal_honor_back_end_honors GET /panel/personal_honor/back_end/honors(.:format) panel/personal_honor/back_end/honors#index + POST /panel/personal_honor/back_end/honors(.:format) panel/personal_honor/back_end/honors#create + new_panel_personal_honor_back_end_honor GET /panel/personal_honor/back_end/honors/new(.:format) panel/personal_honor/back_end/honors#new + edit_panel_personal_honor_back_end_honor GET /panel/personal_honor/back_end/honors/:id/edit(.:format) panel/personal_honor/back_end/honors#edit + panel_personal_honor_back_end_honor GET /panel/personal_honor/back_end/honors/:id(.:format) panel/personal_honor/back_end/honors#show + PUT /panel/personal_honor/back_end/honors/:id(.:format) panel/personal_honor/back_end/honors#update + DELETE /panel/personal_honor/back_end/honors/:id(.:format) panel/personal_honor/back_end/honors#destroy + panel_personal_honor_back_end_honor_categorys GET /panel/personal_honor/back_end/honor_categorys(.:format) panel/personal_honor/back_end/honor_categorys#index + POST /panel/personal_honor/back_end/honor_categorys(.:format) panel/personal_honor/back_end/honor_categorys#create + new_panel_personal_honor_back_end_honor_category GET /panel/personal_honor/back_end/honor_categorys/new(.:format) panel/personal_honor/back_end/honor_categorys#new + edit_panel_personal_honor_back_end_honor_category GET /panel/personal_honor/back_end/honor_categorys/:id/edit(.:format) panel/personal_honor/back_end/honor_categorys#edit + panel_personal_honor_back_end_honor_category GET /panel/personal_honor/back_end/honor_categorys/:id(.:format) panel/personal_honor/back_end/honor_categorys#show + PUT /panel/personal_honor/back_end/honor_categorys/:id(.:format) panel/personal_honor/back_end/honor_categorys#update + DELETE /panel/personal_honor/back_end/honor_categorys/:id(.:format) panel/personal_honor/back_end/honor_categorys#destroy + panel_personal_honor_back_end_tags GET /panel/personal_honor/back_end/tags(.:format) panel/personal_honor/back_end/tags#index + POST /panel/personal_honor/back_end/tags(.:format) panel/personal_honor/back_end/tags#create + new_panel_personal_honor_back_end_tag GET /panel/personal_honor/back_end/tags/new(.:format) panel/personal_honor/back_end/tags#new + edit_panel_personal_honor_back_end_tag GET /panel/personal_honor/back_end/tags/:id/edit(.:format) panel/personal_honor/back_end/tags#edit + panel_personal_honor_back_end_tag GET /panel/personal_honor/back_end/tags/:id(.:format) panel/personal_honor/back_end/tags#show + PUT /panel/personal_honor/back_end/tags/:id(.:format) panel/personal_honor/back_end/tags#update + DELETE /panel/personal_honor/back_end/tags/:id(.:format) panel/personal_honor/back_end/tags#destroy + panel_personal_honor_front_end_honors GET /panel/personal_honor/front_end/honors(.:format) panel/personal_honor/front_end/honors#index + POST /panel/personal_honor/front_end/honors(.:format) panel/personal_honor/front_end/honors#create + new_panel_personal_honor_front_end_honor GET /panel/personal_honor/front_end/honors/new(.:format) panel/personal_honor/front_end/honors#new + edit_panel_personal_honor_front_end_honor GET /panel/personal_honor/front_end/honors/:id/edit(.:format) panel/personal_honor/front_end/honors#edit + panel_personal_honor_front_end_honor GET /panel/personal_honor/front_end/honors/:id(.:format) panel/personal_honor/front_end/honors#show + PUT /panel/personal_honor/front_end/honors/:id(.:format) panel/personal_honor/front_end/honors#update + DELETE /panel/personal_honor/front_end/honors/:id(.:format) panel/personal_honor/front_end/honors#destroy + panel_personal_honor_plugin_honors GET /panel/personal_honor/plugin/honors(.:format) panel/personal_honor/plugin/honors#index + POST /panel/personal_honor/plugin/honors(.:format) panel/personal_honor/plugin/honors#create + new_panel_personal_honor_plugin_honor GET /panel/personal_honor/plugin/honors/new(.:format) panel/personal_honor/plugin/honors#new + edit_panel_personal_honor_plugin_honor GET /panel/personal_honor/plugin/honors/:id/edit(.:format) panel/personal_honor/plugin/honors#edit + panel_personal_honor_plugin_honor GET /panel/personal_honor/plugin/honors/:id(.:format) panel/personal_honor/plugin/honors#show + PUT /panel/personal_honor/plugin/honors/:id(.:format) panel/personal_honor/plugin/honors#update + DELETE /panel/personal_honor/plugin/honors/:id(.:format) panel/personal_honor/plugin/honors#destroy + panel_personal_honor_widget_honors /panel/personal_honor/widget/honors(.:format) panel/personal_honor/widget/honors#index + panel_personal_honor_widget_home_list /panel/personal_honor/widget/home_list(.:format) panel/personal_honor/widget/honors#home_list + panel_personal_honor_widget_reload_honors /panel/personal_honor/widget/reload_honors(.:format) panel/personal_honor/widget/honors#reload_honors + /appfront/*path(.:format) :controller#:action + panel_personal_experience_back_end_experience_setting /panel/personal_experience/back_end/experience_setting(.:format) panel/personal_experience/back_end/experiences#experience_setting + delete_panel_personal_experience_back_end_experiences GET /panel/personal_experience/back_end/experiences/delete(.:format) panel/personal_experience/back_end/experiences#delete + panel_personal_experience_back_end_experience_experience_category_quick_add /panel/personal_experience/back_end/experiences/:experience_id/experience_category_quick_add(.:format) panel/personal_experience/back_end/experiences#experience_category_quick_add + panel_personal_experience_back_end_experience_experience_category_quick_edit /panel/personal_experience/back_end/experiences/:experience_id/experience_category_quick_edit(.:format) panel/personal_experience/back_end/experiences#experience_category_quick_edit + panel_personal_experience_back_end_experiences GET /panel/personal_experience/back_end/experiences(.:format) panel/personal_experience/back_end/experiences#index + POST /panel/personal_experience/back_end/experiences(.:format) panel/personal_experience/back_end/experiences#create + new_panel_personal_experience_back_end_experience GET /panel/personal_experience/back_end/experiences/new(.:format) panel/personal_experience/back_end/experiences#new + edit_panel_personal_experience_back_end_experience GET /panel/personal_experience/back_end/experiences/:id/edit(.:format) panel/personal_experience/back_end/experiences#edit + panel_personal_experience_back_end_experience GET /panel/personal_experience/back_end/experiences/:id(.:format) panel/personal_experience/back_end/experiences#show + PUT /panel/personal_experience/back_end/experiences/:id(.:format) panel/personal_experience/back_end/experiences#update + DELETE /panel/personal_experience/back_end/experiences/:id(.:format) panel/personal_experience/back_end/experiences#destroy + panel_personal_experience_back_end_experience_categorys GET /panel/personal_experience/back_end/experience_categorys(.:format) panel/personal_experience/back_end/experience_categorys#index + POST /panel/personal_experience/back_end/experience_categorys(.:format) panel/personal_experience/back_end/experience_categorys#create + new_panel_personal_experience_back_end_experience_category GET /panel/personal_experience/back_end/experience_categorys/new(.:format) panel/personal_experience/back_end/experience_categorys#new + edit_panel_personal_experience_back_end_experience_category GET /panel/personal_experience/back_end/experience_categorys/:id/edit(.:format) panel/personal_experience/back_end/experience_categorys#edit + panel_personal_experience_back_end_experience_category GET /panel/personal_experience/back_end/experience_categorys/:id(.:format) panel/personal_experience/back_end/experience_categorys#show + PUT /panel/personal_experience/back_end/experience_categorys/:id(.:format) panel/personal_experience/back_end/experience_categorys#update + DELETE /panel/personal_experience/back_end/experience_categorys/:id(.:format) panel/personal_experience/back_end/experience_categorys#destroy + panel_personal_experience_back_end_tags GET /panel/personal_experience/back_end/tags(.:format) panel/personal_experience/back_end/tags#index + POST /panel/personal_experience/back_end/tags(.:format) panel/personal_experience/back_end/tags#create + new_panel_personal_experience_back_end_tag GET /panel/personal_experience/back_end/tags/new(.:format) panel/personal_experience/back_end/tags#new + edit_panel_personal_experience_back_end_tag GET /panel/personal_experience/back_end/tags/:id/edit(.:format) panel/personal_experience/back_end/tags#edit + panel_personal_experience_back_end_tag GET /panel/personal_experience/back_end/tags/:id(.:format) panel/personal_experience/back_end/tags#show + PUT /panel/personal_experience/back_end/tags/:id(.:format) panel/personal_experience/back_end/tags#update + DELETE /panel/personal_experience/back_end/tags/:id(.:format) panel/personal_experience/back_end/tags#destroy + panel_personal_experience_front_end_experiences GET /panel/personal_experience/front_end/experiences(.:format) panel/personal_experience/front_end/experiences#index + POST /panel/personal_experience/front_end/experiences(.:format) panel/personal_experience/front_end/experiences#create + new_panel_personal_experience_front_end_experience GET /panel/personal_experience/front_end/experiences/new(.:format) panel/personal_experience/front_end/experiences#new + edit_panel_personal_experience_front_end_experience GET /panel/personal_experience/front_end/experiences/:id/edit(.:format) panel/personal_experience/front_end/experiences#edit + panel_personal_experience_front_end_experience GET /panel/personal_experience/front_end/experiences/:id(.:format) panel/personal_experience/front_end/experiences#show + PUT /panel/personal_experience/front_end/experiences/:id(.:format) panel/personal_experience/front_end/experiences#update + DELETE /panel/personal_experience/front_end/experiences/:id(.:format) panel/personal_experience/front_end/experiences#destroy + panel_personal_experience_plugin_experiences GET /panel/personal_experience/plugin/experiences(.:format) panel/personal_experience/plugin/experiences#index + POST /panel/personal_experience/plugin/experiences(.:format) panel/personal_experience/plugin/experiences#create + new_panel_personal_experience_plugin_experience GET /panel/personal_experience/plugin/experiences/new(.:format) panel/personal_experience/plugin/experiences#new + edit_panel_personal_experience_plugin_experience GET /panel/personal_experience/plugin/experiences/:id/edit(.:format) panel/personal_experience/plugin/experiences#edit + panel_personal_experience_plugin_experience GET /panel/personal_experience/plugin/experiences/:id(.:format) panel/personal_experience/plugin/experiences#show + PUT /panel/personal_experience/plugin/experiences/:id(.:format) panel/personal_experience/plugin/experiences#update + DELETE /panel/personal_experience/plugin/experiences/:id(.:format) panel/personal_experience/plugin/experiences#destroy + panel_personal_experience_widget_experiences /panel/personal_experience/widget/experiences(.:format) panel/personal_experience/widget/experiences#index + panel_personal_experience_widget_home_list /panel/personal_experience/widget/home_list(.:format) panel/personal_experience/widget/experiences#home_list + panel_personal_experience_widget_reload_experiences /panel/personal_experience/widget/reload_experiences(.:format) panel/personal_experience/widget/experiences#reload_experiences + /appfront/*path(.:format) :controller#:action + panel_personal_diploma_back_end_diploma_setting /panel/personal_diploma/back_end/diploma_setting(.:format) panel/personal_diploma/back_end/diplomas#diploma_setting + delete_panel_personal_diploma_back_end_diplomas GET /panel/personal_diploma/back_end/diplomas/delete(.:format) panel/personal_diploma/back_end/diplomas#delete + panel_personal_diploma_back_end_diplomas GET /panel/personal_diploma/back_end/diplomas(.:format) panel/personal_diploma/back_end/diplomas#index + POST /panel/personal_diploma/back_end/diplomas(.:format) panel/personal_diploma/back_end/diplomas#create + new_panel_personal_diploma_back_end_diploma GET /panel/personal_diploma/back_end/diplomas/new(.:format) panel/personal_diploma/back_end/diplomas#new + edit_panel_personal_diploma_back_end_diploma GET /panel/personal_diploma/back_end/diplomas/:id/edit(.:format) panel/personal_diploma/back_end/diplomas#edit + panel_personal_diploma_back_end_diploma GET /panel/personal_diploma/back_end/diplomas/:id(.:format) panel/personal_diploma/back_end/diplomas#show + PUT /panel/personal_diploma/back_end/diplomas/:id(.:format) panel/personal_diploma/back_end/diplomas#update + DELETE /panel/personal_diploma/back_end/diplomas/:id(.:format) panel/personal_diploma/back_end/diplomas#destroy + panel_personal_diploma_back_end_tags GET /panel/personal_diploma/back_end/tags(.:format) panel/personal_diploma/back_end/tags#index + POST /panel/personal_diploma/back_end/tags(.:format) panel/personal_diploma/back_end/tags#create + new_panel_personal_diploma_back_end_tag GET /panel/personal_diploma/back_end/tags/new(.:format) panel/personal_diploma/back_end/tags#new + edit_panel_personal_diploma_back_end_tag GET /panel/personal_diploma/back_end/tags/:id/edit(.:format) panel/personal_diploma/back_end/tags#edit + panel_personal_diploma_back_end_tag GET /panel/personal_diploma/back_end/tags/:id(.:format) panel/personal_diploma/back_end/tags#show + PUT /panel/personal_diploma/back_end/tags/:id(.:format) panel/personal_diploma/back_end/tags#update + DELETE /panel/personal_diploma/back_end/tags/:id(.:format) panel/personal_diploma/back_end/tags#destroy + panel_personal_diploma_front_end_diplomas GET /panel/personal_diploma/front_end/diplomas(.:format) panel/personal_diploma/front_end/diplomas#index + POST /panel/personal_diploma/front_end/diplomas(.:format) panel/personal_diploma/front_end/diplomas#create + new_panel_personal_diploma_front_end_diploma GET /panel/personal_diploma/front_end/diplomas/new(.:format) panel/personal_diploma/front_end/diplomas#new + edit_panel_personal_diploma_front_end_diploma GET /panel/personal_diploma/front_end/diplomas/:id/edit(.:format) panel/personal_diploma/front_end/diplomas#edit + panel_personal_diploma_front_end_diploma GET /panel/personal_diploma/front_end/diplomas/:id(.:format) panel/personal_diploma/front_end/diplomas#show + PUT /panel/personal_diploma/front_end/diplomas/:id(.:format) panel/personal_diploma/front_end/diplomas#update + DELETE /panel/personal_diploma/front_end/diplomas/:id(.:format) panel/personal_diploma/front_end/diplomas#destroy + panel_personal_diploma_plugin_diplomas GET /panel/personal_diploma/plugin/diplomas(.:format) panel/personal_diploma/plugin/diplomas#index + POST /panel/personal_diploma/plugin/diplomas(.:format) panel/personal_diploma/plugin/diplomas#create + new_panel_personal_diploma_plugin_diploma GET /panel/personal_diploma/plugin/diplomas/new(.:format) panel/personal_diploma/plugin/diplomas#new + edit_panel_personal_diploma_plugin_diploma GET /panel/personal_diploma/plugin/diplomas/:id/edit(.:format) panel/personal_diploma/plugin/diplomas#edit + panel_personal_diploma_plugin_diploma GET /panel/personal_diploma/plugin/diplomas/:id(.:format) panel/personal_diploma/plugin/diplomas#show + PUT /panel/personal_diploma/plugin/diplomas/:id(.:format) panel/personal_diploma/plugin/diplomas#update + DELETE /panel/personal_diploma/plugin/diplomas/:id(.:format) panel/personal_diploma/plugin/diplomas#destroy + panel_personal_diploma_widget_diplomas /panel/personal_diploma/widget/diplomas(.:format) panel/personal_diploma/widget/diplomas#index + panel_personal_diploma_widget_home_list /panel/personal_diploma/widget/home_list(.:format) panel/personal_diploma/widget/diplomas#home_list + panel_personal_diploma_widget_reload_diplomas /panel/personal_diploma/widget/reload_diplomas(.:format) panel/personal_diploma/widget/diplomas#reload_diplomas + /appfront/*path(.:format) :controller#:action + panel_personal_conference_back_end_writing_conference_setting /panel/personal_conference/back_end/writing_conference_setting(.:format) panel/personal_conference/back_end/writing_conferences#writing_conference_setting + delete_panel_personal_conference_back_end_writing_conferences GET /panel/personal_conference/back_end/writing_conferences/delete(.:format) panel/personal_conference/back_end/writing_conferences#delete + panel_personal_conference_back_end_writing_conference_author_type_quick_add /panel/personal_conference/back_end/writing_conferences/:writing_conference_id/author_type_quick_add(.:format) panel/personal_conference/back_end/writing_conferences#author_type_quick_add + panel_personal_conference_back_end_writing_conference_author_type_quick_edit /panel/personal_conference/back_end/writing_conferences/:writing_conference_id/author_type_quick_edit(.:format) panel/personal_conference/back_end/writing_conferences#author_type_quick_edit + panel_personal_conference_back_end_writing_conference_paper_type_quick_add /panel/personal_conference/back_end/writing_conferences/:writing_conference_id/paper_type_quick_add(.:format) panel/personal_conference/back_end/writing_conferences#paper_type_quick_add + panel_personal_conference_back_end_writing_conference_paper_type_quick_edit /panel/personal_conference/back_end/writing_conferences/:writing_conference_id/paper_type_quick_edit(.:format) panel/personal_conference/back_end/writing_conferences#paper_type_quick_edit + panel_personal_conference_back_end_writing_conferences GET /panel/personal_conference/back_end/writing_conferences(.:format) panel/personal_conference/back_end/writing_conferences#index + POST /panel/personal_conference/back_end/writing_conferences(.:format) panel/personal_conference/back_end/writing_conferences#create + new_panel_personal_conference_back_end_writing_conference GET /panel/personal_conference/back_end/writing_conferences/new(.:format) panel/personal_conference/back_end/writing_conferences#new + edit_panel_personal_conference_back_end_writing_conference GET /panel/personal_conference/back_end/writing_conferences/:id/edit(.:format) panel/personal_conference/back_end/writing_conferences#edit + panel_personal_conference_back_end_writing_conference GET /panel/personal_conference/back_end/writing_conferences/:id(.:format) panel/personal_conference/back_end/writing_conferences#show + PUT /panel/personal_conference/back_end/writing_conferences/:id(.:format) panel/personal_conference/back_end/writing_conferences#update + DELETE /panel/personal_conference/back_end/writing_conferences/:id(.:format) panel/personal_conference/back_end/writing_conferences#destroy + panel_personal_conference_back_end_conference_paper_types GET /panel/personal_conference/back_end/conference_paper_types(.:format) panel/personal_conference/back_end/conference_paper_types#index + POST /panel/personal_conference/back_end/conference_paper_types(.:format) panel/personal_conference/back_end/conference_paper_types#create + new_panel_personal_conference_back_end_conference_paper_type GET /panel/personal_conference/back_end/conference_paper_types/new(.:format) panel/personal_conference/back_end/conference_paper_types#new + edit_panel_personal_conference_back_end_conference_paper_type GET /panel/personal_conference/back_end/conference_paper_types/:id/edit(.:format) panel/personal_conference/back_end/conference_paper_types#edit + panel_personal_conference_back_end_conference_paper_type GET /panel/personal_conference/back_end/conference_paper_types/:id(.:format) panel/personal_conference/back_end/conference_paper_types#show + PUT /panel/personal_conference/back_end/conference_paper_types/:id(.:format) panel/personal_conference/back_end/conference_paper_types#update + DELETE /panel/personal_conference/back_end/conference_paper_types/:id(.:format) panel/personal_conference/back_end/conference_paper_types#destroy + panel_personal_conference_back_end_conference_author_types GET /panel/personal_conference/back_end/conference_author_types(.:format) panel/personal_conference/back_end/conference_author_types#index + POST /panel/personal_conference/back_end/conference_author_types(.:format) panel/personal_conference/back_end/conference_author_types#create + new_panel_personal_conference_back_end_conference_author_type GET /panel/personal_conference/back_end/conference_author_types/new(.:format) panel/personal_conference/back_end/conference_author_types#new + edit_panel_personal_conference_back_end_conference_author_type GET /panel/personal_conference/back_end/conference_author_types/:id/edit(.:format) panel/personal_conference/back_end/conference_author_types#edit + panel_personal_conference_back_end_conference_author_type GET /panel/personal_conference/back_end/conference_author_types/:id(.:format) panel/personal_conference/back_end/conference_author_types#show + PUT /panel/personal_conference/back_end/conference_author_types/:id(.:format) panel/personal_conference/back_end/conference_author_types#update + DELETE /panel/personal_conference/back_end/conference_author_types/:id(.:format) panel/personal_conference/back_end/conference_author_types#destroy + panel_personal_conference_back_end_tags GET /panel/personal_conference/back_end/tags(.:format) panel/personal_conference/back_end/tags#index + POST /panel/personal_conference/back_end/tags(.:format) panel/personal_conference/back_end/tags#create + new_panel_personal_conference_back_end_tag GET /panel/personal_conference/back_end/tags/new(.:format) panel/personal_conference/back_end/tags#new + edit_panel_personal_conference_back_end_tag GET /panel/personal_conference/back_end/tags/:id/edit(.:format) panel/personal_conference/back_end/tags#edit + panel_personal_conference_back_end_tag GET /panel/personal_conference/back_end/tags/:id(.:format) panel/personal_conference/back_end/tags#show + PUT /panel/personal_conference/back_end/tags/:id(.:format) panel/personal_conference/back_end/tags#update + DELETE /panel/personal_conference/back_end/tags/:id(.:format) panel/personal_conference/back_end/tags#destroy + panel_personal_conference_front_end_writing_conferences GET /panel/personal_conference/front_end/writing_conferences(.:format) panel/personal_conference/front_end/writing_conferences#index + POST /panel/personal_conference/front_end/writing_conferences(.:format) panel/personal_conference/front_end/writing_conferences#create + new_panel_personal_conference_front_end_writing_conference GET /panel/personal_conference/front_end/writing_conferences/new(.:format) panel/personal_conference/front_end/writing_conferences#new + edit_panel_personal_conference_front_end_writing_conference GET /panel/personal_conference/front_end/writing_conferences/:id/edit(.:format) panel/personal_conference/front_end/writing_conferences#edit + panel_personal_conference_front_end_writing_conference GET /panel/personal_conference/front_end/writing_conferences/:id(.:format) panel/personal_conference/front_end/writing_conferences#show + PUT /panel/personal_conference/front_end/writing_conferences/:id(.:format) panel/personal_conference/front_end/writing_conferences#update + DELETE /panel/personal_conference/front_end/writing_conferences/:id(.:format) panel/personal_conference/front_end/writing_conferences#destroy + panel_personal_conference_plugin_writing_conferences GET /panel/personal_conference/plugin/writing_conferences(.:format) panel/personal_conference/plugin/writing_conferences#index + POST /panel/personal_conference/plugin/writing_conferences(.:format) panel/personal_conference/plugin/writing_conferences#create + new_panel_personal_conference_plugin_writing_conference GET /panel/personal_conference/plugin/writing_conferences/new(.:format) panel/personal_conference/plugin/writing_conferences#new + edit_panel_personal_conference_plugin_writing_conference GET /panel/personal_conference/plugin/writing_conferences/:id/edit(.:format) panel/personal_conference/plugin/writing_conferences#edit + panel_personal_conference_plugin_writing_conference GET /panel/personal_conference/plugin/writing_conferences/:id(.:format) panel/personal_conference/plugin/writing_conferences#show + PUT /panel/personal_conference/plugin/writing_conferences/:id(.:format) panel/personal_conference/plugin/writing_conferences#update + DELETE /panel/personal_conference/plugin/writing_conferences/:id(.:format) panel/personal_conference/plugin/writing_conferences#destroy + panel_personal_conference_widget_writing_conferences /panel/personal_conference/widget/writing_conferences(.:format) panel/personal_conference/widget/writing_conferences#index + panel_personal_conference_widget_home_list /panel/personal_conference/widget/home_list(.:format) panel/personal_conference/widget/writing_conferences#home_list + panel_personal_conference_widget_reload_writing_conferences /panel/personal_conference/widget/reload_writing_conferences(.:format) panel/personal_conference/widget/writing_conferences#reload_writing_conferences + /appfront/*path(.:format) :controller#:action + panel_personal_book_back_end_writing_book_setting /panel/personal_book/back_end/writing_book_setting(.:format) panel/personal_book/back_end/writing_books#writing_book_setting + delete_panel_personal_book_back_end_writing_books GET /panel/personal_book/back_end/writing_books/delete(.:format) panel/personal_book/back_end/writing_books#delete + panel_personal_book_back_end_writing_book_author_type_quick_add /panel/personal_book/back_end/writing_books/:writing_book_id/author_type_quick_add(.:format) panel/personal_book/back_end/writing_books#author_type_quick_add + panel_personal_book_back_end_writing_book_author_type_quick_edit /panel/personal_book/back_end/writing_books/:writing_book_id/author_type_quick_edit(.:format) panel/personal_book/back_end/writing_books#author_type_quick_edit + panel_personal_book_back_end_writing_book_paper_type_quick_add /panel/personal_book/back_end/writing_books/:writing_book_id/paper_type_quick_add(.:format) panel/personal_book/back_end/writing_books#paper_type_quick_add + panel_personal_book_back_end_writing_book_paper_type_quick_edit /panel/personal_book/back_end/writing_books/:writing_book_id/paper_type_quick_edit(.:format) panel/personal_book/back_end/writing_books#paper_type_quick_edit + panel_personal_book_back_end_writing_books GET /panel/personal_book/back_end/writing_books(.:format) panel/personal_book/back_end/writing_books#index + POST /panel/personal_book/back_end/writing_books(.:format) panel/personal_book/back_end/writing_books#create + new_panel_personal_book_back_end_writing_book GET /panel/personal_book/back_end/writing_books/new(.:format) panel/personal_book/back_end/writing_books#new + edit_panel_personal_book_back_end_writing_book GET /panel/personal_book/back_end/writing_books/:id/edit(.:format) panel/personal_book/back_end/writing_books#edit + panel_personal_book_back_end_writing_book GET /panel/personal_book/back_end/writing_books/:id(.:format) panel/personal_book/back_end/writing_books#show + PUT /panel/personal_book/back_end/writing_books/:id(.:format) panel/personal_book/back_end/writing_books#update + DELETE /panel/personal_book/back_end/writing_books/:id(.:format) panel/personal_book/back_end/writing_books#destroy + panel_personal_book_back_end_book_paper_types GET /panel/personal_book/back_end/book_paper_types(.:format) panel/personal_book/back_end/book_paper_types#index + POST /panel/personal_book/back_end/book_paper_types(.:format) panel/personal_book/back_end/book_paper_types#create + new_panel_personal_book_back_end_book_paper_type GET /panel/personal_book/back_end/book_paper_types/new(.:format) panel/personal_book/back_end/book_paper_types#new + edit_panel_personal_book_back_end_book_paper_type GET /panel/personal_book/back_end/book_paper_types/:id/edit(.:format) panel/personal_book/back_end/book_paper_types#edit + panel_personal_book_back_end_book_paper_type GET /panel/personal_book/back_end/book_paper_types/:id(.:format) panel/personal_book/back_end/book_paper_types#show + PUT /panel/personal_book/back_end/book_paper_types/:id(.:format) panel/personal_book/back_end/book_paper_types#update + DELETE /panel/personal_book/back_end/book_paper_types/:id(.:format) panel/personal_book/back_end/book_paper_types#destroy + panel_personal_book_back_end_book_author_types GET /panel/personal_book/back_end/book_author_types(.:format) panel/personal_book/back_end/book_author_types#index + POST /panel/personal_book/back_end/book_author_types(.:format) panel/personal_book/back_end/book_author_types#create + new_panel_personal_book_back_end_book_author_type GET /panel/personal_book/back_end/book_author_types/new(.:format) panel/personal_book/back_end/book_author_types#new + edit_panel_personal_book_back_end_book_author_type GET /panel/personal_book/back_end/book_author_types/:id/edit(.:format) panel/personal_book/back_end/book_author_types#edit + panel_personal_book_back_end_book_author_type GET /panel/personal_book/back_end/book_author_types/:id(.:format) panel/personal_book/back_end/book_author_types#show + PUT /panel/personal_book/back_end/book_author_types/:id(.:format) panel/personal_book/back_end/book_author_types#update + DELETE /panel/personal_book/back_end/book_author_types/:id(.:format) panel/personal_book/back_end/book_author_types#destroy + panel_personal_book_back_end_tags GET /panel/personal_book/back_end/tags(.:format) panel/personal_book/back_end/tags#index + POST /panel/personal_book/back_end/tags(.:format) panel/personal_book/back_end/tags#create + new_panel_personal_book_back_end_tag GET /panel/personal_book/back_end/tags/new(.:format) panel/personal_book/back_end/tags#new + edit_panel_personal_book_back_end_tag GET /panel/personal_book/back_end/tags/:id/edit(.:format) panel/personal_book/back_end/tags#edit + panel_personal_book_back_end_tag GET /panel/personal_book/back_end/tags/:id(.:format) panel/personal_book/back_end/tags#show + PUT /panel/personal_book/back_end/tags/:id(.:format) panel/personal_book/back_end/tags#update + DELETE /panel/personal_book/back_end/tags/:id(.:format) panel/personal_book/back_end/tags#destroy + panel_personal_book_front_end_writing_books GET /panel/personal_book/front_end/writing_books(.:format) panel/personal_book/front_end/writing_books#index + POST /panel/personal_book/front_end/writing_books(.:format) panel/personal_book/front_end/writing_books#create + new_panel_personal_book_front_end_writing_book GET /panel/personal_book/front_end/writing_books/new(.:format) panel/personal_book/front_end/writing_books#new + edit_panel_personal_book_front_end_writing_book GET /panel/personal_book/front_end/writing_books/:id/edit(.:format) panel/personal_book/front_end/writing_books#edit + panel_personal_book_front_end_writing_book GET /panel/personal_book/front_end/writing_books/:id(.:format) panel/personal_book/front_end/writing_books#show + PUT /panel/personal_book/front_end/writing_books/:id(.:format) panel/personal_book/front_end/writing_books#update + DELETE /panel/personal_book/front_end/writing_books/:id(.:format) panel/personal_book/front_end/writing_books#destroy + panel_personal_book_plugin_writing_books GET /panel/personal_book/plugin/writing_books(.:format) panel/personal_book/plugin/writing_books#index + POST /panel/personal_book/plugin/writing_books(.:format) panel/personal_book/plugin/writing_books#create + new_panel_personal_book_plugin_writing_book GET /panel/personal_book/plugin/writing_books/new(.:format) panel/personal_book/plugin/writing_books#new + edit_panel_personal_book_plugin_writing_book GET /panel/personal_book/plugin/writing_books/:id/edit(.:format) panel/personal_book/plugin/writing_books#edit + panel_personal_book_plugin_writing_book GET /panel/personal_book/plugin/writing_books/:id(.:format) panel/personal_book/plugin/writing_books#show + PUT /panel/personal_book/plugin/writing_books/:id(.:format) panel/personal_book/plugin/writing_books#update + DELETE /panel/personal_book/plugin/writing_books/:id(.:format) panel/personal_book/plugin/writing_books#destroy + panel_personal_book_widget_writing_books /panel/personal_book/widget/writing_books(.:format) panel/personal_book/widget/writing_books#index + panel_personal_book_widget_home_list /panel/personal_book/widget/home_list(.:format) panel/personal_book/widget/writing_books#home_list + panel_personal_book_widget_reload_writing_books /panel/personal_book/widget/reload_writing_books(.:format) panel/personal_book/widget/writing_books#reload_writing_books + /appfront/*path(.:format) :controller#:action + panel_page_content_back_end_root /panel/page_content/back_end(.:format) panel/page_content/back_end/page_contexts#index + panel_page_content_back_end_page_contexts GET /panel/page_content/back_end/page_contexts(.:format) panel/page_content/back_end/page_contexts#index + POST /panel/page_content/back_end/page_contexts(.:format) panel/page_content/back_end/page_contexts#create + new_panel_page_content_back_end_page_context GET /panel/page_content/back_end/page_contexts/new(.:format) panel/page_content/back_end/page_contexts#new + edit_panel_page_content_back_end_page_context GET /panel/page_content/back_end/page_contexts/:id/edit(.:format) panel/page_content/back_end/page_contexts#edit + panel_page_content_back_end_page_context GET /panel/page_content/back_end/page_contexts/:id(.:format) panel/page_content/back_end/page_contexts#show + PUT /panel/page_content/back_end/page_contexts/:id(.:format) panel/page_content/back_end/page_contexts#update + DELETE /panel/page_content/back_end/page_contexts/:id(.:format) panel/page_content/back_end/page_contexts#destroy + panel_page_content_back_end_view /panel/page_content/back_end/view/:page_id(.:format) panel/page_content/back_end/page_contexts#view + panel_page_content_front_end_root /panel/page_content/front_end(.:format) panel/page_content/front_end/page_contexts#index + panel_page_content_front_end_page_contexts GET /panel/page_content/front_end/page_contexts(.:format) panel/page_content/front_end/page_contexts#index + POST /panel/page_content/front_end/page_contexts(.:format) panel/page_content/front_end/page_contexts#create + new_panel_page_content_front_end_page_context GET /panel/page_content/front_end/page_contexts/new(.:format) panel/page_content/front_end/page_contexts#new + edit_panel_page_content_front_end_page_context GET /panel/page_content/front_end/page_contexts/:id/edit(.:format) panel/page_content/front_end/page_contexts#edit + panel_page_content_front_end_page_context GET /panel/page_content/front_end/page_contexts/:id(.:format) panel/page_content/front_end/page_contexts#show + PUT /panel/page_content/front_end/page_contexts/:id(.:format) panel/page_content/front_end/page_contexts#update + DELETE /panel/page_content/front_end/page_contexts/:id(.:format) panel/page_content/front_end/page_contexts#destroy + panel_page_content_front_end /panel/page_content/front_end/page_contexts/:page_id(.:format) panel/page_content/front_end/page_contexts#index + /appfront/*path(.:format) :controller#:action + panel_location_back_end_locations_get_locations /panel/location/back_end/locations/get_locations(.:format) panel/location/back_end/locations#get_locations + panel_location_back_end_locations GET /panel/location/back_end/locations(.:format) panel/location/back_end/locations#index + POST /panel/location/back_end/locations(.:format) panel/location/back_end/locations#create + new_panel_location_back_end_location GET /panel/location/back_end/locations/new(.:format) panel/location/back_end/locations#new + edit_panel_location_back_end_location GET /panel/location/back_end/locations/:id/edit(.:format) panel/location/back_end/locations#edit + panel_location_back_end_location GET /panel/location/back_end/locations/:id(.:format) panel/location/back_end/locations#show + PUT /panel/location/back_end/locations/:id(.:format) panel/location/back_end/locations#update + DELETE /panel/location/back_end/locations/:id(.:format) panel/location/back_end/locations#destroy + panel_gallery_back_end_get_albums /panel/gallery/back_end/get_albums(.:format) panel/gallery/back_end/albums#get_albums + panel_gallery_back_end_upload_image /panel/gallery/back_end/upload_image(.:format) panel/gallery/back_end/albums#upload_image + panel_gallery_back_end_save_tags /panel/gallery/back_end/save_tags(.:format) panel/gallery/back_end/tags#save_tags + panel_gallery_back_end_albums_save_tags /panel/gallery/back_end/albums/save_tags(.:format) panel/gallery/back_end/tags#save_tags + panel_gallery_back_end_album_set_cover /panel/gallery/back_end/albums/:album_id/set_cover(.:format) panel/gallery/back_end/albums#set_cover + panel_gallery_back_end_album_imgs /panel/gallery/back_end/albums/:album_id/imgs(.:format) panel/gallery/back_end/albums#imgs + panel_gallery_back_end_album_upload_panel /panel/gallery/back_end/albums/:album_id/upload_panel(.:format) panel/gallery/back_end/albums#upload_panel + panel_gallery_back_end_album_images_tags /panel/gallery/back_end/albums/:album_id/images_tags(.:format) panel/gallery/back_end/albums#images_tags + panel_gallery_back_end_album_get_imgs_json /panel/gallery/back_end/albums/:album_id/get_imgs_json(.:format) panel/gallery/back_end/albums#get_imgs_json + get_album_json_panel_gallery_back_end_albums GET /panel/gallery/back_end/albums/get_album_json(.:format) panel/gallery/back_end/albums#get_album_json + panel_gallery_back_end_albums GET /panel/gallery/back_end/albums(.:format) panel/gallery/back_end/albums#index + POST /panel/gallery/back_end/albums(.:format) panel/gallery/back_end/albums#create + new_panel_gallery_back_end_album GET /panel/gallery/back_end/albums/new(.:format) panel/gallery/back_end/albums#new + edit_panel_gallery_back_end_album GET /panel/gallery/back_end/albums/:id/edit(.:format) panel/gallery/back_end/albums#edit + panel_gallery_back_end_album GET /panel/gallery/back_end/albums/:id(.:format) panel/gallery/back_end/albums#show + PUT /panel/gallery/back_end/albums/:id(.:format) panel/gallery/back_end/albums#update + DELETE /panel/gallery/back_end/albums/:id(.:format) panel/gallery/back_end/albums#destroy + panel_gallery_back_end /panel/gallery/back_end/album_images/#!/:id(.:format) panel/gallery/back_end/album_images#show + panel_gallery_back_end_album_images GET /panel/gallery/back_end/album_images(.:format) panel/gallery/back_end/album_images#index + POST /panel/gallery/back_end/album_images(.:format) panel/gallery/back_end/album_images#create + new_panel_gallery_back_end_album_image GET /panel/gallery/back_end/album_images/new(.:format) panel/gallery/back_end/album_images#new + edit_panel_gallery_back_end_album_image GET /panel/gallery/back_end/album_images/:id/edit(.:format) panel/gallery/back_end/album_images#edit + panel_gallery_back_end_album_image GET /panel/gallery/back_end/album_images/:id(.:format) panel/gallery/back_end/album_images#show + PUT /panel/gallery/back_end/album_images/:id(.:format) panel/gallery/back_end/album_images#update + DELETE /panel/gallery/back_end/album_images/:id(.:format) panel/gallery/back_end/album_images#destroy + panel_gallery_back_end_gallery_categories GET /panel/gallery/back_end/gallery_categories(.:format) panel/gallery/back_end/gallery_categories#index + POST /panel/gallery/back_end/gallery_categories(.:format) panel/gallery/back_end/gallery_categories#create + new_panel_gallery_back_end_gallery_category GET /panel/gallery/back_end/gallery_categories/new(.:format) panel/gallery/back_end/gallery_categories#new + edit_panel_gallery_back_end_gallery_category GET /panel/gallery/back_end/gallery_categories/:id/edit(.:format) panel/gallery/back_end/gallery_categories#edit + panel_gallery_back_end_gallery_category GET /panel/gallery/back_end/gallery_categories/:id(.:format) panel/gallery/back_end/gallery_categories#show + PUT /panel/gallery/back_end/gallery_categories/:id(.:format) panel/gallery/back_end/gallery_categories#update + DELETE /panel/gallery/back_end/gallery_categories/:id(.:format) panel/gallery/back_end/gallery_categories#destroy + panel_gallery_back_end_tags GET /panel/gallery/back_end/tags(.:format) panel/gallery/back_end/tags#index + POST /panel/gallery/back_end/tags(.:format) panel/gallery/back_end/tags#create + new_panel_gallery_back_end_tag GET /panel/gallery/back_end/tags/new(.:format) panel/gallery/back_end/tags#new + edit_panel_gallery_back_end_tag GET /panel/gallery/back_end/tags/:id/edit(.:format) panel/gallery/back_end/tags#edit + panel_gallery_back_end_tag GET /panel/gallery/back_end/tags/:id(.:format) panel/gallery/back_end/tags#show + PUT /panel/gallery/back_end/tags/:id(.:format) panel/gallery/back_end/tags#update + DELETE /panel/gallery/back_end/tags/:id(.:format) panel/gallery/back_end/tags#destroy + panel_gallery_front_end_orbit_galleries /panel/gallery/front_end/orbit_galleries(.:format) panel/gallery/front_end/orbit_galleries#index + panel_gallery_front_end_get_albums /panel/gallery/front_end/get_albums(.:format) panel/gallery/front_end/albums#get_albums + imgs_panel_gallery_front_end_album GET /panel/gallery/front_end/albums/:id/imgs(.:format) panel/gallery/front_end/albums#imgs + theater_panel_gallery_front_end_album GET /panel/gallery/front_end/albums/:id/theater(.:format) panel/gallery/front_end/albums#theater + panel_gallery_front_end_albums GET /panel/gallery/front_end/albums(.:format) panel/gallery/front_end/albums#index + POST /panel/gallery/front_end/albums(.:format) panel/gallery/front_end/albums#create + new_panel_gallery_front_end_album GET /panel/gallery/front_end/albums/new(.:format) panel/gallery/front_end/albums#new + edit_panel_gallery_front_end_album GET /panel/gallery/front_end/albums/:id/edit(.:format) panel/gallery/front_end/albums#edit + panel_gallery_front_end_album GET /panel/gallery/front_end/albums/:id(.:format) panel/gallery/front_end/albums#show + PUT /panel/gallery/front_end/albums/:id(.:format) panel/gallery/front_end/albums#update + DELETE /panel/gallery/front_end/albums/:id(.:format) panel/gallery/front_end/albums#destroy + panel_gallery_front_end_album_images GET /panel/gallery/front_end/album_images(.:format) panel/gallery/front_end/album_images#index + POST /panel/gallery/front_end/album_images(.:format) panel/gallery/front_end/album_images#create + new_panel_gallery_front_end_album_image GET /panel/gallery/front_end/album_images/new(.:format) panel/gallery/front_end/album_images#new + edit_panel_gallery_front_end_album_image GET /panel/gallery/front_end/album_images/:id/edit(.:format) panel/gallery/front_end/album_images#edit + panel_gallery_front_end_album_image GET /panel/gallery/front_end/album_images/:id(.:format) panel/gallery/front_end/album_images#show + PUT /panel/gallery/front_end/album_images/:id(.:format) panel/gallery/front_end/album_images#update + DELETE /panel/gallery/front_end/album_images/:id(.:format) panel/gallery/front_end/album_images#destroy + panel_gallery_widget_widget1 /panel/gallery/widget/widget1(.:format) panel/gallery/widget/albums#widget1 + panel_calendar_back_end_cals_agenda_view GET /panel/calendar/back_end/cals/agenda_view(.:format) panel/calendar/back_end/cals#agenda_view + panel_calendar_back_end_cals_month_view GET /panel/calendar/back_end/cals/month_view(.:format) panel/calendar/back_end/cals#month_view + panel_calendar_back_end_cals_day_view GET /panel/calendar/back_end/cals/day_view(.:format) panel/calendar/back_end/cals#day_view + panel_calendar_back_end_cals_week_view GET /panel/calendar/back_end/cals/week_view(.:format) panel/calendar/back_end/cals#week_view + panel_calendar_back_end_cals_getMonthEvents GET /panel/calendar/back_end/cals/getMonthEvents(.:format) panel/calendar/back_end/cals#get_month_events + panel_calendar_back_end_cals_getWeekEvents GET /panel/calendar/back_end/cals/getWeekEvents(.:format) panel/calendar/back_end/cals#get_week_events + panel_calendar_back_end_cals_getDayEvents GET /panel/calendar/back_end/cals/getDayEvents(.:format) panel/calendar/back_end/cals#get_day_events + panel_calendar_back_end_cals GET /panel/calendar/back_end/cals(.:format) panel/calendar/back_end/cals#index + POST /panel/calendar/back_end/cals(.:format) panel/calendar/back_end/cals#create + new_panel_calendar_back_end_cal GET /panel/calendar/back_end/cals/new(.:format) panel/calendar/back_end/cals#new + edit_panel_calendar_back_end_cal GET /panel/calendar/back_end/cals/:id/edit(.:format) panel/calendar/back_end/cals#edit + panel_calendar_back_end_cal GET /panel/calendar/back_end/cals/:id(.:format) panel/calendar/back_end/cals#show + PUT /panel/calendar/back_end/cals/:id(.:format) panel/calendar/back_end/cals#update + DELETE /panel/calendar/back_end/cals/:id(.:format) panel/calendar/back_end/cals#destroy + panel_calendar_back_end_events GET /panel/calendar/back_end/events(.:format) panel/calendar/back_end/events#index + POST /panel/calendar/back_end/events(.:format) panel/calendar/back_end/events#create + new_panel_calendar_back_end_event GET /panel/calendar/back_end/events/new(.:format) panel/calendar/back_end/events#new + edit_panel_calendar_back_end_event GET /panel/calendar/back_end/events/:id/edit(.:format) panel/calendar/back_end/events#edit + panel_calendar_back_end_event GET /panel/calendar/back_end/events/:id(.:format) panel/calendar/back_end/events#show + PUT /panel/calendar/back_end/events/:id(.:format) panel/calendar/back_end/events#update + DELETE /panel/calendar/back_end/events/:id(.:format) panel/calendar/back_end/events#destroy + panel_calendar_back_end_tags GET /panel/calendar/back_end/tags(.:format) panel/calendar/back_end/tags#index + POST /panel/calendar/back_end/tags(.:format) panel/calendar/back_end/tags#create + new_panel_calendar_back_end_tag GET /panel/calendar/back_end/tags/new(.:format) panel/calendar/back_end/tags#new + edit_panel_calendar_back_end_tag GET /panel/calendar/back_end/tags/:id/edit(.:format) panel/calendar/back_end/tags#edit + panel_calendar_back_end_tag GET /panel/calendar/back_end/tags/:id(.:format) panel/calendar/back_end/tags#show + PUT /panel/calendar/back_end/tags/:id(.:format) panel/calendar/back_end/tags#update + DELETE /panel/calendar/back_end/tags/:id(.:format) panel/calendar/back_end/tags#destroy + panel_archive_back_end_root /panel/archive/back_end(.:format) panel/archive/back_end/archive_files#index + panel_archive_back_end_archive_files GET /panel/archive/back_end/archive_files(.:format) panel/archive/back_end/archive_files#index + POST /panel/archive/back_end/archive_files(.:format) panel/archive/back_end/archive_files#create + new_panel_archive_back_end_archive_file GET /panel/archive/back_end/archive_files/new(.:format) panel/archive/back_end/archive_files#new + edit_panel_archive_back_end_archive_file GET /panel/archive/back_end/archive_files/:id/edit(.:format) panel/archive/back_end/archive_files#edit + panel_archive_back_end_archive_file GET /panel/archive/back_end/archive_files/:id(.:format) panel/archive/back_end/archive_files#show + PUT /panel/archive/back_end/archive_files/:id(.:format) panel/archive/back_end/archive_files#update + DELETE /panel/archive/back_end/archive_files/:id(.:format) panel/archive/back_end/archive_files#destroy + panel_archive_back_end_archive_file_categorys GET /panel/archive/back_end/archive_file_categorys(.:format) panel/archive/back_end/archive_file_categorys#index + POST /panel/archive/back_end/archive_file_categorys(.:format) panel/archive/back_end/archive_file_categorys#create + new_panel_archive_back_end_archive_file_category GET /panel/archive/back_end/archive_file_categorys/new(.:format) panel/archive/back_end/archive_file_categorys#new + edit_panel_archive_back_end_archive_file_category GET /panel/archive/back_end/archive_file_categorys/:id/edit(.:format) panel/archive/back_end/archive_file_categorys#edit + panel_archive_back_end_archive_file_category GET /panel/archive/back_end/archive_file_categorys/:id(.:format) panel/archive/back_end/archive_file_categorys#show + PUT /panel/archive/back_end/archive_file_categorys/:id(.:format) panel/archive/back_end/archive_file_categorys#update + DELETE /panel/archive/back_end/archive_file_categorys/:id(.:format) panel/archive/back_end/archive_file_categorys#destroy + panel_archive_back_end_tags GET /panel/archive/back_end/tags(.:format) panel/archive/back_end/tags#index + POST /panel/archive/back_end/tags(.:format) panel/archive/back_end/tags#create + new_panel_archive_back_end_tag GET /panel/archive/back_end/tags/new(.:format) panel/archive/back_end/tags#new + edit_panel_archive_back_end_tag GET /panel/archive/back_end/tags/:id/edit(.:format) panel/archive/back_end/tags#edit + panel_archive_back_end_tag GET /panel/archive/back_end/tags/:id(.:format) panel/archive/back_end/tags#show + PUT /panel/archive/back_end/tags/:id(.:format) panel/archive/back_end/tags#update + DELETE /panel/archive/back_end/tags/:id(.:format) panel/archive/back_end/tags#destroy + panel_archive_front_end_root /panel/archive/front_end(.:format) panel/archive/front_end/archive_files#index + panel_archive_front_end_archive_files GET /panel/archive/front_end/archive_files(.:format) panel/archive/front_end/archive_files#index + POST /panel/archive/front_end/archive_files(.:format) panel/archive/front_end/archive_files#create + new_panel_archive_front_end_archive_file GET /panel/archive/front_end/archive_files/new(.:format) panel/archive/front_end/archive_files#new + edit_panel_archive_front_end_archive_file GET /panel/archive/front_end/archive_files/:id/edit(.:format) panel/archive/front_end/archive_files#edit + panel_archive_front_end_archive_file GET /panel/archive/front_end/archive_files/:id(.:format) panel/archive/front_end/archive_files#show + PUT /panel/archive/front_end/archive_files/:id(.:format) panel/archive/front_end/archive_files#update + DELETE /panel/archive/front_end/archive_files/:id(.:format) panel/archive/front_end/archive_files#destroy + panel_archive_widget_archive_files /panel/archive/widget/archive_files(.:format) panel/archive/widget/archive_files#index + panel_archive_widget_reload_archive_files /panel/archive/widget/reload_archive_files(.:format) panel/archive/widget/archive_files#reload_archive_files + /appfront/*path(.:format) :controller#:action + panel_announcement_back_end_public /panel/announcement/back_end/public(.:format) panel/announcement/back_end/announcements#public + panel_announcement_back_end_approval_setting GET /panel/announcement/back_end/approval_setting(.:format) panel/announcement/back_end/approvals#setting + panel_announcement_back_end_approval_setting POST /panel/announcement/back_end/approval_setting(.:format) panel/announcement/back_end/approvals#update_setting + panel_announcement_back_end_approval_user_list PUT /panel/announcement/back_end/approval_setting(.:format) panel/announcement/back_end/approvals#user_list + panel_announcement_back_end_bulletin_approval_preview PUT /panel/announcement/back_end/bulletins/:bulletin_id/approve/:bulletin_id(.:format) panel/announcement/back_end/approvals#preview_and_approve + panel_announcement_back_end_bulletin_approve POST /panel/announcement/back_end/bulletins/:bulletin_id/approve/:bulletin_id(.:format) panel/announcement/back_end/approvals#approve + panel_announcement_back_end_bulletin_link_quick_add /panel/announcement/back_end/bulletins/:bulletin_id/link_quick_add/:bulletin_id(.:format) panel/announcement/back_end/bulletins#link_quick_add + panel_announcement_back_end_bulletin_link_quick_edit /panel/announcement/back_end/bulletins/:bulletin_id/link_quick_edit/:bulletin_id(.:format) panel/announcement/back_end/bulletins#link_quick_edit + load_quick_edit_panel_announcement_back_end_bulletin GET /panel/announcement/back_end/bulletins/:id/load_quick_edit(.:format) panel/announcement/back_end/bulletins#load_quick_edit + preview_panel_announcement_back_end_bulletins POST /panel/announcement/back_end/bulletins/preview(.:format) panel/announcement/back_end/bulletins#preview + PUT /panel/announcement/back_end/bulletins/preview(.:format) panel/announcement/back_end/bulletins#preview + delete_panel_announcement_back_end_bulletins GET /panel/announcement/back_end/bulletins/delete(.:format) panel/announcement/back_end/bulletins#delete + panel_announcement_back_end_bulletin_file_quick_add /panel/announcement/back_end/bulletins/:bulletin_id/file_quick_add/:bulletin_id(.:format) panel/announcement/back_end/bulletins#file_quick_add + panel_announcement_back_end_bulletin_file_quick_edit /panel/announcement/back_end/bulletins/:bulletin_id/file_quick_edit/:bulletin_id(.:format) panel/announcement/back_end/bulletins#file_quick_edit + panel_announcement_back_end_bulletins GET /panel/announcement/back_end/bulletins(.:format) panel/announcement/back_end/bulletins#index + POST /panel/announcement/back_end/bulletins(.:format) panel/announcement/back_end/bulletins#create + new_panel_announcement_back_end_bulletin GET /panel/announcement/back_end/bulletins/new(.:format) panel/announcement/back_end/bulletins#new + edit_panel_announcement_back_end_bulletin GET /panel/announcement/back_end/bulletins/:id/edit(.:format) panel/announcement/back_end/bulletins#edit + panel_announcement_back_end_bulletin GET /panel/announcement/back_end/bulletins/:id(.:format) panel/announcement/back_end/bulletins#show + PUT /panel/announcement/back_end/bulletins/:id(.:format) panel/announcement/back_end/bulletins#update + DELETE /panel/announcement/back_end/bulletins/:id(.:format) panel/announcement/back_end/bulletins#destroy + get_categorys_json_panel_announcement_back_end_bulletin_categorys GET /panel/announcement/back_end/bulletin_categorys/get_categorys_json(.:format) panel/announcement/back_end/bulletin_categorys#get_categorys_json + panel_announcement_back_end_bulletin_categorys GET /panel/announcement/back_end/bulletin_categorys(.:format) panel/announcement/back_end/bulletin_categorys#index + POST /panel/announcement/back_end/bulletin_categorys(.:format) panel/announcement/back_end/bulletin_categorys#create + new_panel_announcement_back_end_bulletin_category GET /panel/announcement/back_end/bulletin_categorys/new(.:format) panel/announcement/back_end/bulletin_categorys#new + edit_panel_announcement_back_end_bulletin_category GET /panel/announcement/back_end/bulletin_categorys/:id/edit(.:format) panel/announcement/back_end/bulletin_categorys#edit + panel_announcement_back_end_bulletin_category GET /panel/announcement/back_end/bulletin_categorys/:id(.:format) panel/announcement/back_end/bulletin_categorys#show + PUT /panel/announcement/back_end/bulletin_categorys/:id(.:format) panel/announcement/back_end/bulletin_categorys#update + DELETE /panel/announcement/back_end/bulletin_categorys/:id(.:format) panel/announcement/back_end/bulletin_categorys#destroy + panel_announcement_back_end_bulletin_link_link_quick_edit /panel/announcement/back_end/bulletin_links/:bulletin_link_id/link_quick_edit/:bulletin_link_id(.:format) panel/announcement/back_end/bulletin_links#link_quick_edit + panel_announcement_back_end_bulletin_links GET /panel/announcement/back_end/bulletin_links(.:format) panel/announcement/back_end/bulletin_links#index + POST /panel/announcement/back_end/bulletin_links(.:format) panel/announcement/back_end/bulletin_links#create + new_panel_announcement_back_end_bulletin_link GET /panel/announcement/back_end/bulletin_links/new(.:format) panel/announcement/back_end/bulletin_links#new + edit_panel_announcement_back_end_bulletin_link GET /panel/announcement/back_end/bulletin_links/:id/edit(.:format) panel/announcement/back_end/bulletin_links#edit + panel_announcement_back_end_bulletin_link GET /panel/announcement/back_end/bulletin_links/:id(.:format) panel/announcement/back_end/bulletin_links#show + PUT /panel/announcement/back_end/bulletin_links/:id(.:format) panel/announcement/back_end/bulletin_links#update + DELETE /panel/announcement/back_end/bulletin_links/:id(.:format) panel/announcement/back_end/bulletin_links#destroy + panel_announcement_back_end_bulletin_file_file_quick_edit /panel/announcement/back_end/bulletin_files/:bulletin_file_id/file_quick_edit/:bulletin_file_id(.:format) panel/announcement/back_end/bulletin_files#file_quick_edit + panel_announcement_back_end_bulletin_files GET /panel/announcement/back_end/bulletin_files(.:format) panel/announcement/back_end/bulletin_files#index + POST /panel/announcement/back_end/bulletin_files(.:format) panel/announcement/back_end/bulletin_files#create + new_panel_announcement_back_end_bulletin_file GET /panel/announcement/back_end/bulletin_files/new(.:format) panel/announcement/back_end/bulletin_files#new + edit_panel_announcement_back_end_bulletin_file GET /panel/announcement/back_end/bulletin_files/:id/edit(.:format) panel/announcement/back_end/bulletin_files#edit + panel_announcement_back_end_bulletin_file GET /panel/announcement/back_end/bulletin_files/:id(.:format) panel/announcement/back_end/bulletin_files#show + PUT /panel/announcement/back_end/bulletin_files/:id(.:format) panel/announcement/back_end/bulletin_files#update + DELETE /panel/announcement/back_end/bulletin_files/:id(.:format) panel/announcement/back_end/bulletin_files#destroy + panel_announcement_back_end_tags GET /panel/announcement/back_end/tags(.:format) panel/announcement/back_end/tags#index + POST /panel/announcement/back_end/tags(.:format) panel/announcement/back_end/tags#create + new_panel_announcement_back_end_tag GET /panel/announcement/back_end/tags/new(.:format) panel/announcement/back_end/tags#new + edit_panel_announcement_back_end_tag GET /panel/announcement/back_end/tags/:id/edit(.:format) panel/announcement/back_end/tags#edit + panel_announcement_back_end_tag GET /panel/announcement/back_end/tags/:id(.:format) panel/announcement/back_end/tags#show + PUT /panel/announcement/back_end/tags/:id(.:format) panel/announcement/back_end/tags#update + DELETE /panel/announcement/back_end/tags/:id(.:format) panel/announcement/back_end/tags#destroy + panel_announcement_front_end_index_bulletins_by_unit /panel/announcement/front_end/index_by_unit(.:format) panel/announcement/front_end/bulletins#index_bulletins_by_unit + panel_announcement_front_end_bulletins GET /panel/announcement/front_end/bulletins(.:format) panel/announcement/front_end/bulletins#index + POST /panel/announcement/front_end/bulletins(.:format) panel/announcement/front_end/bulletins#create + new_panel_announcement_front_end_bulletin GET /panel/announcement/front_end/bulletins/new(.:format) panel/announcement/front_end/bulletins#new + edit_panel_announcement_front_end_bulletin GET /panel/announcement/front_end/bulletins/:id/edit(.:format) panel/announcement/front_end/bulletins#edit + panel_announcement_front_end_bulletin GET /panel/announcement/front_end/bulletins/:id(.:format) panel/announcement/front_end/bulletins#show + PUT /panel/announcement/front_end/bulletins/:id(.:format) panel/announcement/front_end/bulletins#update + DELETE /panel/announcement/front_end/bulletins/:id(.:format) panel/announcement/front_end/bulletins#destroy + panel_announcement_widget_index /panel/announcement/widget/index(.:format) panel/announcement/widget/bulletins#index + panel_announcement_widget_bulletins_and_web_links /panel/announcement/widget/bulletins_and_web_links(.:format) panel/announcement/widget/bulletins#bulletins_and_web_links + panel_announcement_widget_reload_bulletins /panel/announcement/widget/reload_bulletins(.:format) panel/announcement/widget/bulletins#reload_bulletins + panel_announcement_widget_reload_web_links /panel/announcement/widget/reload_web_links(.:format) panel/announcement/widget/bulletins#reload_web_links + panel_announcement_widget_bulletins_side_bar /panel/announcement/widget/bulletins_side_bar(.:format) panel/announcement/widget/bulletins#bulletins_side_bar + panel_announcement_widget_bulletins_search_block /panel/announcement/widget/bulletins_search_block(.:format) panel/announcement/widget/bulletins#bulletins_search_block diff --git a/vendor/built_in_modules/ad_banner/init.rb b/vendor/built_in_modules/ad_banner/init.rb new file mode 100644 index 00000000..4a9aafba --- /dev/null +++ b/vendor/built_in_modules/ad_banner/init.rb @@ -0,0 +1,49 @@ +module AdBanner + OrbitApp.registration "AdBanner",:type=> 'ModuleApp' do + module_label 'miss_module_i18n.ad_banner' + base_url File.expand_path File.dirname(__FILE__) + # personal_plugin :enable => true,:path=>"panel/ad_banner/plugin/profile",:i18n=>'admin.ad_banner' + + version "0.1" + organization "Rulingcom" + author "RD dep" + intro "I am intro" + update_info 'some update_info' + + # front_end do + # app_page 'bulletins' + # end + + # category ["BulletinCategory"] + + # widgets do + # # default_widget do + # # query 'Bulletin.all' + # # image :image + # # end + + # # categories_query 'BulletinCategory.all' + # # tags_query 'AdBannerTag.all' + + # # customize_widget "index","ad_banner.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","ad_banner.widget.bulletins_and_web_links" + + # # item "index","ad_banner.widget.index",:default_template=>true,:fields=>["title","category","postdate"] + # # item "bulletins_and_web_links","ad_banner.widget.bulletins_and_web_links" + # end + + side_bar do + head_label_i18n 'admin.ad_banner',:icon_class=>"icons-landscape" + available_for [:admin,:guest,:manager,:sub_manager] + active_for_controllers ({:public=>['admin/ad_banners', 'admin/ad_images']}) + + head_link_path "admin_ad_banners_path" + + context_link 'module_authorization', + :link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'AdBanner'}))", + :priority=>6, + :active_for_app_auth => 'ad_banners', + :available_for => [:admin] + end + end +end diff --git a/vendor/built_in_modules/announcement/announcement.json b/vendor/built_in_modules/announcement/announcement.json index 191fbd7d..15d129a4 100644 --- a/vendor/built_in_modules/announcement/announcement.json +++ b/vendor/built_in_modules/announcement/announcement.json @@ -1,17 +1,24 @@ -{ - "title": "announcement", - "version": "0.1", - "organization": "Rulingcom", - "author": "RD dep", - "intro": "A simple blog……", - "update_info": "Some info", - "create_date": "11-11-2011", - "app_pages": ["bulletins"], - "widgets": { - "index":["1","2","3","4","5"], - "bulletins_and_web_links":[] - }, - "category": ["BulletinCategory"], - "widget_fields":["title","category","postdate"], - "enable_frontend": true -} + { +"app_pages":["bulletins"], +"author":"RD dep", +"create_date":"11-11-2011", +"enable_frontend":true, +"get_default_widget":{"query":"Bulletin.all","image":"image"}, +"intro":"A simple blog", +"key":"announcement", +"organization":"Rulingcom", +"title":"Announcement", +"update_info":"Some info", +"version":"0.1", +"widget_fields":[["title","announcement.default_widget.title"], + ["bulletin_category_with_title","announcement.default_widget.bulletin_category_with_title"], + ["postdate","announcement.default_widget.postdate"]], + "widget_fields_link_method":{"title":{"method":"panel_announcement_front_end_bulletin_path","args":"self"}, + "bulletin_category_with_title":{"method":"panel_announcement_front_end_bulletins_path", + "args":{"category_id":["bulletin_category","id"]} + }}, +"widget_options":null, +"widget_options_fields_i18n":null, +"widgets":{"index":["1","2"], +"default_widget":["typeA","typeC","typeB_style2","typeB_style3","typeB_style4"] +}} \ No newline at end of file diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb index 1802db62..91f458c8 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb @@ -1,7 +1,20 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendController include OrbitControllerLib::DivisionForDisable - # if someone want to use json format replace with rss, please add :get_bulletins_json to below - before_filter :for_app_manager,:except => [:index,:get_categorys_json] + +# <<<<<<< HEAD +# before_filter :for_app_manager,:except => [:index,:get_categorys_json] +# before_filter :set_module_app + +# def set_module_app +# @module_app = ModuleApp.where(:title=>'Announcement').first +# end +# ======= + 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") diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/widget/bulletins_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/widget/bulletins_controller.rb index 622944a0..c8d32827 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/widget/bulletins_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/widget/bulletins_controller.rb @@ -70,13 +70,6 @@ class Panel::Announcement::Widget::BulletinsController < OrbitWidgetController end - def bulletins_and_web_links - @tags = AnnouncementTag.any_in(key: ['students', 'alumni', 'employee', 'guest']).asc(:order) - @selected_tag = AnnouncementTag.find(params[:id]) rescue @tags[0] - @bulletins = @selected_tag.get_visible_bulletins(:postdate).available_for_lang(I18n.locale).can_display.page(params[:page]).per(5) rescue nil - @web_links = WebResourceTag.first(:conditions => {:en => @selected_tag[:en]}).get_visible_links(:created_at).available_for_lang(I18n.locale).page(params[:page]).per(5) rescue nil - end - def reload_bulletins @selected_tag = AnnouncementTag.find(params[:tag_id]) @bulletins = @selected_tag.get_visible_bulletins(:postdate).available_for_lang(I18n.locale).can_display.page(params[:page]).per(5) rescue nil diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/widget/bulletins/bulletins_and_web_links.html.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/widget/bulletins/bulletins_and_web_links.html.erb deleted file mode 100644 index a902c6d1..00000000 --- a/vendor/built_in_modules/announcement/app/views/panel/announcement/widget/bulletins/bulletins_and_web_links.html.erb +++ /dev/null @@ -1,23 +0,0 @@ -
- -
- -
-

<%= link_to t("announcement.bulletins"), panel_announcement_front_end_bulletins_path, :class => 'more' %>

- -
- - - -<% content_for :page_specific_javascript do %> - <%= javascript_include_tag "news_link" %> -<% end %> \ No newline at end of file diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/widget/bulletins/bulletins_and_web_links.js.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/widget/bulletins/bulletins_and_web_links.js.erb deleted file mode 100644 index 9439ce4d..00000000 --- a/vendor/built_in_modules/announcement/app/views/panel/announcement/widget/bulletins/bulletins_and_web_links.js.erb +++ /dev/null @@ -1,3 +0,0 @@ -$('#bulletins_web_links_tags').html("<%= j render :partial => 'tag', :collection => @tags %>") -$('#bulletins_web_links_bulletins').html("<%= j render 'bulletins' if @bulletins %>") -$('#bulletins_web_links_web_links').html("<%= j render 'web_links' if @web_links %>") \ No newline at end of file diff --git a/vendor/built_in_modules/announcement/config/locales/zh_tw.yml b/vendor/built_in_modules/announcement/config/locales/zh_tw.yml index cf2de141..995bf2f5 100644 --- a/vendor/built_in_modules/announcement/config/locales/zh_tw.yml +++ b/vendor/built_in_modules/announcement/config/locales/zh_tw.yml @@ -11,10 +11,21 @@ zh_tw: editing_announcement_category: 編輯公告類別 error: no_avilb_cate_for_posting: 公告必需有一個類別才能發送,請與管理員聯絡 + front_end: + bulletins: 請LIN給名字前台頁 new_bulletin_category: 新增公告類別 search: 搜尋公告 update_bulletin_success: 公告已成功更新 update_bulletin_category_success: 公告類別已成功更新 + widget: + index: 目錄Widget + bulletins_and_web_links: 公告與連結並排Widget + #init don't merge + all_articles: 全部公告 + add_new: 新增 + categories: 分類 + approval_setting: 審核權限 + tags: 標籤 default_widget: bulletin_category_with_title: 分類 title: 標題 diff --git a/vendor/built_in_modules/announcement/init.rb b/vendor/built_in_modules/announcement/init.rb index 4ae40c3f..77b696be 100644 --- a/vendor/built_in_modules/announcement/init.rb +++ b/vendor/built_in_modules/announcement/init.rb @@ -1,25 +1,136 @@ -# module Announcement - # OrbitApp.registration "Announcement",:type=> 'ModuleApp' do +module Announcement + OrbitApp.registration "Announcement",:type=> 'ModuleApp' do + module_label 'announcement.announcement' + base_url File.expand_path File.dirname(__FILE__) - # base_url File.expand_path File.dirname(__FILE__) - # personal_plugin :enable => true,:path=>"panel/announcement/plugin/profile" + # personal_plugin :enable => true,:path=>"panel/announcement/plugin/profile",:i18n=>'announcement.announcement' + version "0.1" + organization "Rulingcom" + author "RD dep" + intro "I am intro" + update_info 'some update_info' - # end + front_end do + app_page 'bulletins' do + frontend_i18n "announcement.front_end.bulletins" + end + end -# end + category ["BulletinCategory"] + + widgets do + default_widget do + query 'Bulletin.all' + image :image + field :postdate + link_field :title,{:method => 'panel_announcement_front_end_bulletin_path',:args=>:self} + link_field :bulletin_category_with_title,{:method => 'panel_announcement_front_end_bulletins_path',:args=>{:category_id => [:bulletin_category,:id]}} + end + + categories_query 'BulletinCategory.all' + tags_query 'AnnouncementTag.all' + + customize_widget "index" do + widget_i18n "announcement.widget.index" + style ["1","2"] + end + # item "index","announcement.widget.index",:default_template=>true,:fields=>["title","category","postdate"] + # item "bulletins_and_web_links","announcement.widget.bulletins_and_web_links" + end + + side_bar do + head_label_i18n 'admin.announcement',:icon_class=>"icons-megaphone" + available_for [:admin,:guest,:manager,:sub_manager] + active_for_controllers ({:private=>['bulletins', 'bulletin_categorys', 'approvals','tags']}) + active_for_object_auth ['BulletinCategory'] + + head_link_path "panel_announcement_back_end_bulletins_path" + + context_link 'announcement.all_articles', + :link_path=>"panel_announcement_back_end_bulletins_path" , + :priority=>2, + :active_for_action=>{:bulletins=>:index}, + :available_for => [:all] + context_link 'announcement.add_new', + :link_path=>"new_panel_announcement_back_end_bulletin_path" , + :priority=>1, + :active_for_action=>{:bulletins=>:new}, + :available_for => [:sub_manager] + + context_link 'announcement.categories', + :link_path=>"panel_announcement_back_end_bulletin_categorys_path" , + :priority=>3, + :active_for_action=>{:bulletin_categorys=>:index}, + :available_for => [:manager] -# OrbitApp.backend_side_bar 'News' do - -# block :available_for => [:admin,:guest,:manager,:sub_manager], -# :active_for_controllers=> ['news_bulletins', '/panel/news/back_end/tags', 'news_bulletin_categorys', 'news_approvals'], -# :active_for_ob_auths_object => ['NewsBulletinCategory'], -# :head_link => panel_news_back_end_news_bulletins_path , -# :head_label=> I18n.t(:news) + context_link 'announcement.tags', + :link_path=>"panel_announcement_back_end_tags_path" , + :priority=>4, + # :active_for_action=>{:bulletin_categorys=>:index}, + :available_for => [:manager] -# context_link :link=>new_panel_news_back_end_news_bulletin_path , -# :priority=>1,:label=>I18n.t('announcement.add_new'), -# :active_for_action=>{:news_bulletins=>:new} -# end \ No newline at end of file + # widgets do + # default_widget do + # query 'Bulletin.all' + # image :image + # end + + # categories_query 'BulletinCategory.all' + # tags_query 'AnnouncementTag.all' + + # 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" + # end + + # side_bar do + # head_label_i18n 'admin.announcement',:icon_class=>"icons-megaphone" + # available_for [:admin,:guest,:manager,:sub_manager] + # active_for_controllers ({:private=>['bulletins', 'bulletin_categorys', 'approvals','tags']}) + # active_for_object_auth ['BulletinCategory'] + + # head_link_path "panel_announcement_back_end_bulletins_path" + + # context_link 'announcement.all_articles', + # :link_path=>"panel_announcement_back_end_bulletins_path" , + # :priority=>1, + # :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 => [:sub_manager] + + # context_link 'announcement.categories', + # :link_path=>"panel_announcement_back_end_bulletin_categorys_path" , + # :priority=>3, + # :active_for_action=>{:bulletin_categorys=>:index}, + # :available_for => [:manager] + + # context_link 'announcement.tags', + # :link_path=>"panel_announcement_back_end_tags_path" , + # :priority=>4, + # # :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] + + context_link 'admin.module.authorization', + :link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'Announcement'}))", + :priority=>6, + :active_for_app_auth => 'Announcement', + :available_for => [:admin] + end + end +end diff --git a/vendor/built_in_modules/archive/config/locales/zh_tw.yml b/vendor/built_in_modules/archive/config/locales/zh_tw.yml index 69574468..c2790d32 100644 --- a/vendor/built_in_modules/archive/config/locales/zh_tw.yml +++ b/vendor/built_in_modules/archive/config/locales/zh_tw.yml @@ -1,7 +1,9 @@ zh_tw: _locale: 中文 - + archive: + widget: + archive_files: 檔案室Wiget add: 新增 back: 回去 create: 創造 diff --git a/vendor/built_in_modules/archive/init.rb b/vendor/built_in_modules/archive/init.rb new file mode 100644 index 00000000..902ab57a --- /dev/null +++ b/vendor/built_in_modules/archive/init.rb @@ -0,0 +1,69 @@ +module Archive + OrbitApp.registration "Archive",:type=> 'ModuleApp' do + module_label 'miss_module_i18n.archive' + base_url File.expand_path File.dirname(__FILE__) + + # personal_plugin :enable => true,:path=>"panel/archive/plugin/profile",:i18n=>'miss_plugin_i18n.archive' +# ======= +# personal_plugin :enable => true,:path=>"panel/archive/plugin/profile",:i18n=>'admin.archive' +# >>>>>>> 858e942da234fffa3053a995231f2b0d9eee43d1 + + version "0.1" + organization "Rulingcom" + author "RD dep" + intro "I am intro" + update_info 'some update_info' + + front_end do + app_page 'archive_files' + end + + widgets do + # default_widget do + # query 'Bulletin.all' + # image :image + # end + + # categories_query 'BulletinCategory.all' + # tags_query 'ArchiveTag.all' + customize_widget "archive_files" do + widget_i18n "archive.widget.archive_files" + style [] + end + end + + side_bar do + head_label_i18n 'miss_module_i18n.archive',:icon_class=>"icons-archive" + 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 ['BulletinCategory'] + + head_link_path "panel_archive_back_end_archive_files_path" + + context_link 'miss_module_i18n._archive.all', + :link_path=>"panel_archive_back_end_archive_files_path" , + :priority=>1, + :active_for_action=>{:archive_files=>:index}, + :available_for => [:all] + + context_link 'add', + :link_path=>"new_panel_archive_back_end_archive_file_path" , + :priority=>2, + :active_for_action=>{:archive_files=>:new}, + :available_for => [:admin] + + context_link 'categories', + :link_path=>"panel_archive_back_end_archive_file_categorys_path" , + :priority=>3, + :active_for_action=>{:archive_file_categorys=>:index}, + :available_for => [:manager] + + context_link 'tags', + :link_path=>"panel_archive_back_end_tags_path" , + :priority=>4, + # :active_for_action=>{:bulletin_categorys=>:index}, + :available_for => [:admin] + + end + end +end diff --git a/vendor/built_in_modules/calendar/init.rb b/vendor/built_in_modules/calendar/init.rb new file mode 100644 index 00000000..fc318e6c --- /dev/null +++ b/vendor/built_in_modules/calendar/init.rb @@ -0,0 +1,34 @@ +module Calendar + OrbitApp.registration "Calendar",:type=> 'ModuleApp' do + module_label 'miss_module_i18n.calendar' + base_url File.expand_path File.dirname(__FILE__) + # personal_plugin :enable => true,:path=>"panel/calendar/plugin/profile",:i18n=>'admin.calendar' + + version "0.1" + organization "Rulingcom" + author "RD dep" + intro "I am intro" + update_info 'some update_info' + + side_bar do + head_label_i18n 'miss_module_i18n.calendar',:icon_class=>"icons-calendar" + available_for [:admin,:guest,:manager,:sub_manager] + active_for_controllers ({:private=>['cals','calendar_categories'],:public=>['panel/calendar/back_end/tags']}) + + + head_link_path "panel_calendar_back_end_cals_path" + + context_link 'calendar.calendars', + :link_path=>"new_panel_calendar_back_end_cal_path" , + :priority=>1, + :active_for_action=>{:cals=>:new}, + :available_for => [:manager] + + context_link 'tags', + :link_path=>"panel_calendar_back_end_tags_path" , + :priority=>4, + # :active_for_action=>{:bulletin_categorys=>:index}, + :available_for => [:manager] + end + end +end diff --git a/vendor/built_in_modules/gallery/app/models/gallery_category.rb b/vendor/built_in_modules/gallery/app/models/gallery_category.rb index 622ec4a4..07c5df8c 100644 --- a/vendor/built_in_modules/gallery/app/models/gallery_category.rb +++ b/vendor/built_in_modules/gallery/app/models/gallery_category.rb @@ -1,17 +1,21 @@ class GalleryCategory - include Mongoid::Document - include Mongoid::Timestamps + include Mongoid::Document + include Mongoid::Timestamps - include OrbitCoreLib::ObjectAuthable + include OrbitCoreLib::ObjectAuthable - ObjectAuthTitlesOptions = %W{new_album} - APP_NAME = "album" + ObjectAuthTitlesOptions = %W{new_album} + APP_NAME = "album" - field :name, localize: true + field :name, localize: true - has_many :gallery_albums, :autosave => true, :dependent => :destroy + has_many :gallery_albums, :autosave => true, :dependent => :destroy - def pp_object - name - end + def title + name + end + + def pp_object + name + end end \ No newline at end of file diff --git a/vendor/built_in_modules/gallery/config/locales/zh_tw.yml b/vendor/built_in_modules/gallery/config/locales/zh_tw.yml index 164c93cc..33a480ae 100644 --- a/vendor/built_in_modules/gallery/config/locales/zh_tw.yml +++ b/vendor/built_in_modules/gallery/config/locales/zh_tw.yml @@ -23,6 +23,8 @@ zh_tw: edit: 編輯 delete_selected: 刪除選擇項目 del_album?: "要刪除這本相簿嗎?" + front_end: + albums: 相簿前台 album_not_found: 找不到此相簿 pic_not_found: 找不到該照片 save: 儲存 @@ -33,6 +35,8 @@ zh_tw: set_cover: 設為封面 sure?: "你確定嗎?" no_description: 沒有描述 + widget: + widget1: Widget1 widget_option: horizontal: 水平圖片數量 vertical: 垂直圖片數量 diff --git a/vendor/built_in_modules/gallery/init.rb b/vendor/built_in_modules/gallery/init.rb new file mode 100644 index 00000000..615d6593 --- /dev/null +++ b/vendor/built_in_modules/gallery/init.rb @@ -0,0 +1,70 @@ +module Gallery + OrbitApp.registration "Gallery",:type=> 'ModuleApp' do + module_label 'miss_module_i18n.gallery' + base_url File.expand_path File.dirname(__FILE__) + # personal_plugin :enable => true,:path=>"panel/gallery/plugin/profile",:i18n=>'admin.gallery' + + version "0.1" + organization "Rulingcom" + author "Visual dep" + intro "A simple and amazing gallery" + update_info 'some update_info' + + front_end do + app_page 'albums' do + frontend_i18n "gallery.front_end.albums" + end + end + + category ["gallery_categories"] + + widgets do + # default_widget do + # query 'Bulletin.all' + # image :image + # end + + categories_query 'GalleryCategory.all' + # tags_query 'GalleryTag.all' + + #* customize_widget "albums","gallery.widget.albums",:fields=>[],:style=>[],:options=>{"widget1"=>{"vertical"=>[1, 2], "horizontal"=>[1, 2, 3, 4, 5, 6], "album_id"=>{"query"=>"GalleryAlbum.all", "value"=>:id, "label"=>:name}}} + #* customize_widget_options_fields_i18n({"widget1"=>{"vertical"=>"gallery.widget_option.vertical", "horizontal"=>"gallery.widget_option.horizontal", "album_id"=>"gallery.widget_option.album"}} ) + + customize_widget "widget1" do + widget_i18n "gallery.widget.widget1" + style [] + options "vertical",:i18n => "gallery.widget_option.vertical",:options_item=>[1, 2] + options "horizontal",:i18n => "gallery.widget_option.horizontal",:options_item=>[1, 2,3,4,5,6] + options "album_id",:i18n =>"gallery.widget_option.album",:options_item => {"query"=>"GalleryAlbum.all", "value"=>:id, "label"=>:name} + end + + end + + side_bar do + head_label_i18n 'miss_module_i18n.gallery',:icon_class=>"icons-pictures" + available_for [:admin,:guest,:manager,:sub_manager] + active_for_controllers ({:private=>['albums','album_images','gallery_categories','/panel/gallery/back_end/tags']}) + active_for_object_auth ['BulletinCategory'] + + head_link_path "panel_gallery_back_end_albums_path" + + context_link 'gallery.categories', + :link_path=>"panel_gallery_back_end_gallery_categories_path" , + :priority=>3, + :active_for_action=>{:gallery_categories=>:index}, + :available_for => [:manager] + + context_link 'tags', + :link_path=>"panel_gallery_back_end_tags_path" , + :priority=>4, + # :active_for_action=>{:bulletin_categorys=>:index}, + :available_for => [:manager] + + context_link 'module_authorization', + :link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'Gallery'}))", + :priority=>6, + :active_for_app_auth => 'gallery', + :available_for => [:admin] + end + end +end diff --git a/vendor/built_in_modules/personal_seminar/app/assets/images/personal_seminar/.gitkeep b/vendor/built_in_modules/location/app/assets/images/gprs/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/assets/images/personal_seminar/.gitkeep rename to vendor/built_in_modules/location/app/assets/images/gprs/.gitkeep diff --git a/vendor/built_in_modules/location/app/assets/javascripts/panel/gprs/back_end/locations.js b/vendor/built_in_modules/location/app/assets/javascripts/panel/gprs/back_end/locations.js new file mode 100644 index 00000000..dee720fa --- /dev/null +++ b/vendor/built_in_modules/location/app/assets/javascripts/panel/gprs/back_end/locations.js @@ -0,0 +1,2 @@ +// Place all the behaviors and hooks related to the matching controller here. +// All this logic will automatically be available in application.js. diff --git a/vendor/built_in_modules/personal_seminar/app/assets/javascripts/personal_seminar/.gitkeep b/vendor/built_in_modules/location/app/assets/stylesheets/gprs/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/assets/javascripts/personal_seminar/.gitkeep rename to vendor/built_in_modules/location/app/assets/stylesheets/gprs/.gitkeep diff --git a/vendor/built_in_modules/location/app/assets/stylesheets/panel/gprs/back_end/locations.css b/vendor/built_in_modules/location/app/assets/stylesheets/panel/gprs/back_end/locations.css new file mode 100644 index 00000000..afad32db --- /dev/null +++ b/vendor/built_in_modules/location/app/assets/stylesheets/panel/gprs/back_end/locations.css @@ -0,0 +1,4 @@ +/* + Place all the styles related to the matching controller here. + They will automatically be included in application.css. +*/ diff --git a/vendor/built_in_modules/location/app/controllers/panel/locations/back_end/locations_controller.rb b/vendor/built_in_modules/location/app/controllers/panel/locations/back_end/locations_controller.rb new file mode 100644 index 00000000..5ad721e6 --- /dev/null +++ b/vendor/built_in_modules/location/app/controllers/panel/locations/back_end/locations_controller.rb @@ -0,0 +1,77 @@ +class Panel::Locations::BackEnd::LocationsController < OrbitBackendController + + #before_filter :clean_values, :only => [:create, :update] + + before_filter :force_order_for_visitor,:only => [:index, :new, :edit, :delete] + before_filter :force_order_for_user,:except => [:get_locations,:index] + #before_filter :for_app_sub_manager,:except => [:index, :new, :edit, :delete, :get_locations] + + def index + @locations = Location.all + respond_to do |format| + format.html # new.html.erb + format.json { render json: @locations } + end + end + + def new + @location = Location.new + + respond_to do |format| + format.html # new.html.erb + format.json { render json: @location } + end + end + + def edit + @location = Location.find(params[:id]) + end + + def show + @location = Location.find(params[:id]) + respond_to do |format| + format.html + format.json { render json: @location } + end + end + + def create + @location = Location.new(params[:location]) + @location.save! + redirect_to panel_gprs_back_end_locations_url + end + + def update + @location = Location.find(params[:id]) + @location.update_attributes(params[:location]) + redirect_to panel_gprs_back_end_locations_url + end + + def destroy + @location = Location.find(params[:id]) + @location.destroy + redirect_to panel_gprs_back_end_locations_url + + end + + def get_locations + locations = Location.all + @data = Array.new + + locations.each do |location| + picurl = location.file.blank? ? '' : "http://#{request.host_with_port + location.file.url}" + thumburl = location.file.blank? ? '' : "http://#{request.host_with_port + location.file.thumb.url}" + @data << { name: location.name, + pic_url: picurl, + thumb_url: thumburl, + longitude: location.longitude, + latitude: location.latitude, + description: location.description } + end + + #print readable json + render :json => JSON.pretty_generate({location: @data}) + + #render :json => {location: @data}.to_json + end +end diff --git a/vendor/built_in_modules/location/app/helpers/panel/locations/back_end/locations_helper.rb b/vendor/built_in_modules/location/app/helpers/panel/locations/back_end/locations_helper.rb new file mode 100644 index 00000000..c6dcef87 --- /dev/null +++ b/vendor/built_in_modules/location/app/helpers/panel/locations/back_end/locations_helper.rb @@ -0,0 +1,2 @@ +module Panel::Locations::BackEnd::LocationsHelper +end diff --git a/vendor/built_in_modules/location/app/models/location.rb b/vendor/built_in_modules/location/app/models/location.rb new file mode 100644 index 00000000..58d032bd --- /dev/null +++ b/vendor/built_in_modules/location/app/models/location.rb @@ -0,0 +1,11 @@ +class Location + include Mongoid::Document + include Mongoid::Timestamps + + mount_uploader :file, LocationUploader + + field :name + field :description + field :longitude, type: Float + field :latitude, type: Float +end diff --git a/vendor/built_in_modules/location/init.rb b/vendor/built_in_modules/location/init.rb new file mode 100644 index 00000000..021ddcc1 --- /dev/null +++ b/vendor/built_in_modules/location/init.rb @@ -0,0 +1,43 @@ +module Location + OrbitApp.registration "Location",:type=> 'ModuleApp' do + module_label 'miss_module_i18n.location' + base_url File.expand_path File.dirname(__FILE__) + # personal_plugin :enable => true,:path=>"panel/location/plugin/profile",:i18n=>'admin.location' + + # version "0.1" + # organization "Rulingcom" + # author "RD dep" + # intro "I am intro" + # update_info 'some update_info' + + # front_end do + # app_page 'bulletins' + # end + + # category ["BulletinCategory"] + + # widgets do + # default_widget do + # query 'Bulletin.all' + # image :image + # end + + # categories_query 'BulletinCategory.all' + # tags_query 'LocationTag.all' + + # customize_widget "index","location.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","location.widget.bulletins_and_web_links" + # # item "index","location.widget.index",:default_template=>true,:fields=>["title","category","postdate"] + # # item "bulletins_and_web_links","location.widget.bulletins_and_web_links" + # end + + side_bar do + head_label_i18n 'miss_module_i18n.location',:icon_class=>"icons-location" + available_for [:admin,:guest,:manager,:sub_manager] + active_for_controllers ({:private=>['locations']}) + + head_link_path "panel_location_back_end_locations_path" + + end + end +end diff --git a/vendor/built_in_modules/location/lib/location.rb b/vendor/built_in_modules/location/lib/location.rb index cd134803..b13f49bd 100644 --- a/vendor/built_in_modules/location/lib/location.rb +++ b/vendor/built_in_modules/location/lib/location.rb @@ -1,4 +1,4 @@ -require "location/engine" +require "gprs/engine" module Location end diff --git a/vendor/built_in_modules/location/test/functional/panel/gprs/back_end/locations_controller_test.rb b/vendor/built_in_modules/location/test/functional/panel/gprs/back_end/locations_controller_test.rb new file mode 100644 index 00000000..0edd65ab --- /dev/null +++ b/vendor/built_in_modules/location/test/functional/panel/gprs/back_end/locations_controller_test.rb @@ -0,0 +1,14 @@ +require 'test_helper' + +class Panel::Location::BackEnd::LocationsControllerTest < ActionController::TestCase + test "should get index" do + get :index + assert_response :success + end + + test "should get edit" do + get :edit + assert_response :success + end + +end diff --git a/vendor/built_in_modules/location/test/unit/helpers/panel/gprs/back_end/locations_helper_test.rb b/vendor/built_in_modules/location/test/unit/helpers/panel/gprs/back_end/locations_helper_test.rb new file mode 100644 index 00000000..9e39a511 --- /dev/null +++ b/vendor/built_in_modules/location/test/unit/helpers/panel/gprs/back_end/locations_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class Panel::Location::BackEnd::LocationsHelperTest < ActionView::TestCase +end diff --git a/vendor/built_in_modules/miss_module/config/locales/zh_tw.yml b/vendor/built_in_modules/miss_module/config/locales/zh_tw.yml new file mode 100644 index 00000000..807df328 --- /dev/null +++ b/vendor/built_in_modules/miss_module/config/locales/zh_tw.yml @@ -0,0 +1,24 @@ +zh_tw: + + miss_module_i18n: + archive: 檔案室 + _archive: + all: 全部檔案 + calendar: 日曆模組 + calendars: 日曆 + gallery: 相簿 + location: (未命名)Location + ad_banner: 廣告輪播 + + miss_plugin_i18n: + personal_book: Personal Book + personal_diploma: Personal Diploma + personal_experience: Personal Experience + personal_honor: Personal Honor + personal_journal: Personal Journal + personal_lab: Personal Lab + personal_patent: Personal Patent + personal_project: Personal Project + personal_research: Personal Research + personal_conference: Personal Conference + diff --git a/vendor/built_in_modules/page_content/init.rb b/vendor/built_in_modules/page_content/init.rb new file mode 100644 index 00000000..73199b18 --- /dev/null +++ b/vendor/built_in_modules/page_content/init.rb @@ -0,0 +1,33 @@ +module PageContent + + OrbitApp.registration "PageContent",:type=> 'ModuleApp' do + module_label 'page' + base_url File.expand_path File.dirname(__FILE__) + # personal_plugin :enable => true,:path=>"panel/announcement/plugin/profile",:i18n=>'admin.announcement' + + version "0.1" + organization "Rulingcom" + author "RD dep" + intro "I am intro" + update_info 'some update_info' + + front_end do + app_page 'page_contexts' + end + + side_bar do + head_label_i18n 'page',:icon_class=>"icons-page" + available_for [:admin,:guest,:manager,:sub_manager] + active_for_controllers ({:private=>['page_contexts']}) + active_for_object_auth ['PageContext'] + + head_link_path "panel_page_content_back_end_page_contexts_path" + + context_link 'module_authorization', + :link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'PageContent'}))", + :priority=>1, + :active_for_app_auth => 'PageContext', + :available_for => [:admin] + end + end +end diff --git a/vendor/built_in_modules/personal_book/app/controllers/panel/personal_book/back_end/writing_books_controller.rb b/vendor/built_in_modules/personal_book/app/controllers/panel/personal_book/back_end/writing_books_controller.rb index 687f39b6..8e2fa579 100644 --- a/vendor/built_in_modules/personal_book/app/controllers/panel/personal_book/back_end/writing_books_controller.rb +++ b/vendor/built_in_modules/personal_book/app/controllers/panel/personal_book/back_end/writing_books_controller.rb @@ -313,7 +313,7 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl # end def get_plugins - @plugins = OrbitApp::Module::Registration.all + @plugins = OrbitApp::Plugin::Registration.all end def get_tags diff --git a/vendor/built_in_modules/personal_book/init.rb b/vendor/built_in_modules/personal_book/init.rb index ea01f672..2f739adc 100644 --- a/vendor/built_in_modules/personal_book/init.rb +++ b/vendor/built_in_modules/personal_book/init.rb @@ -1,8 +1,8 @@ module PersonalBook - OrbitApp.registration "Book",:type=> 'ModuleApp' do - - base_url File.expand_path File.dirname(__FILE__) - personal_plugin :enable => true,:path=>"panel/personal_book/plugin/profile",:admin_path=>"/panel/personal_book/back_end/writing_books",:i18n=>'admin.personal_book' + OrbitApp.registration "PersonalBook",:type=> 'ModuleApp' do + module_label 'miss_plugin_i18n.personal_book' + base_url File.expand_path File.dirname(__FILE__) + personal_plugin :enable => true,:path=>"panel/personal_book/plugin/profile",:admin_path=>"/panel/personal_book/back_end/writing_books",:i18n=>'miss_plugin_i18n.personal_book' end diff --git a/vendor/built_in_modules/personal_seminar/.gitignore b/vendor/built_in_modules/personal_conference/.gitignore similarity index 100% rename from vendor/built_in_modules/personal_seminar/.gitignore rename to vendor/built_in_modules/personal_conference/.gitignore diff --git a/vendor/built_in_modules/personal_seminar/Gemfile b/vendor/built_in_modules/personal_conference/Gemfile similarity index 89% rename from vendor/built_in_modules/personal_seminar/Gemfile rename to vendor/built_in_modules/personal_conference/Gemfile index 2491fccd..b63cf622 100644 --- a/vendor/built_in_modules/personal_seminar/Gemfile +++ b/vendor/built_in_modules/personal_conference/Gemfile @@ -1,6 +1,6 @@ source "http://rubygems.org" -# Declare your gem's dependencies in personal_seminar.gemspec. +# Declare your gem's dependencies in personal_conference.gemspec. # Bundler will treat runtime dependencies like base dependencies, and # development dependencies will be added by default to the :development group. gemspec diff --git a/vendor/built_in_modules/personal_seminar/MIT-LICENSE b/vendor/built_in_modules/personal_conference/MIT-LICENSE similarity index 100% rename from vendor/built_in_modules/personal_seminar/MIT-LICENSE rename to vendor/built_in_modules/personal_conference/MIT-LICENSE diff --git a/vendor/built_in_modules/personal_seminar/README.rdoc b/vendor/built_in_modules/personal_conference/README.rdoc similarity index 100% rename from vendor/built_in_modules/personal_seminar/README.rdoc rename to vendor/built_in_modules/personal_conference/README.rdoc diff --git a/vendor/built_in_modules/personal_seminar/Rakefile b/vendor/built_in_modules/personal_conference/Rakefile similarity index 95% rename from vendor/built_in_modules/personal_seminar/Rakefile rename to vendor/built_in_modules/personal_conference/Rakefile index 651670ac..ea0eb18b 100644 --- a/vendor/built_in_modules/personal_seminar/Rakefile +++ b/vendor/built_in_modules/personal_conference/Rakefile @@ -14,7 +14,7 @@ end RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'PersonalSeminar' + rdoc.title = 'PersonalConference' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') diff --git a/vendor/built_in_modules/personal_seminar/app/assets/stylesheets/personal_seminar/.gitkeep b/vendor/built_in_modules/personal_conference/app/assets/images/personal_conference/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/assets/stylesheets/personal_seminar/.gitkeep rename to vendor/built_in_modules/personal_conference/app/assets/images/personal_conference/.gitkeep diff --git a/vendor/built_in_modules/personal_conference/app/assets/javascripts/personal_conference.js b/vendor/built_in_modules/personal_conference/app/assets/javascripts/personal_conference.js new file mode 100644 index 00000000..20daf27e --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/assets/javascripts/personal_conference.js @@ -0,0 +1 @@ +//= require_tree ./personal_conference/desktop diff --git a/vendor/built_in_modules/personal_seminar/app/controllers/.gitkeep b/vendor/built_in_modules/personal_conference/app/assets/javascripts/personal_conference/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/controllers/.gitkeep rename to vendor/built_in_modules/personal_conference/app/assets/javascripts/personal_conference/.gitkeep diff --git a/vendor/built_in_modules/personal_seminar/app/helpers/.gitkeep b/vendor/built_in_modules/personal_conference/app/assets/javascripts/personal_conference/desktop/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/helpers/.gitkeep rename to vendor/built_in_modules/personal_conference/app/assets/javascripts/personal_conference/desktop/.gitkeep diff --git a/app/assets/javascripts/desktop/seminar_pages.js b/vendor/built_in_modules/personal_conference/app/assets/javascripts/personal_conference/desktop/conference_pages.js similarity index 70% rename from app/assets/javascripts/desktop/seminar_pages.js rename to vendor/built_in_modules/personal_conference/app/assets/javascripts/personal_conference/desktop/conference_pages.js index ebe62c18..fdf3c389 100644 --- a/app/assets/javascripts/desktop/seminar_pages.js +++ b/vendor/built_in_modules/personal_conference/app/assets/javascripts/personal_conference/desktop/conference_pages.js @@ -1,6 +1,6 @@ -orbitDesktop.prototype.initializeSeminar = function(target,url,cache){ +orbitDesktop.prototype.initializeConference = function(target,url,cache){ - this.initializeSeminar.list = function(){ + this.initializeConference.list = function(){ var bindHandlers = function(){ o.tinyscrollbar_ext({ main : ".tinycanvas", @@ -13,7 +13,7 @@ orbitDesktop.prototype.initializeSeminar = function(target,url,cache){ } - this.initializeSeminar.addseminar = function(){ + this.initializeConference.addconference = function(){ var bindHandlers = function(){ o.simple_drop_down(); @@ -26,7 +26,7 @@ orbitDesktop.prototype.initializeSeminar = function(target,url,cache){ bindHandlers(); } - this.initializeSeminar.seminar = function(){ + this.initializeConference.conference = function(){ var bindHandlers = function(){ o.simple_drop_down(); @@ -39,7 +39,7 @@ orbitDesktop.prototype.initializeSeminar = function(target,url,cache){ bindHandlers(); } - this.initializeSeminar.rues = function(){ + this.initializeConference.coauthor = function(){ var bindHandlers = function(){ o.simple_drop_down(); @@ -53,6 +53,6 @@ orbitDesktop.prototype.initializeSeminar = function(target,url,cache){ } - this.initializeSeminar.list(); + this.initializeConference.list(); - } \ No newline at end of file + } diff --git a/vendor/built_in_modules/personal_seminar/app/mailers/.gitkeep b/vendor/built_in_modules/personal_conference/app/assets/stylesheets/personal_conference/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/mailers/.gitkeep rename to vendor/built_in_modules/personal_conference/app/assets/stylesheets/personal_conference/.gitkeep diff --git a/vendor/built_in_modules/personal_seminar/app/models/.gitkeep b/vendor/built_in_modules/personal_conference/app/controllers/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/models/.gitkeep rename to vendor/built_in_modules/personal_conference/app/controllers/.gitkeep diff --git a/vendor/built_in_modules/personal_seminar/app/controllers/application_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/application_controller.rb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/controllers/application_controller.rb rename to vendor/built_in_modules/personal_conference/app/controllers/application_controller.rb diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/conference_author_types_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/conference_author_types_controller.rb new file mode 100644 index 00000000..8fc2290a --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/conference_author_types_controller.rb @@ -0,0 +1,8 @@ +class Panel::PersonalConference::BackEnd::ConferenceAuthorTypesController < Panel::PersonalConference::BackEnd::WritingConferenceCategorysController + + def initialize + super + @app_type = 'conference_author_type' + end + +end diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/conference_paper_types_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/conference_paper_types_controller.rb new file mode 100644 index 00000000..c251c25d --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/conference_paper_types_controller.rb @@ -0,0 +1,8 @@ +class Panel::PersonalConference::BackEnd::ConferencePaperTypesController < Panel::PersonalConference::BackEnd::WritingConferenceCategorysController + + def initialize + super + @app_type = 'conference_paper_type' + end + +end diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/tags_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/tags_controller.rb new file mode 100644 index 00000000..296d6086 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/tags_controller.rb @@ -0,0 +1,8 @@ +class Panel::PersonalConference::BackEnd::TagsController < Admin::TagsController + + def initialize + super + @app_title = 'personal_conference' + end + +end diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/writing_conference_categorys_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/writing_conference_categorys_controller.rb new file mode 100644 index 00000000..cb27cbda --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/writing_conference_categorys_controller.rb @@ -0,0 +1,145 @@ +class Panel::PersonalConference::BackEnd::WritingConferenceCategorysController < OrbitBackendController + + include OrbitControllerLib::DivisionForDisable + + before_filter :force_order_for_visitor,:only=>[:index,:show] + before_filter :force_order_for_user,:except => [:index,:show] + before_filter :for_app_manager,:except => [:index] + + def index + + get_types + + @writing_conference_categorys = @types.all + @writing_conference_category = @types.new(:display => 'List') + + # @url = panel_personal_conference_back_end_writing_conference_categorys_path + @url = eval("panel_personal_conference_back_end_#{@app_type}s_path") + + respond_to do |format| + format.html # index.html.erb + format.js + end + end + + # GET /writing_conferences/1 + # GET /writing_conferences/1.xml + def show + + get_types + + @writing_conference_category = @types.find(params[:id]) + + respond_to do |format| + format.html # show.html.erb + format.js + end + end + + # GET /writing_conferences/new + # GET /writing_conferences/new.xml + def new + + get_types + + @writing_conference_category = @types.new(:display => 'List') + + @verb = :post + + respond_to do |format| + format.html # new.html.erb + format.js + end + end + + # GET /writing_conferences/1/edit + def edit + + get_types + + @writing_conference_category = @types.find(params[:id]) + + # @url = panel_personal_conference_back_end_writing_conference_category_path(@writing_conference_category) + # @url = eval("panel_personal_conference_back_end_#{@app_type}_path(@writing_conference_category)") + @url = polymorphic_path([:panel, :personal_conference, :back_end, @writing_conference_category]) + + @verb = :put + + respond_to do |format| + format.html + format.js + end + end + + # POST /writing_conferences + # POST /writing_conferences.xml + def create + + get_types + + @writing_conference_category = @types.new(params[:writing_conference_category]) + + respond_to do |format| + if @writing_conference_category.save + format.html { redirect_to(panel_personal_conference_back_end_writing_conference_categorys_url, :notice => t('writing_conference_category.create_writing_conference_category_success')) } + format.js + else + format.html { render :action => "new" } + format.js { render action: "new" } + end + end + end + + # PUT /writing_conferences/1 + # PUT /writing_conferences/1.xml + def update + + get_types + + @writing_conference_category = @types.find(params[:id]) + # debugger + # @url = panel_personal_conference_back_end_writing_conference_category_path(@writing_conference_category) + # @url = eval("panel_personal_conference_back_end_#{@app_type}_path(#{@writing_conference_category})") + @url = polymorphic_path([:panel, :personal_conference, :back_end, @writing_conference_category]) + + respond_to do |format| + if @writing_conference_category.update_attributes(params[:writing_conference_category]) + format.html { redirect_to(panel_personal_conference_back_end_writing_conference_categorys_url, :notice => t('writing_conference_category.update_writing_conference_category_success')) } + # format.xml { head :ok } + format.js + else + format.html { render :action => "edit" } + format.js { render :action => "edit" } + end + end + end + + # DELETE /writing_conferences/1 + # DELETE /writing_conferences/1.xml + def destroy + + get_types + + @writing_conference_category = @types.find(params[:id]) + @writing_conference_category.disable = @writing_conference_category.disable ? false : true + + if @writing_conference_category.save! + respond_to do |format| + format.html { redirect_to(panel_personal_conference_back_end_writing_conference_categorys_url) } + # format.xml { head :ok } + format.js + end + else + flash[:error] = t("writing_conference_category.update_failed") + format.html { render :action => "index" } + end + + end + + protected + + def get_types + @types = @app_type.classify.constantize + end + +end diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/writing_conferences_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/writing_conferences_controller.rb new file mode 100644 index 00000000..8bd812a0 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/writing_conferences_controller.rb @@ -0,0 +1,323 @@ +class Panel::PersonalConference::BackEnd::WritingConferencesController < OrbitBackendController + include AdminHelper + include OrbitControllerLib::DivisionForDisable + + before_filter :authenticate_user! + before_filter :force_order_for_visitor,:only=>[:index,:show] + before_filter :force_order_for_user,:except => [:index,:show] + + before_filter :only => [ :new,:edit,:update] do |controller| + controller.get_categorys('WritingConferenceCategory') + end + + def index + + get_plugins + + get_categorys("ConferencePaperType",params[:conference_paper_type_id]) + @filter = params[:filter] + new_filter = params[:new_filter] + + if @filter && params[:clear] + @filter.delete(params[:type]) + elsif @filter && new_filter + if @filter.has_key?(new_filter[:type]) && @filter[new_filter[:type]].include?(new_filter[:id].to_s) + @filter[new_filter[:type]].delete(new_filter[:id].to_s) + elsif @filter.has_key?(new_filter[:type]) + @filter[new_filter[:type]] << new_filter[:id].to_s + else + @filter.merge!({new_filter[:type] => [new_filter[:id].to_s]}) + end + elsif new_filter + @filter = {new_filter[:type] => [new_filter[:id].to_s]} + end + + @paper_types = ConferencePaperType.all + @paper_type_ids = @paper_types.collect{|t| t.id.to_s} + [nil] + + + # @writing_conferences = WritingConference.search(params[:category_id]) + #@writing_conferences = (params[:sort] || @filter) ? get_sorted_and_filtered_writing_conferences : WritingConference.all.page(params[:page]).per(10) + + @writing_conferences = (params[:sort] || @filter) ? get_sorted_and_filtered("writing_conference",:conference_paper_type_id.in => @paper_type_ids) : get_viewable("writing_conference",:conference_paper_type_id.in => @paper_type_ids) + + + get_tags + + respond_to do |format| + format.html # index.html.erb + format.xml { render :xml => @writing_conferences } + format.js + end + end + + def writing_conference_setting + + get_plugins + + @author_types = ConferenceAuthorType.all + @paper_types = ConferencePaperType.all + + get_tags + + @set_author_type = ConferenceAuthorType.new(:display => 'List') + @author_type_url = panel_personal_conference_back_end_writing_conferences_path + + @set_paper_type = ConferencePaperType.new(:display => 'List') + @paper_type_url = panel_personal_conference_back_end_writing_conferences_path + + + end + + def paper_type_quick_add + @set_paper_type = ConferencePaperType.new(:display => 'List') + @paper_type_url = panel_personal_conference_back_end_writing_conferences_path + @set_paper_type.id = params[:id] + + respond_to do |format| + format.js + end + + end + + def paper_type_quick_edit + + @set_paper_type = ConferencePaperType.find(params[:writing_conference_id]) + @paper_type_url = panel_personal_conference_back_end_writing_conference_path(@set_paper_type) + + respond_to do |format| + format.js + end + end + + def author_type_quick_add + @set_author_type = ConferenceAuthorType.new(:display => 'List') + @author_type_url = panel_personal_conference_back_end_writing_conferences_path + @set_author_type.id = params[:id] + + respond_to do |format| + format.js + end + + end + + def author_type_quick_edit + + @set_author_type = ConferenceAuthorType.find(params[:writing_conference_id]) + @author_type_url = panel_personal_conference_back_end_writing_conference_path(@set_author_type) + + respond_to do |format| + format.js + end + end + + # GET /writing_conferences/1 + # GET /writing_conferences/1.xml + def show + @writing_conference = WritingConference.find(params[:id]) + respond_to do |format| + format.html # show.html.erb + format.xml { render :xml => @writing_conference } + end + end + + # GET /writing_conferences/new + # GET /writing_conferences/new.xml + def new + + get_plugins + + @writing_conference = WritingConference.new + # @writing_conference_files = WritingConferenceFile.all + # @paper_types = ConferenceLevelType.all + @author_types = ConferenceAuthorType.all + @paper_types = ConferencePaperType.all + get_tags + + respond_to do |format| + format.html # new.html.erb + format.xml { render :xml => @writing_conference } + end + end + + # GET /writing_conferences/1/edit + def edit + + get_plugins + + @writing_conference = WritingConference.find(params[:id]) + + # @paper_types = ConferenceLevelType.all + @author_types = ConferenceAuthorType.all + @paper_types = ConferencePaperType.all + + get_tags + end + + # POST /writing_conferences + # POST /writing_conferences.xml + def create + + if params[:conference_paper_type] + + @conference_paper_type = ConferencePaperType.new(params[:conference_paper_type]) + + respond_to do |format| + if @conference_paper_type.save + format.js { render 'create_writing_conference_setting' } + end + end + + elsif params[:conference_author_type] + + @conference_author_type = ConferenceAuthorType.new(params[:conference_author_type]) + + respond_to do |format| + if @conference_author_type.save + format.js { render 'create_writing_conference_setting' } + end + end + + else + + # @paper_types = ConferenceLevelType.all + @author_types = ConferenceAuthorType.all + @paper_types = ConferencePaperType.all + get_tags + + @writing_conference = WritingConference.new(params[:writing_conference]) + + if params[:writing_conference][:user_id] + @writing_conference.create_user_id = params[:writing_conference][:user_id] + @writing_conference.update_user_id = params[:writing_conference][:user_id] + else + @writing_conference.create_user_id = current_user.id + @writing_conference.update_user_id = current_user.id + end + + respond_to do |format| + if @writing_conference.save + + if params[:writing_conference][:user_id] + format.html { redirect_to(admin_users_new_interface_url(:id=>params[:writing_conference][:user_id],:show_plugin_profile=>'Conference')) } + else + format.html { redirect_to(panel_personal_conference_back_end_writing_conferences_url) } + end + + format.xml { render :xml => @writing_conference, :status => :created, :location => @writing_conference } + else + format.html { render :action => "new" } + format.xml { render :xml => @writing_conference.errors, :status => :unprocessable_entity } + end + end + end + + end + + # PUT /writing_conferences/1 + # PUT /writing_conferences/1.xml + def update + + if params[:conference_paper_type] + + @conference_paper_type = ConferencePaperType.find(params[:id]) + + respond_to do |format| + + if @conference_paper_type.update_attributes(params[:conference_paper_type]) + # format.html { redirect_to(panel_announcement_back_end_bulletins_url) } + format.js { render 'update_writing_conference_setting' } + end + end + + elsif params[:conference_author_type] + + @conference_author_type = ConferenceAuthorType.find(params[:id]) + + respond_to do |format| + + if @conference_author_type.update_attributes(params[:conference_author_type]) + # format.html { redirect_to(panel_announcement_back_end_bulletins_url) } + format.js { render 'update_writing_conference_setting' } + end + end + + else + + @writing_conference = WritingConference.find(params[:id]) + + @writing_conference.update_user_id = current_user.id + + params[:writing_conference][:tag_ids] ||=[] + + respond_to do |format| + if @writing_conference.update_attributes(params[:writing_conference]) + format.html { redirect_to(panel_personal_conference_back_end_writing_conferences_url) } + # format.js { render 'toggle_enable' } + format.xml { head :ok } + else + format.html { render :action => "edit" } + format.xml { render :xml => @writing_conference.errors, :status => :unprocessable_entity } + end + end + end + + end + + # DELETE /writing_conferences/1 + # DELETE /writing_conferences/1.xml + def destroy + @writing_conference = WritingConference.find(params[:id]) + @writing_conference.destroy + + respond_to do |format| + format.html { redirect_to(panel_personal_conference_back_end_writing_conferences_url) } + # format.xml { head :ok } + format.js + end + end + + def delete + if params[:ids] + writing_conferences = WritingConference.any_in(:_id => params[:ids]).delete_all + end + redirect_to panel_personal_conference_back_end_writing_conferences_url(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options]) + end + + protected + + + # def get_index_categories(id = nil) + # @bulletin_categorys = [] + # if(is_manager? || is_admin?) + # @bulletin_categorys = (id ? BulletinCategory.admin_manager_all.find(id).to_a : BulletinCategory.admin_manager_all) + # elsif is_sub_manager? + # @bulletin_categorys = BulletinCategory.all + # end + # @bulletin_categorys + # end + + + # def get_categorys(id = nil) + # @writing_conference_categorys = [] + # if(is_manager? || is_admin?) + # @writing_conference_categorys = (id ? WritingConferenceCategory.admin_manager_all.find(id).to_a : WritingConferenceCategory.admin_manager_all)) + # elsif is_sub_manager? + # @writing_conference_categorys = WritingConferenceCategory.all.authed_for_user(current_user,'edit') + # end + # if @writing_conference_categorys.empty? && params[:action] != "index" + # flash[:alert] = t("announcement.error.no_avilb_cate_for_posting") + # redirect_to :action => :index + # end + # end + + def get_plugins + @plugins = OrbitApp::Plugin::Registration.all + end + + def get_tags + module_app = ModuleApp.first(:conditions => {:key => 'personal_conference'}) + @tags = Tag.all(:conditions => {:module_app_id => module_app.id}) + end + +end diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_p_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_p_controller.rb new file mode 100644 index 00000000..c10256a9 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_p_controller.rb @@ -0,0 +1,5 @@ +class Panel::PersonalConference::Desktop::ConferencePController < ApplicationController + def conference_p + render panel_personal_conference_desktop_conference_p_path, :layout => false + end +end diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb new file mode 100644 index 00000000..602b24d0 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb @@ -0,0 +1,14 @@ +class Panel::PersonalConference::Desktop::ConferencePagesController < ApplicationController + def index + respond_to do |format| + format.html { render :layout => false} + end + end + + def new + respond_to do |format| + format.html { render :layout => false} + end + end +end + diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/front_end/writing_seminars_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/front_end/writing_seminars_controller.rb new file mode 100644 index 00000000..dee56d69 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/front_end/writing_seminars_controller.rb @@ -0,0 +1,31 @@ +class Panel::PersonalConference::FrontEnd::WritingConferencesController < OrbitWidgetController + + def initialize + super + @app_title = 'personal_conference' + end + + + def index + + @writing_conferences = WritingConference.desc(:year).page(params[:page]).per(10) + + end + + # GET /writing_conferences/1 + # GET /writing_conferences/1.xml + def show + @writing_conference = WritingConference.find(params[:id]) + + @conference_paper_types = ( !@writing_conference.conference_paper_types.blank? ? @writing_conference.conference_paper_types.collect{|x| x.title}.join(', ') : nil) + @conference_author_types = ( !@writing_conference.conference_author_types.blank? ? @writing_conference.conference_author_types.collect{|x| x.title}.join(', ') : nil) + + end + + + def get_tags + module_app = ModuleApp.first(:conditions => {:key => 'personal_conference'}) + @tags = Tag.all(:conditions => {:module_app_id => module_app.id}) + end + +end diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/plugin/writing_conferences_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/plugin/writing_conferences_controller.rb new file mode 100644 index 00000000..5b754ec9 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/plugin/writing_conferences_controller.rb @@ -0,0 +1,187 @@ +class Panel::PersonalConference::Plugin::WritingConferencesController < OrbitBackendController + include AdminHelper + include OrbitControllerLib::DivisionForDisable + + before_filter :authenticate_user! + before_filter :force_order_for_visitor,:only=>[:index,:show] + before_filter :force_order_for_user,:except => [:index,:show] + + before_filter :only => [ :new,:edit,:update] do |controller| + controller.get_categorys('WritingConferenceCategory') + end + + + def index + + get_categorys("ConferencePaperType",params[:conference_paper_type_id]) + @filter = params[:filter] + new_filter = params[:new_filter] + + if @filter && params[:clear] + @filter.delete(params[:type]) + elsif @filter && new_filter + if @filter.has_key?(new_filter[:type]) && @filter[new_filter[:type]].include?(new_filter[:id].to_s) + @filter[new_filter[:type]].delete(new_filter[:id].to_s) + elsif @filter.has_key?(new_filter[:type]) + @filter[new_filter[:type]] << new_filter[:id].to_s + else + @filter.merge!({new_filter[:type] => [new_filter[:id].to_s]}) + end + elsif new_filter + @filter = {new_filter[:type] => [new_filter[:id].to_s]} + end + @paper_types = ConferencePaperType.all + @paper_type_ids = @paper_types.collect{|t| t.id.to_s} + [nil] + + + # @writing_conferences = WritingConference.search(params[:category_id]) + #@writing_conferences = (params[:sort] || @filter) ? get_sorted_and_filtered_writing_conferences : WritingConference.all.page(params[:page]).per(10) + @writing_conferences = (params[:sort] || @filter) ? get_sorted_and_filtered("writing_conference",:create_user_id => current_user.id) : get_viewable("writing_conference", :create_user_id => current_user.id) + + get_tags + + respond_to do |format| + format.html # index.html.erb + format.xml { render :xml => @writing_conferences } + format.js + end + end + + # GET /writing_conferences/1 + # GET /writing_conferences/1.xml + def show + @writing_conference = WritingConference.find(params[:id]) + respond_to do |format| + format.html # show.html.erb + format.xml { render :xml => @writing_conference } + end + end + + # GET /writing_conferences/new + # GET /writing_conferences/new.xml + def new + + @writing_conference = WritingConference.new + # @writing_conference_files = WritingConferenceFile.all + # @level_types = ConferenceLevelType.all + @author_types = ConferenceAuthorType.all + @paper_types = ConferencePaperType.all + + get_tags + + respond_to do |format| + format.html # new.html.erb + format.xml { render :xml => @writing_conference } + end + end + + # GET /writing_conferences/1/edit + def edit + @writing_conference = WritingConference.find(params[:id]) + + # @level_types = ConferenceLevelType.all + @author_types = ConferenceAuthorType.all + @paper_types = ConferencePaperType.all + + get_tags + end + + # POST /writing_conferences + # POST /writing_conferences.xml + def create + + # @level_types = ConferenceLevelType.all + @author_types = ConferenceAuthorType.all + @paper_types = ConferencePaperType.all + get_tags + + @writing_conference = WritingConference.new(params[:writing_conference]) + + @writing_conference.create_user_id = current_user.id + @writing_conference.update_user_id = current_user.id + + respond_to do |format| + if @writing_conference.save + format.html { redirect_to(panel_personal_conference_plugin_writing_conferences_url) } + format.xml { render :xml => @writing_conference, :status => :created, :location => @writing_conference } + else + format.html { render :action => "new" } + format.xml { render :xml => @writing_conference.errors, :status => :unprocessable_entity } + end + end + end + + # PUT /writing_conferences/1 + # PUT /writing_conferences/1.xml + def update + @writing_conference = WritingConference.find(params[:id]) + + @writing_conference.update_user_id = current_user.id + + params[:writing_conference][:tag_ids] ||=[] + + respond_to do |format| + if @writing_conference.update_attributes(params[:writing_conference]) + format.html { redirect_to(panel_personal_conference_plugin_writing_conferences_url) } + # format.js { render 'toggle_enable' } + format.xml { head :ok } + else + format.html { render :action => "edit" } + format.xml { render :xml => @writing_conference.errors, :status => :unprocessable_entity } + end + end + end + + # DELETE /writing_conferences/1 + # DELETE /writing_conferences/1.xml + def destroy + @writing_conference = WritingConference.find(params[:id]) + @writing_conference.destroy + + respond_to do |format| + format.html { redirect_to(panel_personal_conference_plugin_writing_conferences_url) } + # format.xml { head :ok } + format.js + end + end + + def delete + if params[:ids] + writing_conferences = WritingConference.any_in(:_id => params[:ids]).delete_all + end + redirect_to panel_personal_conference_plugin_writing_conferences_url(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options]) + end + + protected + + + # def get_index_categories(id = nil) + # @bulletin_categorys = [] + # if(is_manager? || is_admin?) + # @bulletin_categorys = (id ? BulletinCategory.admin_manager_all.find(id).to_a : BulletinCategory.admin_manager_all) + # elsif is_sub_manager? + # @bulletin_categorys = BulletinCategory.all + # end + # @bulletin_categorys + # end + + + # def get_categorys(id = nil) + # @writing_conference_categorys = [] + # if(is_manager? || is_admin?) + # @writing_conference_categorys = (id ? WritingConferenceCategory.admin_manager_all.find(id).to_a : WritingConferenceCategory.admin_manager_all)) + # elsif is_sub_manager? + # @writing_conference_categorys = WritingConferenceCategory.all.authed_for_user(current_user,'edit') + # end + # if @writing_conference_categorys.empty? && params[:action] != "index" + # flash[:alert] = t("announcement.error.no_avilb_cate_for_posting") + # redirect_to :action => :index + # end + # end + + def get_tags + module_app = ModuleApp.first(:conditions => {:key => 'personal_conference'}) + @tags = Tag.all(:conditions => {:module_app_id => module_app.id}) + end + +end diff --git a/vendor/built_in_modules/personal_seminar/app/views/.gitkeep b/vendor/built_in_modules/personal_conference/app/helpers/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/.gitkeep rename to vendor/built_in_modules/personal_conference/app/helpers/.gitkeep diff --git a/vendor/built_in_modules/personal_seminar/test/dummy/app/mailers/.gitkeep b/vendor/built_in_modules/personal_conference/app/mailers/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/test/dummy/app/mailers/.gitkeep rename to vendor/built_in_modules/personal_conference/app/mailers/.gitkeep diff --git a/vendor/built_in_modules/personal_seminar/test/dummy/app/models/.gitkeep b/vendor/built_in_modules/personal_conference/app/models/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/test/dummy/app/models/.gitkeep rename to vendor/built_in_modules/personal_conference/app/models/.gitkeep diff --git a/vendor/built_in_modules/personal_conference/app/models/conference_author_type.rb b/vendor/built_in_modules/personal_conference/app/models/conference_author_type.rb new file mode 100644 index 00000000..1614cdfb --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/models/conference_author_type.rb @@ -0,0 +1,9 @@ +# encoding: utf-8 + +class ConferenceAuthorType < WritingConferenceCategory + + field :title, localize: true + + has_and_belongs_to_many :writing_conferences + +end diff --git a/vendor/built_in_modules/personal_conference/app/models/conference_paper_type.rb b/vendor/built_in_modules/personal_conference/app/models/conference_paper_type.rb new file mode 100644 index 00000000..b0f27e23 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/models/conference_paper_type.rb @@ -0,0 +1,9 @@ +# encoding: utf-8 + +class ConferencePaperType < WritingConferenceCategory + + field :title, localize: true + + has_and_belongs_to_many :writing_conferences + +end diff --git a/vendor/built_in_modules/personal_conference/app/models/personal_conference_tag.rb b/vendor/built_in_modules/personal_conference/app/models/personal_conference_tag.rb new file mode 100644 index 00000000..bdcfc948 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/models/personal_conference_tag.rb @@ -0,0 +1,9 @@ +class PersonalConferenceTag < Tag + + has_and_belongs_to_many :writing_conferences + + def get_visible_links(sort = :title) + self.writing_conferences.where(:is_hidden => false).desc(:is_top, sort) + end + +end diff --git a/vendor/built_in_modules/personal_seminar/app/models/writing_seminar.rb b/vendor/built_in_modules/personal_conference/app/models/writing_conference.rb similarity index 73% rename from vendor/built_in_modules/personal_seminar/app/models/writing_seminar.rb rename to vendor/built_in_modules/personal_conference/app/models/writing_conference.rb index 00c8b8ac..f9db790d 100644 --- a/vendor/built_in_modules/personal_seminar/app/models/writing_seminar.rb +++ b/vendor/built_in_modules/personal_conference/app/models/writing_conference.rb @@ -1,6 +1,4 @@ -# encoding: utf-8 - -class WritingSeminar +class WritingConference include Mongoid::Document include Mongoid::Timestamps include Mongoid::MultiParameterAttributes @@ -11,15 +9,15 @@ class WritingSeminar field :paper_title, localize: true - field :seminar_title, localize: true + field :conference_title, localize: true field :authors, localize: true field :location, localize: true field :sponsor, localize: true - has_and_belongs_to_many :tags, :class_name => "PersonalSeminarTag" + has_and_belongs_to_many :tags, :class_name => "PersonalConferenceTag" - has_and_belongs_to_many :seminar_author_types - has_and_belongs_to_many :seminar_paper_types + has_and_belongs_to_many :conference_author_types + has_and_belongs_to_many :conference_paper_types field :year @@ -38,9 +36,9 @@ class WritingSeminar # field :is_hot, :type => Boolean, :default => false # field :is_hidden, :type => Boolean, :default => false - has_many :writing_seminar_files, :autosave => true, :dependent => :destroy + has_many :writing_conference_files, :autosave => true, :dependent => :destroy - accepts_nested_attributes_for :writing_seminar_files, :allow_destroy => true + accepts_nested_attributes_for :writing_conference_files, :allow_destroy => true # before_save :update_avliable_language, :clean_checkboxs @@ -48,7 +46,7 @@ class WritingSeminar before_validation :add_http - after_save :save_writing_seminar_files + after_save :save_writing_conference_files validates :url, :format => /^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix, :unless => Proc.new{self.url.blank?} @@ -56,7 +54,7 @@ class WritingSeminar if category_id.to_s.size > 0 - find(:all, :conditions => {writing_seminar_category_id: category_id}).desc( :is_top, :title ) + find(:all, :conditions => {writing_conference_category_id: category_id}).desc( :is_top, :title ) else @@ -91,8 +89,8 @@ class WritingSeminar end end - def save_writing_seminar_files - self.writing_seminar_files.each do |t| + def save_writing_conference_files + self.writing_conference_files.each do |t| if t.should_destroy t.destroy end @@ -102,11 +100,11 @@ class WritingSeminar def create_link title = ["\"#{self.paper_title}\""] - title << self.seminar_title + title << self.conference_title title << self.sponsor title << self.location title << "#{period_start_date}-#{period_end_date}" - # title << "(#{self.seminar_paper_types.collect{|x| x.title}.join(', ')})" + # title << "(#{self.conference_paper_types.collect{|x| x.title}.join(', ')})" title.join(', ') end @@ -121,8 +119,8 @@ class WritingSeminar def clean_checkboxs self.tag_ids.delete('') - self.seminar_author_type_ids.delete('') - self.seminar_level_type_ids.delete('') + self.conference_author_type_ids.delete('') + self.conference_level_type_ids.delete('') end -end \ No newline at end of file +end diff --git a/vendor/built_in_modules/personal_seminar/app/models/writing_seminar_category.rb b/vendor/built_in_modules/personal_conference/app/models/writing_conference_category.rb similarity index 65% rename from vendor/built_in_modules/personal_seminar/app/models/writing_seminar_category.rb rename to vendor/built_in_modules/personal_conference/app/models/writing_conference_category.rb index 9bd69430..435daf8c 100644 --- a/vendor/built_in_modules/personal_seminar/app/models/writing_seminar_category.rb +++ b/vendor/built_in_modules/personal_conference/app/models/writing_conference_category.rb @@ -1,30 +1,30 @@ # encoding: utf-8 -class WritingSeminarCategory +class WritingConferenceCategory include Mongoid::Document include Mongoid::Timestamps include OrbitCoreLib::ObjectAuthable include OrbitCoreLib::ObjectDisable # include Mongoid::MultiParameterAttributes - AfterObjectAuthUrl = '/panel/personal_seminar/back_end/writing_seminar_categorys' - APP_NAME = 'writing_seminar' + AfterObjectAuthUrl = '/panel/personal_conference/back_end/writing_conference_categorys' + APP_NAME = 'writing_conference' # ObjectAuthTitlesOptions = %W{edit} ObjectAuthTitlesOptions = %W{submit_new fact_check} field :key - has_many :writing_seminars + has_many :writing_conferences def pp_object title end def self.from_id(id) - WritingSeminarCategory.find(id) rescue nil + WritingConferenceCategory.find(id) rescue nil end def self.is_localized?(field_name) self.fields[field_name.to_s].localized? end -end \ No newline at end of file +end diff --git a/vendor/built_in_modules/personal_seminar/app/models/writing_seminar_file.rb b/vendor/built_in_modules/personal_conference/app/models/writing_conference_file.rb similarity index 78% rename from vendor/built_in_modules/personal_seminar/app/models/writing_seminar_file.rb rename to vendor/built_in_modules/personal_conference/app/models/writing_conference_file.rb index e8673019..f098bce0 100644 --- a/vendor/built_in_modules/personal_seminar/app/models/writing_seminar_file.rb +++ b/vendor/built_in_modules/personal_conference/app/models/writing_conference_file.rb @@ -1,4 +1,4 @@ -class WritingSeminarFile +class WritingConferenceFile include Mongoid::Document include Mongoid::Timestamps @@ -9,6 +9,6 @@ class WritingSeminarFile field :should_destroy, :type => Boolean field :title, localize: true - belongs_to :writing_seminar + belongs_to :writing_conference end diff --git a/vendor/built_in_modules/personal_seminar/test/dummy/lib/assets/.gitkeep b/vendor/built_in_modules/personal_conference/app/views/.gitkeep similarity index 100% rename from vendor/built_in_modules/personal_seminar/test/dummy/lib/assets/.gitkeep rename to vendor/built_in_modules/personal_conference/app/views/.gitkeep diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/_form.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/_form.html.erb similarity index 76% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/_form.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/_form.html.erb index 94d168b8..47931776 100644 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/_form.html.erb +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/_form.html.erb @@ -1,8 +1,8 @@ <% # encoding: utf-8 %> -<%= form_for(:writing_seminar_category, :remote => true, :url => @url, :method => @verb, :html => { :id => 'form_writing_seminar_category' } ) do |f| %> +<%= form_for(:writing_conference_category, :remote => true, :url => @url, :method => @verb, :html => { :id => 'form_writing_conference_category' } ) do |f| %> -

<%= (@writing_seminar_category.new_record? ? 'Add' : 'Edit') %>

+

<%= (@writing_conference_category.new_record? ? 'Add' : 'Edit') %>

<%= f.label :key %> @@ -16,7 +16,7 @@
<%= label_tag "name-#{locale}", "Name-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
- <%= f.text_field locale, :class => 'input-xxlarge', :value => (@writing_seminar_category.title_translations[locale] rescue nil) %> + <%= f.text_field locale, :class => 'input-xxlarge', :value => (@writing_conference_category.title_translations[locale] rescue nil) %>
<% end %> @@ -41,4 +41,4 @@
<% end %> - \ No newline at end of file + diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/_quick_edit_qe.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/_quick_edit_qe.html.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/_quick_edit_qe.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/_quick_edit_qe.html.erb diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/_writing_conference_category.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/_writing_conference_category.html.erb new file mode 100644 index 00000000..9176ec8c --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/_writing_conference_category.html.erb @@ -0,0 +1,22 @@ + + + + <%= writing_conference_category.key %> +
+ +
+ + <% if @types.is_localized?(:title) %> + <% @site_valid_locales.each do |locale| %> + <%= writing_conference_category.title_translations[locale] rescue nil %> + <% end %> + <% else %> + <%= writing_conference_category.title %> + <% end %> + diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/create.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/create.js.erb new file mode 100644 index 00000000..b17a94fa --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/create.js.erb @@ -0,0 +1,2 @@ +$('<%= j render :partial => 'writing_conference_category', :collection => [@writing_conference_category] %>').appendTo('#writing_conference_categorys').hide().fadeIn(); +$("#form_writing_conference_category")[0].reset(); diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/destroy.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/destroy.js.erb new file mode 100644 index 00000000..27eacbab --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/destroy.js.erb @@ -0,0 +1 @@ +$("#<%= dom_id @writing_conference_category %>").find(".archive_toggle").text("<%= show_toggle_archive_btn(@writing_conference_category) %> "); diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/edit.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/edit.html.erb new file mode 100644 index 00000000..c7b89dbd --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/edit.html.erb @@ -0,0 +1,7 @@ +

<%= t('personal_conference.editing_personal_conference_class') %>

+ +<%= form_for @writing_conference_category, :url => panel_personal_conference_back_end_writing_conference_category_path(@writing_conference_category) do |f| %> + <%= render :partial => 'form', :locals => {:f => f} %> +<% end %> + +<%= link_back %> diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/edit.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/edit.js.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/edit.js.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/edit.js.erb diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/index.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/index.html.erb similarity index 56% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/index.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/index.html.erb index 3b29d1c8..359c0e4a 100644 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/index.html.erb +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/index.html.erb @@ -3,22 +3,22 @@ <%= @types %> - +
- + <% if @types.is_localized?(:title) %> <% @site_valid_locales.each do |locale| %> <% end %> <% else %> - + <% end %> - <%= render :partial => 'writing_seminar_category', :collection => @writing_seminar_categorys %> + <%= render :partial => 'writing_conference_category', :collection => @writing_conference_categorys %>
<%= t('writing_seminar_category.key') %><%= t('writing_conference_category.key') %><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %><%= t('writing_seminar_category.title') %><%= t('writing_conference_category.title') %>
diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/new.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/new.html.erb new file mode 100644 index 00000000..46d19941 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/new.html.erb @@ -0,0 +1,19 @@ +<% content_for :secondary do %> +<%= render :partial => '/panel/personal_conference/back_end/personal_conference_secondary' %> +<% end -%> + +<%= flash_messages %> + +
+
+
+
+
+ +

<%= t('writing_conference_category.new_personal_conference_class') %>

+<%= form_for @writing_conference_category, :url => panel_personal_conference_back_end_writing_conference_categorys_path do |f| %> + <%= render :partial => 'form', :locals => {:f => f} %> +<% end %> + +<%= link_back %> + diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/new.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/new.js.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/new.js.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/new.js.erb diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/update.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/update.js.erb new file mode 100644 index 00000000..58c2c0e7 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conference_categorys/update.js.erb @@ -0,0 +1,4 @@ +$("#<%= dom_id @writing_conference_category %>").replaceWith("<%= j render :partial => 'writing_conference_category', :collection => [@writing_conference_category] %>"); +<% @writing_conference_category = @types.new(:display => 'List') # reset for new form %> +$("#form_writing_conference_category").replaceWith("<%= j render "form" %>") +$("#form_writing_conference_category")[0].reset(); diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_author_type_qe.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_author_type_qe.html.erb similarity index 92% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_author_type_qe.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_author_type_qe.html.erb index f0994f90..d38241dd 100644 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_author_type_qe.html.erb +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_author_type_qe.html.erb @@ -26,9 +26,9 @@ <% end %>
<% end %> - \ No newline at end of file + diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_filter.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_filter.html.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_filter.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_filter.html.erb diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_form.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_form.html.erb similarity index 69% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_form.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_form.html.erb index 90a011e3..93ec5a0a 100644 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_form.html.erb +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_form.html.erb @@ -10,13 +10,13 @@
-

<%= f.label :paper_type ,t("personal_seminar.paper_type")%>

+

<%= f.label :paper_type ,t("personal_conference.paper_type")%>

<% @paper_types.each do |paper_type| %> <%= content_tag :label,:class => "checkbox inline" do -%> - <%= check_box_tag 'writing_seminar[seminar_paper_type_ids][]', paper_type.id, @writing_seminar.seminar_paper_type_ids.include?(paper_type.id)%> + <%= check_box_tag 'writing_conference[conference_paper_type_ids][]', paper_type.id, @writing_conference.conference_paper_type_ids.include?(paper_type.id)%> <%= paper_type.title %> - <%= hidden_field_tag 'writing_seminar[seminar_paper_type_ids][]', '' %> + <%= hidden_field_tag 'writing_conference[conference_paper_type_ids][]', '' %> <% end %> <% end %>
@@ -26,13 +26,13 @@
-

<%= f.label :author_type ,t("personal_seminar.author_type")%>

+

<%= f.label :author_type ,t("personal_conference.author_type")%>

<% @author_types.each do |author_type| %> <%= content_tag :label,:class => "checkbox inline" do -%> - <%= check_box_tag 'writing_seminar[seminar_author_type_ids][]', author_type.id, @writing_seminar.seminar_author_type_ids.include?(author_type.id)%> + <%= check_box_tag 'writing_conference[conference_author_type_ids][]', author_type.id, @writing_conference.conference_author_type_ids.include?(author_type.id)%> <%= author_type.title %> - <%= hidden_field_tag 'writing_seminar[seminar_author_type_ids][]', '' %> + <%= hidden_field_tag 'writing_conference[conference_author_type_ids][]', '' %> <% end %> <% end %>
@@ -47,9 +47,9 @@
<% @tags.each do |tag| %> <%= content_tag :label,:class => "checkbox inline" do -%> - <%= check_box_tag 'writing_seminar[tag_ids][]', tag.id, @writing_seminar.tag_ids.include?(tag.id)%> + <%= check_box_tag 'writing_conference[tag_ids][]', tag.id, @writing_conference.tag_ids.include?(tag.id)%> <%= tag[I18n.locale] %> - <%= hidden_field_tag 'writing_seminar[tag_ids][]', '' %> + <%= hidden_field_tag 'writing_conference[tag_ids][]', '' %> <% end %> <% end %>
@@ -74,8 +74,8 @@ <% end %>
- <%= f.label :year ,t("personal_seminar.year")%> - <%= select_year((@writing_seminar.year ? @writing_seminar.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'writing_seminar[year]'} ) %> + <%= f.label :year ,t("personal_conference.year")%> + <%= select_year((@writing_conference.year ? @writing_conference.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'writing_conference[year]'} ) %>
- <%= f.label :period_start_date ,t("personal_seminar.period_start_date")%> + <%= f.label :period_start_date ,t("personal_conference.period_start_date")%> <%= f.date_select :period_start_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1930, :order => [:year, :month, :day] }, {:class => 'span1'} %>
- <%= f.label :period_end_date ,t("personal_seminar.period_end_date")%> + <%= f.label :period_end_date ,t("personal_conference.period_end_date")%> <%= f.date_select :period_end_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1930, :order => [:year, :month, :day] }, {:class => 'span1'} %>
@@ -100,34 +100,34 @@
">
- <%= f.label :paper_title ,t("personal_seminar.paper_title")%> + <%= f.label :paper_title ,t("personal_conference.paper_title")%> <%= f.fields_for :paper_title_translations do |f| %> <%= I18nVariable.from_locale(locale) %> - <%= f.text_field locale, :class=>'post-title', :value => (@writing_seminar.paper_title_translations[locale] rescue nil) %> + <%= f.text_field locale, :class=>'post-title', :value => (@writing_conference.paper_title_translations[locale] rescue nil) %> <% end %>
- <%= f.label :seminar_title ,t("personal_seminar.seminar_title")%> - <%= f.fields_for :seminar_title_translations do |f| %> + <%= f.label :conference_title ,t("personal_conference.conference_title")%> + <%= f.fields_for :conference_title_translations do |f| %> <%= I18nVariable.from_locale(locale) %> - <%= f.text_field locale, :class=>'post-title', :value => (@writing_seminar.seminar_title_translations[locale] rescue nil) %> + <%= f.text_field locale, :class=>'post-title', :value => (@writing_conference.conference_title_translations[locale] rescue nil) %> <% end %>
- <%= f.label :location ,t("personal_seminar.location")%> + <%= f.label :location ,t("personal_conference.location")%> <%= f.fields_for :location_translations do |f| %> <%= I18nVariable.from_locale(locale) %> - <%= f.text_field locale, :class=>'post-title', :value => (@writing_seminar.location_translations[locale] rescue nil) %> + <%= f.text_field locale, :class=>'post-title', :value => (@writing_conference.location_translations[locale] rescue nil) %> <% end %>
- <%= f.label :sponsor ,t("personal_seminar.sponsor")%> + <%= f.label :sponsor ,t("personal_conference.sponsor")%> <%= f.fields_for :sponsor_translations do |f| %> <%= I18nVariable.from_locale(locale) %> - <%= f.text_field locale, :class=>'post-title', :value => (@writing_seminar.sponsor_translations[locale] rescue nil) %> + <%= f.text_field locale, :class=>'post-title', :value => (@writing_conference.sponsor_translations[locale] rescue nil) %> <% end %>
@@ -135,7 +135,7 @@ <%= f.label :authors,t("web_resource.authors") %> <%= f.fields_for :authors_translations do |f| %> <%= I18nVariable.from_locale(locale) %> - <%= f.text_area locale, :size => "60x3", :value => (@writing_seminar.authors_translations[locale] rescue nil) %> + <%= f.text_area locale, :size => "60x3", :value => (@writing_conference.authors_translations[locale] rescue nil) %> <% end %>
@@ -146,32 +146,32 @@
- <%= f.label :publication_date ,t("personal_seminar.publication_date")%> + <%= f.label :publication_date ,t("personal_conference.publication_date")%> <%= f.date_select :publication_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1890, :order => [:year, :month, :day] }, {:class => 'span1'} %>
- <%= f.label :url, t("personal_seminar.url") %> + <%= f.label :url, t("personal_conference.url") %> <%= f.text_field :url %>
- <%= f.label :keywords, t("personal_seminar.keywords") %> + <%= f.label :keywords, t("personal_conference.keywords") %> <%= f.text_field :keywords %>
- <%= f.label :abstract, t("personal_seminar.abstract") %> + <%= f.label :abstract, t("personal_conference.abstract") %> <%= f.text_field :abstract %>
<%= f.label :language, t("personal_journal.language") %> - <%= f.select :language, WritingSeminar::LANGUAGE_TYPES, :prompt => 'Select' %> + <%= f.select :language, WritingConference::LANGUAGE_TYPES, :prompt => 'Select' %>
- <%= f.label :note, t("personal_seminar.note") %> + <%= f.label :note, t("personal_conference.note") %> <%= f.text_area :note, :size => "60x3" %>
@@ -197,7 +197,7 @@
- <%= hidden_field_tag 'plugin_file_field_count', @writing_seminar.writing_seminar_files.count %> + <%= hidden_field_tag 'plugin_file_field_count', @writing_conference.writing_conference_files.count %> ADD/新增
@@ -206,9 +206,9 @@ - <% @writing_seminar.writing_seminar_files.each_with_index do |writing_seminar_file, i| %> - <%= f.fields_for :writing_seminar_files, writing_seminar_file do |f| %> - <%= render :partial => 'form_file', :object => writing_seminar_file, :locals => {:f => f, :i => i} %> + <% @writing_conference.writing_conference_files.each_with_index do |writing_conference_file, i| %> + <%= f.fields_for :writing_conference_files, writing_conference_file do |f| %> + <%= render :partial => 'form_file', :object => writing_conference_file, :locals => {:f => f, :i => i} %> <% end %> <% end %> @@ -242,7 +242,7 @@ var new_id = $(this).prev().attr('value'); var old_id = new RegExp("new_add_plugin_files", "g"); $(this).prev().attr('value', parseInt(new_id) + 1); - $(this).parents('table').append(("<%= escape_javascript(add_attribute 'form_file', f, :writing_seminar_files) %>").replace(old_id, new_id)); + $(this).parents('table').append(("<%= escape_javascript(add_attribute 'form_file', f, :writing_conference_files) %>").replace(old_id, new_id)); }); $('.add_plugin_files_block a.delete').live('click', function(){ @@ -255,4 +255,4 @@ }); -<% end %> \ No newline at end of file +<% end %> diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_form_file.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_form_file.html.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_form_file.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_form_file.html.erb diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_list_author_type.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_list_author_type.html.erb new file mode 100644 index 00000000..80cd726f --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_list_author_type.html.erb @@ -0,0 +1,11 @@ +<% # encoding: utf-8 %> + + + <%= list_author_type.title %> + + + 編輯 + <%= link_to show_toggle_archive_btn(list_author_type), + polymorphic_path([:panel, :personal_conference, :back_end, list_author_type]), :confirm => t('announcement.sure?'), :method => :delete, :remote => true,:class=>"archive_toggle action" %> + + diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_list_paper_type.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_list_paper_type.html.erb new file mode 100644 index 00000000..11b16128 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_list_paper_type.html.erb @@ -0,0 +1,11 @@ +<% # encoding: utf-8 %> + + + <%= list_paper_type.title %> + + + 編輯 + <%= link_to show_toggle_archive_btn(list_paper_type), + polymorphic_path([:panel, :personal_conference, :back_end, list_paper_type]), :confirm => t('announcement.sure?'), :method => :delete, :remote => true,:class=>"archive_toggle action" %> + + diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_paper_type_qe.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_paper_type_qe.html.erb similarity index 93% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_paper_type_qe.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_paper_type_qe.html.erb index a96aaab6..2c9a9797 100644 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_paper_type_qe.html.erb +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_paper_type_qe.html.erb @@ -26,9 +26,9 @@ <% end %>
<% end %> - \ No newline at end of file + diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_sort_headers.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_sort_headers.html.erb new file mode 100644 index 00000000..29fb2056 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_sort_headers.html.erb @@ -0,0 +1,4 @@ +<%= render_sort_bar(true, delete_panel_personal_conference_back_end_writing_conferences_path(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options]), + ['year', 'year', 'span1', 'writing_conference.year'], + ['title', 'title','span3', 'writing_conference.title'], + ['create_modified', 'create_user_id','span1-3', 'writing_conference.create_modified']).html_safe %> diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_writing_conference.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_writing_conference.html.erb new file mode 100644 index 00000000..3f884496 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/_writing_conference.html.erb @@ -0,0 +1,21 @@ + + + <% if (writing_conference.create_user_id == current_user.id) || is_manager? %> + <%= check_box_tag 'to_delete[]', writing_conference.id, false, :class => "checkbox_in_list" %> + <% end -%> + + <%= writing_conference.year %> + + <%= link_to writing_conference.create_link, panel_personal_conference_front_end_writing_conference_path(writing_conference) %> +
+ +
+ + <%= User.from_id(writing_conference.create_user_id).name rescue ''%> + + diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/author_type_quick_add.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/author_type_quick_add.js.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/author_type_quick_add.js.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/author_type_quick_add.js.erb diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/author_type_quick_edit.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/author_type_quick_edit.js.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/author_type_quick_edit.js.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/author_type_quick_edit.js.erb diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/create_writing_conference_setting.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/create_writing_conference_setting.js.erb new file mode 100644 index 00000000..6831b06b --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/create_writing_conference_setting.js.erb @@ -0,0 +1,10 @@ + +<% if !@conference_paper_type.blank? %> +$("#myModal1").modal('hide'); +$('<%= j render :partial => 'list_paper_type', :collection => [@conference_paper_type] %>').appendTo('#paper_types').hide().fadeIn(); +<% end %> + +<% if !@conference_author_type.blank? %> +$("#myModal2").modal('hide'); +$('<%= j render :partial => 'list_author_type', :collection => [@conference_author_type] %>').appendTo('#author_types').hide().fadeIn(); +<% end %> diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/destroy.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/destroy.js.erb new file mode 100644 index 00000000..46ccd29a --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/destroy.js.erb @@ -0,0 +1 @@ +$("#<%= dom_id @writing_conference %>").remove(); diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/edit.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/edit.html.erb similarity index 63% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/edit.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/edit.html.erb index 647ac28f..d40d7ae6 100644 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/edit.html.erb +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/edit.html.erb @@ -8,8 +8,8 @@ -

<%= t('personal_seminar.editing_personal_seminar') %>

+

<%= t('personal_conference.editing_personal_conference') %>

-<%= form_for @writing_seminar, :url => panel_personal_seminar_back_end_writing_seminar_path(@writing_seminar), :html => {:class => 'clear'} do |f| %> +<%= form_for @writing_conference, :url => panel_personal_conference_back_end_writing_conference_path(@writing_conference), :html => {:class => 'clear'} do |f| %> <%= render :partial => 'form', :locals => {:f => f} %> <% end %> diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/index.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/index.html.erb similarity index 50% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/index.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/index.html.erb index 33fa0dae..3126f05c 100644 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/index.html.erb +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/index.html.erb @@ -19,15 +19,15 @@ - - <%= render :partial => 'writing_seminar', :collection => @writing_seminars %> + + <%= render :partial => 'writing_conference', :collection => @writing_conferences %> -
- <%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t('setting'), panel_personal_seminar_back_end_writing_seminar_setting_path, :class => 'btn btn-primary pull-right' %> - <%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_panel_personal_seminar_back_end_writing_seminar_path, :class => 'btn btn-primary pull-right' %> -
- <%= paginate @writing_seminars, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %> +
+ <%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t('setting'), panel_personal_conference_back_end_writing_conference_setting_path, :class => 'btn btn-primary pull-right' %> + <%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_panel_personal_conference_back_end_writing_conference_path, :class => 'btn btn-primary pull-right' %> +
+ <%= paginate @writing_conferences, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>
diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/index.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/index.js.erb new file mode 100644 index 00000000..b3851d26 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/index.js.erb @@ -0,0 +1,3 @@ +$("#sort_headers").html("<%= j render 'sort_headers' %>"); +$("#tbody_writing_conferences").html("<%= j render :partial => 'writing_conference', :collection => @writing_conferences %>"); +$("#writing_conference_pagination").html("<%= j paginate @writing_conferences, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>"); diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/new.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/new.html.erb similarity index 69% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/new.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/new.html.erb index 632c59ea..f2664a90 100644 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/new.html.erb +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/new.html.erb @@ -11,8 +11,8 @@ <%= flash_messages %>
-

<%= t('writing_seminar.new_personal_seminar') %>

-<%= form_for @writing_seminar, :url => panel_personal_seminar_back_end_writing_seminars_path, :html => {:class => 'clear'} do |f| %> +

<%= t('writing_conference.new_personal_conference') %>

+<%= form_for @writing_conference, :url => panel_personal_conference_back_end_writing_conferences_path, :html => {:class => 'clear'} do |f| %> <%= render :partial => 'form', :locals => {:f => f} %> <% end %>
diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/paper_type_quick_add.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/paper_type_quick_add.js.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/paper_type_quick_add.js.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/paper_type_quick_add.js.erb diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/paper_type_quick_edit.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/paper_type_quick_edit.js.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/paper_type_quick_edit.js.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/paper_type_quick_edit.js.erb diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/show.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/show.html.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/show.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/show.html.erb diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/toggle_enable.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/toggle_enable.js.erb similarity index 100% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/toggle_enable.js.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/toggle_enable.js.erb diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/update_writing_conference_setting.js.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/update_writing_conference_setting.js.erb new file mode 100644 index 00000000..ec6663ee --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/update_writing_conference_setting.js.erb @@ -0,0 +1,10 @@ + +<% if !@conference_paper_type.blank? %> +$("#myModal1").modal('hide'); +$("#<%= dom_id @conference_paper_type %>").replaceWith("<%= j render :partial => 'list_paper_type', :collection => [@conference_paper_type] %>"); +<% end %> + +<% if !@conference_author_type.blank? %> +$("#myModal2").modal('hide'); +$("#<%= dom_id @conference_author_type %>").replaceWith("<%= j render :partial => 'list_author_type', :collection => [@conference_author_type] %>"); +<% end %> diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/writing_seminar_setting.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/writing_conference_setting.html.erb similarity index 94% rename from vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/writing_seminar_setting.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/writing_conference_setting.html.erb index 2c97a4b3..7e86f073 100644 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/writing_seminar_setting.html.erb +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/back_end/writing_conferences/writing_conference_setting.html.erb @@ -14,7 +14,7 @@

- <%= t('add')%> + <%= t('add')%> 論文型態

@@ -40,7 +40,7 @@

- <%= t('add')%> + <%= t('add')%> 作者型態

@@ -152,4 +152,4 @@ <% content_for :page_specific_css do %> <%= stylesheet_link_tag "item" %> -<% end %> \ No newline at end of file +<% end %> diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_p.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_p.html.erb new file mode 100644 index 00000000..23e1484c --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_p.html.erb @@ -0,0 +1,33 @@ +
+
+ +
+ +
+
+
+
+
+
+
diff --git a/app/views/desktop/seminar_pages/list.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_pages/index.html.erb similarity index 100% rename from app/views/desktop/seminar_pages/list.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_pages/index.html.erb diff --git a/app/views/desktop/seminar_pages/add.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_pages/new.html.erb similarity index 97% rename from app/views/desktop/seminar_pages/add.html.erb rename to vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_pages/new.html.erb index 190e8abd..28283456 100644 --- a/app/views/desktop/seminar_pages/add.html.erb +++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_pages/new.html.erb @@ -41,10 +41,10 @@
    -
  • +
  • OralPoster
  • -
  • +
-
\ No newline at end of file +
diff --git a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/_form.html.erb b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/_form.html.erb index 431fe8ce..cca8a697 100644 --- a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/_form.html.erb +++ b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/_form.html.erb @@ -78,11 +78,11 @@
  • - <%= label_tag("", "Total Pages", class: "s_grid_2 s_grid") %><%= f.text_field :total_pages, size: "20", placeholder:"20", class: "s_grid_4 s_grid"%> + <%= label_tag("", t("personal_journal.total_pages"), class: "s_grid_2 s_grid") %><%= f.text_field :total_pages, size: "20", placeholder:"20", class: "s_grid_4 s_grid"%>
  • - <%= label_tag("", t("personal_journal.total_pages"), class: "s_grid_2 s_grid") %><%= label_tag("", "from", class: "s_grid_1 s_grid") %><%= f.text_field :form_to_start, size: "10", placeholder: "1", class: "s_grid_1 s_grid"%><%= label_tag("", "to", class: "s_grid_1 s_grid") %><%= f.text_field :form_to_end, size: "10", placeholder: "20", class: "s_grid_1 s_grid"%> + <%= label_tag("", t("personal_journal.total_pages"), class: "s_grid_2 s_grid") %><%= label_tag("", t("personal_journal.from"), class: "s_grid_1 s_grid") %><%= f.text_field :form_to_start, size: "10", placeholder: "1", class: "s_grid_1 s_grid"%><%= label_tag("", t("personal_journal.to"), class: "s_grid_1 s_grid") %><%= f.text_field :form_to_end, size: "10", placeholder: "20", class: "s_grid_1 s_grid"%>
  • @@ -93,7 +93,7 @@ <%= f.text_area locale, class: "s_grid_6 s_grid", size: "20x2", - placeholder: t("web_resource.authors"), + placeholder: t("personal_journal.authors"), "autocomplete-list" => "coauthor_autocomplete_list", value: (@writing_journal.authors_translations[locale] rescue nil) %> <% end %> @@ -143,7 +143,7 @@
  • - <%= f.text_field :tag, size: "20", value: "Tag", class: "s_grid_6 s_grid"%> + <%= f.text_field :tags, size: "20", placeholder: t("personal_journal.tags"), class: "s_grid_6 s_grid"%>
  • @@ -155,7 +155,7 @@
  • - <%= label_tag("", "Reference URL", class: "s_grid_2 s_grid") %><%= f.text_field :url, size: "20", placeholder: "www.sample.com", class: "s_grid_4 s_grid"%> + <%= label_tag("", t("personal_journal.url"), class: "s_grid_2 s_grid") %><%= f.text_field :url, size: "20", placeholder: "www.sample.com", class: "s_grid_4 s_grid"%>
  • @@ -165,9 +165,9 @@ - - - + + + @@ -193,14 +193,14 @@
    • - <%= f.text_area :note, size: "20x22", placeholder: "Note", class: "s_grid_6 s_grid full_height"%> + <%= f.text_area :note, size: "20x22", placeholder: t("personal_journal.note"), class: "s_grid_6 s_grid full_height"%>
    • - <%= f.text_area :abstract, size: "20x22", placeholder: "Abstract", class: "s_grid_6 s_grid full_height"%> + <%= f.text_area :abstract, size: "20x22", placeholder: t("personal_journal.abstract"), class: "s_grid_6 s_grid full_height"%>
    diff --git a/vendor/built_in_modules/personal_journal/config/locales/en.yml b/vendor/built_in_modules/personal_journal/config/locales/en.yml index 83dbd328..f692a937 100644 --- a/vendor/built_in_modules/personal_journal/config/locales/en.yml +++ b/vendor/built_in_modules/personal_journal/config/locales/en.yml @@ -1,135 +1,29 @@ -# Sample localization file for English. Add more files in this directory for other locales. -# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. - en: - - _locale: English - - add: Add - back: Back - create: Create - delete: Delete - disable: Disable - downloaded: Downloaded - download: Download - edit: Edit - enable: Enable - hide: Hide - homepage: Homepage - no_: "No" - nothing: Nothing - show: Show - sure?: Are you sure? - update: Update - yes_: "Yes" - - announcement: - sure?: Sure? - - - web_resource: - list_lower: list - list_link: Links list - - - # admin: - # action: Action - # add_language: Add language - # admin: Admin - # action: Action - # announcement: Announcement - # asset: Asset - # attributes: Attributes - # cant_delete_self: You can not delete yourself. - # cant_revoke_self_admin: You can not revoke your admin role yourself. - # class: Class - # content: Content - # create_error_link: Error when creating link. - # create_error_page: Error when creating page. - # create_success_home: Homepage was successfully created. - # create_success_layout: Layout was successfully created. - # create_success_link: Link was successfully created. - # create_success_page: Page was successfully created. - # create_success_snippet: Snippet was successfully created. - # create_success_user: User was successfully created. - # data: Data - # delete_language: Delete language - # description: Description - # design: Design - # disable_language: Disable language - # editing_home: Editing homepage - # editing_layout: Editing layout - # editing_link: Editing link - # editing_page: Editing page - # editing_snippet: Editing snippet - # editing_user_info: Editing user information - # editing_user_role: Editing user role - # email: Email - # enable_language: Enable language - # file_name: Filename - # file_size: File size - # format: Format - # home: Home - # id: ID - # info: Information - # is_published: Is published - # item: Item - # key: Key - # language: Language - # layout: Layout - # layout_name: Layout name - # list_assets: Assets list - # list_designs: Designs list - # list_items: Items list - # list_puchases: Purchases list - # list_snippets: Snippets list - # list_users: Users list - # list_user_infos: User information list - # list_user_roles: User roles list - # member: Member - # move_down: Move down - # move_up: Move up - # multilingual: Multilingual - # my_avatar: My Avatar - # no_home_page: You don't have a homepage - # no_layout: You don't have a layout - # name: Name - # new_asset: New asset - # new_component: New component - # new_home: New homepage - # new_layout: New layout - # new_link: New link - # new_page: New page - # new_snippet: New snippet - # new_user: New user - # new_user_info: New user information - # new_user_role: New user role - # non_multilingual: Non multilingual - # options: Options - # orig_upload_file: Original filename - # position: Position - # published?: Published? - # purchase: Purchase - # registered: Registered - # role: Role - # roles: Roles - # title: Title - # translation: Translation - # type: Type - # up_to_date: Up-to-date - # update_error_link: Error when updating link. - # update_error_page: Error when updating page. - # update_success_content: Content was successfully updated. - # update_success_home: Homepage was successfully updated. - # update_success_layout: Layout was successfully updated. - # update_success_link: Link was successfully updated. - # update_success_page: Page was successfully updated. - # update_success_snippet: Snippet was successfully updated. - # update_success_user: User was successfully updated. - # url: URL - # user: User - # user_info: User information - # user_panel: User panel - # user_role: User role - - panel: + personal_journal: + paper_title : "Paper Title" + journal_title : "Journal Title" + authors : "Authors" + tags : "Tags" + year : "Year" + language : "Language" + isbn : "ISSN(ISBN)" + vol_no : "Vol.No" + issue_no : "Issue.No" + form_to_start : "From" + form_to_end : "To" + total_pages : "Total Pages" + keywords : "Keywords" + abstract : "Abstract" + publication_date : "Date of Publication" + url : "Reference URL" + note : "Note" + level_type : "Level Type" + author_type : "Author Type" + from : "From" + to : "To" + file : "File" + file_name : "File name" + description : "File Description" + add : "Add" + edit : "Edit" + delete : "Destory" diff --git a/vendor/built_in_modules/personal_journal/config/locales/zh_tw.yml b/vendor/built_in_modules/personal_journal/config/locales/zh_tw.yml index a0104cbd..19bf1aa2 100644 --- a/vendor/built_in_modules/personal_journal/config/locales/zh_tw.yml +++ b/vendor/built_in_modules/personal_journal/config/locales/zh_tw.yml @@ -1,243 +1,29 @@ zh_tw: - - _locale: 中文 - - add: 新增 - back: 回去 - create: 創造 - delete: 刪除 - disable: 禁用 - edit: 編輯 - enable: 啟用 - hide: 隱藏 - homepage: 首頁 - no_: "No" - nothing: 無 - show: 顯示 - sure?: 您肯定嗎? - update: 更新 - yes_: "Yes" - - web_resource: - list_lower: 列表 - list_link: 鏈接列表 - category: 分類 - name: 名稱 - describe: 描述 - url: 路徑 - edit: 編輯 - delete: 刪除 - cate_auth: 分類授權 - - -# Chinese (Taiwan) translations for Ruby on Rails -# by tsechingho (http://github.com/tsechingho) - date: - formats: - default: "%Y-%m-%d" - short: "%b%d日" - long: "%Y年%b%d日" - day_names: [星期日, 星期一, 星期二, 星期三, 星期四, 星期五, 星期六] - abbr_day_names: [日, 一, 二, 三, 四, 五, 六] - month_names: [~, 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月] - abbr_month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月] - order: [ :year, :month, :day ] - - time: - formats: - default: "%Y年%b%d日 %A %H:%M:%S %Z" - short: "%b%d日 %H:%M" - long: "%Y年%b%d日 %H:%M" - am: "上午" - pm: "下午" - - datetime: - distance_in_words: - half_a_minute: "半分鐘" - less_than_x_seconds: - one: "不到一秒" - other: "不到 %{count} 秒" - x_seconds: - one: "一秒" - other: "%{count} 秒" - less_than_x_minutes: - one: "不到一分鐘" - other: "不到 %{count} 分鐘" - x_minutes: - one: "一分鐘" - other: "%{count} 分鐘" - about_x_hours: - one: "大約一小時" - other: "大約 %{count} 小時" - x_days: - one: "一天" - other: "%{count} 天" - about_x_months: - one: "大約一個月" - other: "大約 %{count} 個月" - x_months: - one: "一個月" - other: "%{count} 個月" - about_x_years: - one: "大約一年" - other: "大約 %{count} 年" - over_x_years: - one: "一年多" - other: "%{count} 年多" - almost_x_years: - one: "接近一年" - other: "接近 %{count} 年" - prompts: - year: "年" - month: "月" - day: "日" - hour: "時" - minute: "分" - second: "秒" - - number: - format: - separator: "." - delimiter: "," - precision: 3 - significant: false - strip_insignificant_zeros: false - currency: - format: - format: "%u %n" - unit: "NT$" - separator: "." - delimiter: "," - precision: 2 - significant: false - strip_insignificant_zeros: false - percentage: - format: - delimiter: "" - precision: - format: - delimiter: "" - human: - format: - delimiter: "" - precision: 1 - significant: false - strip_insignificant_zeros: false - storage_units: - format: "%n %u" - units: - byte: - one: "Byte" - other: "Bytes" - kb: "KB" - mb: "MB" - gb: "GB" - tb: "TB" - decimal_units: - format: "%n %u" - units: - # 10^-21 zepto, 10^-24 yocto - atto: "渺" # 10^-18 - femto: "飛" # 10^-15 毫微微 - pico: "漠" # 10^-12 微微 - nano: "奈" # 10^-9 毫微 - micro: "微" # 10^-6 - mili: "毫" # 10^-3 milli - centi: "厘" # 10^-2 - deci: "分" # 10^-1 - unit: "" - ten: - one: "十" - other: "十" # 10^1 - hundred: "百" # 10^2 - thousand: "千" # 10^3 kilo - million: "百萬" # 10^6 mega - billion: "十億" # 10^9 giga - trillion: "兆" # 10^12 tera - quadrillion: "千兆" # 10^15 peta - # 10^18 exa, 10^21 zetta, 10^24 yotta - - support: - array: - words_connector: ", " - two_words_connector: " 和 " - last_word_connector: ", 和 " - select: - prompt: "請選擇" - - activerecord: - errors: - template: # ~ 2.3.5 backward compatible - header: - one: "有 1 個錯誤發生使得「%{model}」無法被儲存。" - other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。" - body: "以下欄位發生問題:" - full_messages: - format: "%{attribute} %{message}" - messages: - inclusion: "沒有包含在列表中" - exclusion: "是被保留的關鍵字" - invalid: "是無效的" - confirmation: "不符合確認值" - accepted: "必須是可被接受的" - empty: "不能留空" - blank: "不能是空白字元" - too_long: "過長(最長是 %{count} 個字)" - too_short: "過短(最短是 %{count} 個字)" - wrong_length: "字數錯誤(必須是 %{count} 個字)" - not_a_number: "不是數字" - not_an_integer: "必須是整數" - greater_than: "必須大於 %{count}" - greater_than_or_equal_to: "必須大於或等於 %{count}" - equal_to: "必須等於 %{count}" - less_than: "必須小於 %{count}" - less_than_or_equal_to: "必須小於或等於 %{count}" - odd: "必須是奇數" - even: "必須是偶數" - taken: "已經被使用" - record_invalid: "校驗失敗: %{errors}" - - activemodel: - errors: - template: - header: - one: "有 1 個錯誤發生使得「%{model}」無法被儲存。" - other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。" - body: "以下欄位發生問題:" - - errors: - format: "%{attribute} %{message}" - messages: - inclusion: "沒有包含在列表中" - exclusion: "是被保留的關鍵字" - invalid: "是無效的" - confirmation: "不符合確認值" - accepted: "必須是可被接受的" - empty: "不能留空" - blank: "不能是空白字元" - too_long: "過長(最長是 %{count} 個字)" - too_short: "過短(最短是 %{count} 個字)" - wrong_length: "字數錯誤(必須是 %{count} 個字)" - not_a_number: "不是數字" - not_an_integer: "必須是整數" - greater_than: "必須大於 %{count}" - greater_than_or_equal_to: "必須大於或等於 %{count}" - equal_to: "必須等於 %{count}" - less_than: "必須小於 %{count}" - less_than_or_equal_to: "必須小於或等於 %{count}" - odd: "必須是奇數" - even: "必須是偶數" - template: - header: - one: "有 1 個錯誤發生使得「%{model}」無法被儲存。" - other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。" - body: "以下欄位發生問題:" - - helpers: - select: - prompt: "請選擇" - submit: - create: "新增%{model}" - update: "更新%{model}" - submit: "儲存%{model}" - + personal_journal: + paper_title : "論文名稱" + journal_title : "期刊名稱" + authors : "作者" + tags : "領域" + year : "年度" + language : "語言" + isbn : "ISSN(ISBN)" + vol_no : "卷數" + issue_no : "期數" + form_to_start : "起" + form_to_end : "訖" + total_pages : "總頁數" + keywords : "關鍵字" + abstract : "摘要" + publication_date : "發表日期" + url : "參考連結" + note : "記事" + level_type : "期刊類別" + author_type : "作者類別" + from : "起" + to : "訖" + file : "檔案" + file_name : "檔案名稱" + description : "描述" + add : "新增" + edit : "編輯" + delete : "刪除" diff --git a/vendor/built_in_modules/personal_journal/init.rb b/vendor/built_in_modules/personal_journal/init.rb index cbc50ee2..c993996e 100644 --- a/vendor/built_in_modules/personal_journal/init.rb +++ b/vendor/built_in_modules/personal_journal/init.rb @@ -1,8 +1,8 @@ module PersonalJournal - OrbitApp.registration "Journal",:type=> 'ModuleApp' do - - base_url File.expand_path File.dirname(__FILE__) - personal_plugin :enable => true,:path=>"panel/personal_journal/plugin/profile",:admin_path=>"/panel/personal_journal/back_end/writing_journals",:i18n=>'admin.personal_journal' + OrbitApp.registration "PersonalJournal",:type=> 'ModuleApp' do + module_label 'miss_plugin_i18n.personal_journal' + base_url File.expand_path File.dirname(__FILE__) + personal_plugin :enable => true,:path=>"panel/personal_journal/plugin/profile",:admin_path=>"/panel/personal_journal/back_end/writing_journals",:i18n=>'miss_plugin_i18n.personal_journal' end diff --git a/spec/factories/co_author_relations.rb b/vendor/built_in_modules/personal_journal/spec/factories/co_author_relations.rb similarity index 100% rename from spec/factories/co_author_relations.rb rename to vendor/built_in_modules/personal_journal/spec/factories/co_author_relations.rb diff --git a/spec/factories/co_authors.rb b/vendor/built_in_modules/personal_journal/spec/factories/co_authors.rb similarity index 100% rename from spec/factories/co_authors.rb rename to vendor/built_in_modules/personal_journal/spec/factories/co_authors.rb diff --git a/spec/factories/journal_level_types.rb b/vendor/built_in_modules/personal_journal/spec/factories/journal_level_types.rb similarity index 99% rename from spec/factories/journal_level_types.rb rename to vendor/built_in_modules/personal_journal/spec/factories/journal_level_types.rb index 5aee752b..631a39c9 100644 --- a/spec/factories/journal_level_types.rb +++ b/vendor/built_in_modules/personal_journal/spec/factories/journal_level_types.rb @@ -1,6 +1,5 @@ level = ["SCI", "SCIE", "SSCI", "AH & HCI", "EI", "CSCI", "CSSCI", "TSCI", "TSSCI", "THCI"] - FactoryGirl.define do factory(:journal_level, class: "JournalLevelType") do |f| f.sequence(:title_translations) do |n| diff --git a/spec/factories/writing_journal_files.rb b/vendor/built_in_modules/personal_journal/spec/factories/writing_journal_files.rb similarity index 100% rename from spec/factories/writing_journal_files.rb rename to vendor/built_in_modules/personal_journal/spec/factories/writing_journal_files.rb diff --git a/spec/factories/writing_journals.rb b/vendor/built_in_modules/personal_journal/spec/factories/writing_journals.rb similarity index 100% rename from spec/factories/writing_journals.rb rename to vendor/built_in_modules/personal_journal/spec/factories/writing_journals.rb diff --git a/vendor/built_in_modules/personal_lab/app/controllers/panel/personal_lab/back_end/labs_controller.rb b/vendor/built_in_modules/personal_lab/app/controllers/panel/personal_lab/back_end/labs_controller.rb index 735f9609..76013065 100644 --- a/vendor/built_in_modules/personal_lab/app/controllers/panel/personal_lab/back_end/labs_controller.rb +++ b/vendor/built_in_modules/personal_lab/app/controllers/panel/personal_lab/back_end/labs_controller.rb @@ -194,7 +194,7 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController # end def get_plugins - @plugins = OrbitApp::Module::Registration.all + @plugins = OrbitApp::Plugin::Registration.all end def get_tags diff --git a/vendor/built_in_modules/personal_lab/init.rb b/vendor/built_in_modules/personal_lab/init.rb index 1f42ca8f..2462f8b8 100644 --- a/vendor/built_in_modules/personal_lab/init.rb +++ b/vendor/built_in_modules/personal_lab/init.rb @@ -1,8 +1,8 @@ module PersonalLab - OrbitApp.registration "Lab",:type=> 'ModuleApp' do - - base_url File.expand_path File.dirname(__FILE__) - personal_plugin :enable => true,:path=>"panel/personal_lab/plugin/profile",:admin_path=>"/panel/personal_lab/back_end/labs",:i18n=>'admin.personal_lab' + OrbitApp.registration "PersonalLab",:type=> 'ModuleApp' do + module_label 'miss_plugin_i18n.personal_lab' + base_url File.expand_path File.dirname(__FILE__) + personal_plugin :enable => true,:path=>"panel/personal_lab/plugin/profile",:admin_path=>"/panel/personal_lab/back_end/labs",:i18n=>'miss_plugin_i18n.personal_lab' end diff --git a/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/back_end/writing_patents_controller.rb b/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/back_end/writing_patents_controller.rb index a9481f54..41834651 100644 --- a/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/back_end/writing_patents_controller.rb +++ b/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/back_end/writing_patents_controller.rb @@ -255,7 +255,7 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon # end def get_plugins - @plugins = OrbitApp::Module::Registration.all + @plugins = OrbitApp::Plugin::Registration.all end def get_tags diff --git a/vendor/built_in_modules/personal_patent/init.rb b/vendor/built_in_modules/personal_patent/init.rb index 953c4fc2..49409047 100644 --- a/vendor/built_in_modules/personal_patent/init.rb +++ b/vendor/built_in_modules/personal_patent/init.rb @@ -1,9 +1,8 @@ module PersonalPatent - OrbitApp.registration "Patent",:type=> 'ModuleApp' do - - base_url File.expand_path File.dirname(__FILE__) - personal_plugin :enable => true,:path=>"panel/personal_patent/plugin/profile",:admin_path=>"/panel/personal_patent/back_end/writing_patents",:i18n=>'admin.personal_patent' - + OrbitApp.registration "PersonalPatent",:type=> 'ModuleApp' do + module_label 'miss_plugin_i18n.personal_patent' + base_url File.expand_path File.dirname(__FILE__) + personal_plugin :enable => true,:path=>"panel/personal_patent/plugin/profile",:admin_path=>"/panel/personal_patent/back_end/writing_patents",:i18n=>'miss_plugin_i18n.personal_patent' end diff --git a/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/back_end/projects_controller.rb b/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/back_end/projects_controller.rb index 564e74bb..14deadbb 100644 --- a/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/back_end/projects_controller.rb +++ b/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/back_end/projects_controller.rb @@ -255,11 +255,11 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll # end def get_plugins - @plugins = OrbitApp::Module::Registration.all + @plugins = OrbitApp::Plugin::Registration.all end def get_tags - module_app = ModuleApp.first(:conditions => {:key => 'personal_patent'}) + module_app = ModuleApp.first(:conditions => {:key => 'personal_project'}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id}) end diff --git a/vendor/built_in_modules/personal_project/init.rb b/vendor/built_in_modules/personal_project/init.rb index 1267caec..a1dc7dce 100644 --- a/vendor/built_in_modules/personal_project/init.rb +++ b/vendor/built_in_modules/personal_project/init.rb @@ -1,9 +1,8 @@ module PersonalProject - OrbitApp.registration "Project",:type=> 'ModuleApp' do - + OrbitApp.registration "PersonalProject",:type=> 'ModuleApp' do + module_label 'miss_plugin_i18n.personal_project' base_url File.expand_path File.dirname(__FILE__) - personal_plugin :enable => true,:path=>"panel/personal_project/plugin/profile",:admin_path=>"/panel/personal_project/back_end/projects",:i18n=>'admin.personal_project' - + personal_plugin :enable => true,:path=>"panel/personal_project/plugin/profile",:admin_path=>"/panel/personal_project/back_end/projects",:i18n=>'miss_plugin_i18n.personal_project' end diff --git a/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/back_end/researchs_controller.rb b/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/back_end/researchs_controller.rb index 49158f77..8d4fbe4f 100644 --- a/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/back_end/researchs_controller.rb +++ b/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/back_end/researchs_controller.rb @@ -179,7 +179,7 @@ class Panel::PersonalResearch::BackEnd::ResearchsController < OrbitBackendContro # end def get_plugins - @plugins = OrbitApp::Module::Registration.all + @plugins = OrbitApp::Plugin::Registration.all end def get_tags diff --git a/vendor/built_in_modules/personal_research/init.rb b/vendor/built_in_modules/personal_research/init.rb index d44e4375..75649678 100644 --- a/vendor/built_in_modules/personal_research/init.rb +++ b/vendor/built_in_modules/personal_research/init.rb @@ -1,8 +1,8 @@ module PersonalResearch - OrbitApp.registration "Research",:type=> 'ModuleApp' do - - base_url File.expand_path File.dirname(__FILE__) - personal_plugin :enable => true,:path=>"panel/personal_research/plugin/profile",:admin_path=>"/panel/personal_research/back_end/researchs",:i18n=>'admin.personal_research' + OrbitApp.registration "PersonalResearch",:type=> 'ModuleApp' do + module_label 'miss_plugin_i18n.personal_research' + base_url File.expand_path File.dirname(__FILE__) + personal_plugin :enable => true,:path=>"panel/personal_research/plugin/profile",:admin_path=>"/panel/personal_research/back_end/researchs",:i18n=>'miss_plugin_i18n.personal_research' end diff --git a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/seminar_author_types_controller.rb b/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/seminar_author_types_controller.rb deleted file mode 100644 index b9bc5adf..00000000 --- a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/seminar_author_types_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalSeminar::BackEnd::SeminarAuthorTypesController < Panel::PersonalSeminar::BackEnd::WritingSeminarCategorysController - - def initialize - super - @app_type = 'seminar_author_type' - end - -end diff --git a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/seminar_paper_types_controller.rb b/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/seminar_paper_types_controller.rb deleted file mode 100644 index ad01abb9..00000000 --- a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/seminar_paper_types_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalSeminar::BackEnd::SeminarPaperTypesController < Panel::PersonalSeminar::BackEnd::WritingSeminarCategorysController - - def initialize - super - @app_type = 'seminar_paper_type' - end - -end diff --git a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/tags_controller.rb b/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/tags_controller.rb deleted file mode 100644 index d42ac3b1..00000000 --- a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalSeminar::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'personal_seminar' - end - -end diff --git a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/writing_seminar_categorys_controller.rb b/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/writing_seminar_categorys_controller.rb deleted file mode 100644 index 7714dd86..00000000 --- a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/writing_seminar_categorys_controller.rb +++ /dev/null @@ -1,145 +0,0 @@ -class Panel::PersonalSeminar::BackEnd::WritingSeminarCategorysController < OrbitBackendController - - include OrbitControllerLib::DivisionForDisable - - before_filter :force_order_for_visitor,:only=>[:index,:show] - before_filter :force_order_for_user,:except => [:index,:show] - before_filter :for_app_manager,:except => [:index] - - def index - - get_types - - @writing_seminar_categorys = @types.all - @writing_seminar_category = @types.new(:display => 'List') - - # @url = panel_personal_seminar_back_end_writing_seminar_categorys_path - @url = eval("panel_personal_seminar_back_end_#{@app_type}s_path") - - respond_to do |format| - format.html # index.html.erb - format.js - end - end - - # GET /writing_seminars/1 - # GET /writing_seminars/1.xml - def show - - get_types - - @writing_seminar_category = @types.find(params[:id]) - - respond_to do |format| - format.html # show.html.erb - format.js - end - end - - # GET /writing_seminars/new - # GET /writing_seminars/new.xml - def new - - get_types - - @writing_seminar_category = @types.new(:display => 'List') - - @verb = :post - - respond_to do |format| - format.html # new.html.erb - format.js - end - end - - # GET /writing_seminars/1/edit - def edit - - get_types - - @writing_seminar_category = @types.find(params[:id]) - - # @url = panel_personal_seminar_back_end_writing_seminar_category_path(@writing_seminar_category) - # @url = eval("panel_personal_seminar_back_end_#{@app_type}_path(@writing_seminar_category)") - @url = polymorphic_path([:panel, :personal_seminar, :back_end, @writing_seminar_category]) - - @verb = :put - - respond_to do |format| - format.html - format.js - end - end - - # POST /writing_seminars - # POST /writing_seminars.xml - def create - - get_types - - @writing_seminar_category = @types.new(params[:writing_seminar_category]) - - respond_to do |format| - if @writing_seminar_category.save - format.html { redirect_to(panel_personal_seminar_back_end_writing_seminar_categorys_url, :notice => t('writing_seminar_category.create_writing_seminar_category_success')) } - format.js - else - format.html { render :action => "new" } - format.js { render action: "new" } - end - end - end - - # PUT /writing_seminars/1 - # PUT /writing_seminars/1.xml - def update - - get_types - - @writing_seminar_category = @types.find(params[:id]) - # debugger - # @url = panel_personal_seminar_back_end_writing_seminar_category_path(@writing_seminar_category) - # @url = eval("panel_personal_seminar_back_end_#{@app_type}_path(#{@writing_seminar_category})") - @url = polymorphic_path([:panel, :personal_seminar, :back_end, @writing_seminar_category]) - - respond_to do |format| - if @writing_seminar_category.update_attributes(params[:writing_seminar_category]) - format.html { redirect_to(panel_personal_seminar_back_end_writing_seminar_categorys_url, :notice => t('writing_seminar_category.update_writing_seminar_category_success')) } - # format.xml { head :ok } - format.js - else - format.html { render :action => "edit" } - format.js { render :action => "edit" } - end - end - end - - # DELETE /writing_seminars/1 - # DELETE /writing_seminars/1.xml - def destroy - - get_types - - @writing_seminar_category = @types.find(params[:id]) - @writing_seminar_category.disable = @writing_seminar_category.disable ? false : true - - if @writing_seminar_category.save! - respond_to do |format| - format.html { redirect_to(panel_personal_seminar_back_end_writing_seminar_categorys_url) } - # format.xml { head :ok } - format.js - end - else - flash[:error] = t("writing_seminar_category.update_failed") - format.html { render :action => "index" } - end - - end - - protected - - def get_types - @types = @app_type.classify.constantize - end - -end diff --git a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/writing_seminars_controller.rb b/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/writing_seminars_controller.rb deleted file mode 100644 index 9fd3ffd4..00000000 --- a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/back_end/writing_seminars_controller.rb +++ /dev/null @@ -1,324 +0,0 @@ -class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendController - include AdminHelper - include OrbitControllerLib::DivisionForDisable - - before_filter :authenticate_user! - before_filter :force_order_for_visitor,:only=>[:index,:show] - before_filter :force_order_for_user,:except => [:index,:show] - - before_filter :only => [ :new,:edit,:update] do |controller| - controller.get_categorys('WritingSeminarCategory') - end - - def index - - get_plugins - - get_categorys("SeminarPaperType",params[:seminar_paper_type_id]) - @filter = params[:filter] - new_filter = params[:new_filter] - - if @filter && params[:clear] - @filter.delete(params[:type]) - elsif @filter && new_filter - if @filter.has_key?(new_filter[:type]) && @filter[new_filter[:type]].include?(new_filter[:id].to_s) - @filter[new_filter[:type]].delete(new_filter[:id].to_s) - elsif @filter.has_key?(new_filter[:type]) - @filter[new_filter[:type]] << new_filter[:id].to_s - else - @filter.merge!({new_filter[:type] => [new_filter[:id].to_s]}) - end - elsif new_filter - @filter = {new_filter[:type] => [new_filter[:id].to_s]} - end - - @paper_types = SeminarPaperType.all - @paper_type_ids = @paper_types.collect{|t| t.id.to_s} + [nil] - - - # @writing_seminars = WritingSeminar.search(params[:category_id]) - #@writing_seminars = (params[:sort] || @filter) ? get_sorted_and_filtered_writing_seminars : WritingSeminar.all.page(params[:page]).per(10) - - @writing_seminars = (params[:sort] || @filter) ? get_sorted_and_filtered("writing_seminar",:seminar_paper_type_id.in => @paper_type_ids) : get_viewable("writing_seminar",:seminar_paper_type_id.in => @paper_type_ids) - - - get_tags - - respond_to do |format| - format.html # index.html.erb - format.xml { render :xml => @writing_seminars } - format.js - end - end - - def writing_seminar_setting - - get_plugins - - @author_types = SeminarAuthorType.all - @paper_types = SeminarPaperType.all - - get_tags - - @set_author_type = SeminarAuthorType.new(:display => 'List') - @author_type_url = panel_personal_seminar_back_end_writing_seminars_path - - @set_paper_type = SeminarPaperType.new(:display => 'List') - @paper_type_url = panel_personal_seminar_back_end_writing_seminars_path - - - end - - def paper_type_quick_add - @set_paper_type = SeminarPaperType.new(:display => 'List') - @paper_type_url = panel_personal_seminar_back_end_writing_seminars_path - @set_paper_type.id = params[:id] - - respond_to do |format| - format.js - end - - end - - def paper_type_quick_edit - - @set_paper_type = SeminarPaperType.find(params[:writing_seminar_id]) - @paper_type_url = panel_personal_seminar_back_end_writing_seminar_path(@set_paper_type) - - respond_to do |format| - format.js - end - end - - def author_type_quick_add - @set_author_type = SeminarAuthorType.new(:display => 'List') - @author_type_url = panel_personal_seminar_back_end_writing_seminars_path - @set_author_type.id = params[:id] - - respond_to do |format| - format.js - end - - end - - def author_type_quick_edit - - @set_author_type = SeminarAuthorType.find(params[:writing_seminar_id]) - @author_type_url = panel_personal_seminar_back_end_writing_seminar_path(@set_author_type) - - respond_to do |format| - format.js - end - end - - # GET /writing_seminars/1 - # GET /writing_seminars/1.xml - def show - @writing_seminar = WritingSeminar.find(params[:id]) - respond_to do |format| - format.html # show.html.erb - format.xml { render :xml => @writing_seminar } - end - end - - # GET /writing_seminars/new - # GET /writing_seminars/new.xml - def new - - get_plugins - - @writing_seminar = WritingSeminar.new - # @writing_seminar_files = WritingSeminarFile.all - # @paper_types = SeminarLevelType.all - @author_types = SeminarAuthorType.all - @paper_types = SeminarPaperType.all - - get_tags - - respond_to do |format| - format.html # new.html.erb - format.xml { render :xml => @writing_seminar } - end - end - - # GET /writing_seminars/1/edit - def edit - - get_plugins - - @writing_seminar = WritingSeminar.find(params[:id]) - - # @paper_types = SeminarLevelType.all - @author_types = SeminarAuthorType.all - @paper_types = SeminarPaperType.all - - get_tags - end - - # POST /writing_seminars - # POST /writing_seminars.xml - def create - - if params[:seminar_paper_type] - - @seminar_paper_type = SeminarPaperType.new(params[:seminar_paper_type]) - - respond_to do |format| - if @seminar_paper_type.save - format.js { render 'create_writing_seminar_setting' } - end - end - - elsif params[:seminar_author_type] - - @seminar_author_type = SeminarAuthorType.new(params[:seminar_author_type]) - - respond_to do |format| - if @seminar_author_type.save - format.js { render 'create_writing_seminar_setting' } - end - end - - else - - # @paper_types = SeminarLevelType.all - @author_types = SeminarAuthorType.all - @paper_types = SeminarPaperType.all - get_tags - - @writing_seminar = WritingSeminar.new(params[:writing_seminar]) - - if params[:writing_seminar][:user_id] - @writing_seminar.create_user_id = params[:writing_seminar][:user_id] - @writing_seminar.update_user_id = params[:writing_seminar][:user_id] - else - @writing_seminar.create_user_id = current_user.id - @writing_seminar.update_user_id = current_user.id - end - - respond_to do |format| - if @writing_seminar.save - - if params[:writing_seminar][:user_id] - format.html { redirect_to(admin_users_new_interface_url(:id=>params[:writing_seminar][:user_id],:show_plugin_profile=>'Seminar')) } - else - format.html { redirect_to(panel_personal_seminar_back_end_writing_seminars_url) } - end - - format.xml { render :xml => @writing_seminar, :status => :created, :location => @writing_seminar } - else - format.html { render :action => "new" } - format.xml { render :xml => @writing_seminar.errors, :status => :unprocessable_entity } - end - end - end - - end - - # PUT /writing_seminars/1 - # PUT /writing_seminars/1.xml - def update - - if params[:seminar_paper_type] - - @seminar_paper_type = SeminarPaperType.find(params[:id]) - - respond_to do |format| - - if @seminar_paper_type.update_attributes(params[:seminar_paper_type]) - # format.html { redirect_to(panel_announcement_back_end_bulletins_url) } - format.js { render 'update_writing_seminar_setting' } - end - end - - elsif params[:seminar_author_type] - - @seminar_author_type = SeminarAuthorType.find(params[:id]) - - respond_to do |format| - - if @seminar_author_type.update_attributes(params[:seminar_author_type]) - # format.html { redirect_to(panel_announcement_back_end_bulletins_url) } - format.js { render 'update_writing_seminar_setting' } - end - end - - else - - @writing_seminar = WritingSeminar.find(params[:id]) - - @writing_seminar.update_user_id = current_user.id - - params[:writing_seminar][:tag_ids] ||=[] - - respond_to do |format| - if @writing_seminar.update_attributes(params[:writing_seminar]) - format.html { redirect_to(panel_personal_seminar_back_end_writing_seminars_url) } - # format.js { render 'toggle_enable' } - format.xml { head :ok } - else - format.html { render :action => "edit" } - format.xml { render :xml => @writing_seminar.errors, :status => :unprocessable_entity } - end - end - end - - end - - # DELETE /writing_seminars/1 - # DELETE /writing_seminars/1.xml - def destroy - @writing_seminar = WritingSeminar.find(params[:id]) - @writing_seminar.destroy - - respond_to do |format| - format.html { redirect_to(panel_personal_seminar_back_end_writing_seminars_url) } - # format.xml { head :ok } - format.js - end - end - - def delete - if params[:ids] - writing_seminars = WritingSeminar.any_in(:_id => params[:ids]).delete_all - end - redirect_to panel_personal_seminar_back_end_writing_seminars_url(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options]) - end - - protected - - - # def get_index_categories(id = nil) - # @bulletin_categorys = [] - # if(is_manager? || is_admin?) - # @bulletin_categorys = (id ? BulletinCategory.admin_manager_all.find(id).to_a : BulletinCategory.admin_manager_all) - # elsif is_sub_manager? - # @bulletin_categorys = BulletinCategory.all - # end - # @bulletin_categorys - # end - - - # def get_categorys(id = nil) - # @writing_seminar_categorys = [] - # if(is_manager? || is_admin?) - # @writing_seminar_categorys = (id ? WritingSeminarCategory.admin_manager_all.find(id).to_a : WritingSeminarCategory.admin_manager_all)) - # elsif is_sub_manager? - # @writing_seminar_categorys = WritingSeminarCategory.all.authed_for_user(current_user,'edit') - # end - # if @writing_seminar_categorys.empty? && params[:action] != "index" - # flash[:alert] = t("announcement.error.no_avilb_cate_for_posting") - # redirect_to :action => :index - # end - # end - - def get_plugins - @plugins = OrbitApp::Module::Registration.all - end - - def get_tags - module_app = ModuleApp.first(:conditions => {:key => 'personal_seminar'}) - @tags = Tag.all(:conditions => {:module_app_id => module_app.id}) - end - -end diff --git a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/front_end/writing_seminars_controller.rb b/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/front_end/writing_seminars_controller.rb deleted file mode 100644 index ba6daf70..00000000 --- a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/front_end/writing_seminars_controller.rb +++ /dev/null @@ -1,31 +0,0 @@ -class Panel::PersonalSeminar::FrontEnd::WritingSeminarsController < OrbitWidgetController - - def initialize - super - @app_title = 'personal_seminar' - end - - - def index - - @writing_seminars = WritingSeminar.desc(:year).page(params[:page]).per(10) - - end - - # GET /writing_seminars/1 - # GET /writing_seminars/1.xml - def show - @writing_seminar = WritingSeminar.find(params[:id]) - - @seminar_paper_types = ( !@writing_seminar.seminar_paper_types.blank? ? @writing_seminar.seminar_paper_types.collect{|x| x.title}.join(', ') : nil) - @seminar_author_types = ( !@writing_seminar.seminar_author_types.blank? ? @writing_seminar.seminar_author_types.collect{|x| x.title}.join(', ') : nil) - - end - - - def get_tags - module_app = ModuleApp.first(:conditions => {:key => 'personal_seminar'}) - @tags = Tag.all(:conditions => {:module_app_id => module_app.id}) - end - -end diff --git a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/plugin/writing_seminars_controller.rb b/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/plugin/writing_seminars_controller.rb deleted file mode 100644 index ec92a6be..00000000 --- a/vendor/built_in_modules/personal_seminar/app/controllers/panel/personal_seminar/plugin/writing_seminars_controller.rb +++ /dev/null @@ -1,187 +0,0 @@ -class Panel::PersonalSeminar::Plugin::WritingSeminarsController < OrbitBackendController - include AdminHelper - include OrbitControllerLib::DivisionForDisable - - before_filter :authenticate_user! - before_filter :force_order_for_visitor,:only=>[:index,:show] - before_filter :force_order_for_user,:except => [:index,:show] - - before_filter :only => [ :new,:edit,:update] do |controller| - controller.get_categorys('WritingSeminarCategory') - end - - - def index - - get_categorys("SeminarPaperType",params[:seminar_paper_type_id]) - @filter = params[:filter] - new_filter = params[:new_filter] - - if @filter && params[:clear] - @filter.delete(params[:type]) - elsif @filter && new_filter - if @filter.has_key?(new_filter[:type]) && @filter[new_filter[:type]].include?(new_filter[:id].to_s) - @filter[new_filter[:type]].delete(new_filter[:id].to_s) - elsif @filter.has_key?(new_filter[:type]) - @filter[new_filter[:type]] << new_filter[:id].to_s - else - @filter.merge!({new_filter[:type] => [new_filter[:id].to_s]}) - end - elsif new_filter - @filter = {new_filter[:type] => [new_filter[:id].to_s]} - end - @paper_types = SeminarPaperType.all - @paper_type_ids = @paper_types.collect{|t| t.id.to_s} + [nil] - - - # @writing_seminars = WritingSeminar.search(params[:category_id]) - #@writing_seminars = (params[:sort] || @filter) ? get_sorted_and_filtered_writing_seminars : WritingSeminar.all.page(params[:page]).per(10) - @writing_seminars = (params[:sort] || @filter) ? get_sorted_and_filtered("writing_seminar",:create_user_id => current_user.id) : get_viewable("writing_seminar", :create_user_id => current_user.id) - - get_tags - - respond_to do |format| - format.html # index.html.erb - format.xml { render :xml => @writing_seminars } - format.js - end - end - - # GET /writing_seminars/1 - # GET /writing_seminars/1.xml - def show - @writing_seminar = WritingSeminar.find(params[:id]) - respond_to do |format| - format.html # show.html.erb - format.xml { render :xml => @writing_seminar } - end - end - - # GET /writing_seminars/new - # GET /writing_seminars/new.xml - def new - - @writing_seminar = WritingSeminar.new - # @writing_seminar_files = WritingSeminarFile.all - # @level_types = SeminarLevelType.all - @author_types = SeminarAuthorType.all - @paper_types = SeminarPaperType.all - - get_tags - - respond_to do |format| - format.html # new.html.erb - format.xml { render :xml => @writing_seminar } - end - end - - # GET /writing_seminars/1/edit - def edit - @writing_seminar = WritingSeminar.find(params[:id]) - - # @level_types = SeminarLevelType.all - @author_types = SeminarAuthorType.all - @paper_types = SeminarPaperType.all - - get_tags - end - - # POST /writing_seminars - # POST /writing_seminars.xml - def create - - # @level_types = SeminarLevelType.all - @author_types = SeminarAuthorType.all - @paper_types = SeminarPaperType.all - get_tags - - @writing_seminar = WritingSeminar.new(params[:writing_seminar]) - - @writing_seminar.create_user_id = current_user.id - @writing_seminar.update_user_id = current_user.id - - respond_to do |format| - if @writing_seminar.save - format.html { redirect_to(panel_personal_seminar_plugin_writing_seminars_url) } - format.xml { render :xml => @writing_seminar, :status => :created, :location => @writing_seminar } - else - format.html { render :action => "new" } - format.xml { render :xml => @writing_seminar.errors, :status => :unprocessable_entity } - end - end - end - - # PUT /writing_seminars/1 - # PUT /writing_seminars/1.xml - def update - @writing_seminar = WritingSeminar.find(params[:id]) - - @writing_seminar.update_user_id = current_user.id - - params[:writing_seminar][:tag_ids] ||=[] - - respond_to do |format| - if @writing_seminar.update_attributes(params[:writing_seminar]) - format.html { redirect_to(panel_personal_seminar_plugin_writing_seminars_url) } - # format.js { render 'toggle_enable' } - format.xml { head :ok } - else - format.html { render :action => "edit" } - format.xml { render :xml => @writing_seminar.errors, :status => :unprocessable_entity } - end - end - end - - # DELETE /writing_seminars/1 - # DELETE /writing_seminars/1.xml - def destroy - @writing_seminar = WritingSeminar.find(params[:id]) - @writing_seminar.destroy - - respond_to do |format| - format.html { redirect_to(panel_personal_seminar_plugin_writing_seminars_url) } - # format.xml { head :ok } - format.js - end - end - - def delete - if params[:ids] - writing_seminars = WritingSeminar.any_in(:_id => params[:ids]).delete_all - end - redirect_to panel_personal_seminar_plugin_writing_seminars_url(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options]) - end - - protected - - - # def get_index_categories(id = nil) - # @bulletin_categorys = [] - # if(is_manager? || is_admin?) - # @bulletin_categorys = (id ? BulletinCategory.admin_manager_all.find(id).to_a : BulletinCategory.admin_manager_all) - # elsif is_sub_manager? - # @bulletin_categorys = BulletinCategory.all - # end - # @bulletin_categorys - # end - - - # def get_categorys(id = nil) - # @writing_seminar_categorys = [] - # if(is_manager? || is_admin?) - # @writing_seminar_categorys = (id ? WritingSeminarCategory.admin_manager_all.find(id).to_a : WritingSeminarCategory.admin_manager_all)) - # elsif is_sub_manager? - # @writing_seminar_categorys = WritingSeminarCategory.all.authed_for_user(current_user,'edit') - # end - # if @writing_seminar_categorys.empty? && params[:action] != "index" - # flash[:alert] = t("announcement.error.no_avilb_cate_for_posting") - # redirect_to :action => :index - # end - # end - - def get_tags - module_app = ModuleApp.first(:conditions => {:key => 'personal_seminar'}) - @tags = Tag.all(:conditions => {:module_app_id => module_app.id}) - end - -end diff --git a/vendor/built_in_modules/personal_seminar/app/models/personal_seminar_tag.rb b/vendor/built_in_modules/personal_seminar/app/models/personal_seminar_tag.rb deleted file mode 100644 index 3054f245..00000000 --- a/vendor/built_in_modules/personal_seminar/app/models/personal_seminar_tag.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PersonalSeminarTag < Tag - - has_and_belongs_to_many :writing_seminars - - def get_visible_links(sort = :title) - self.writing_seminars.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/models/seminar_author_type.rb b/vendor/built_in_modules/personal_seminar/app/models/seminar_author_type.rb deleted file mode 100644 index c32a1842..00000000 --- a/vendor/built_in_modules/personal_seminar/app/models/seminar_author_type.rb +++ /dev/null @@ -1,9 +0,0 @@ -# encoding: utf-8 - -class SeminarAuthorType < WritingSeminarCategory - - field :title, localize: true - - has_and_belongs_to_many :writing_seminars - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/models/seminar_paper_type.rb b/vendor/built_in_modules/personal_seminar/app/models/seminar_paper_type.rb deleted file mode 100644 index 50b8bc0c..00000000 --- a/vendor/built_in_modules/personal_seminar/app/models/seminar_paper_type.rb +++ /dev/null @@ -1,9 +0,0 @@ -# encoding: utf-8 - -class SeminarPaperType < WritingSeminarCategory - - field :title, localize: true - - has_and_belongs_to_many :writing_seminars - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/_writing_seminar_category.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/_writing_seminar_category.html.erb deleted file mode 100644 index af477f32..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/_writing_seminar_category.html.erb +++ /dev/null @@ -1,22 +0,0 @@ - - - - <% if @types.is_localized?(:title) %> - <% @site_valid_locales.each do |locale| %> - - <% end %> - <% else %> - - <% end %> - diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/create.js.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/create.js.erb deleted file mode 100644 index 796935a7..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/create.js.erb +++ /dev/null @@ -1,2 +0,0 @@ -$('<%= j render :partial => 'writing_seminar_category', :collection => [@writing_seminar_category] %>').appendTo('#writing_seminar_categorys').hide().fadeIn(); -$("#form_writing_seminar_category")[0].reset(); \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/destroy.js.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/destroy.js.erb deleted file mode 100644 index 0387e8e2..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/destroy.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#<%= dom_id @writing_seminar_category %>").find(".archive_toggle").text("<%= show_toggle_archive_btn(@writing_seminar_category) %> "); \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/edit.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/edit.html.erb deleted file mode 100644 index 0dd54059..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/edit.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -

    <%= t('personal_seminar.editing_personal_seminar_class') %>

    - -<%= form_for @writing_seminar_category, :url => panel_personal_seminar_back_end_writing_seminar_category_path(@writing_seminar_category) do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> -<% end %> - -<%= link_back %> diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/new.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/new.html.erb deleted file mode 100644 index 52ca2d51..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/new.html.erb +++ /dev/null @@ -1,19 +0,0 @@ -<% content_for :secondary do %> -<%= render :partial => '/panel/personal_seminar/back_end/personal_seminar_secondary' %> -<% end -%> - -<%= flash_messages %> - -
    -
    -
    -
    -
    - -

    <%= t('writing_seminar_category.new_personal_seminar_class') %>

    -<%= form_for @writing_seminar_category, :url => panel_personal_seminar_back_end_writing_seminar_categorys_path do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> -<% end %> - -<%= link_back %> - diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/update.js.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/update.js.erb deleted file mode 100644 index 217e760e..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminar_categorys/update.js.erb +++ /dev/null @@ -1,4 +0,0 @@ -$("#<%= dom_id @writing_seminar_category %>").replaceWith("<%= j render :partial => 'writing_seminar_category', :collection => [@writing_seminar_category] %>"); -<% @writing_seminar_category = @types.new(:display => 'List') # reset for new form %> -$("#form_writing_seminar_category").replaceWith("<%= j render "form" %>") -$("#form_writing_seminar_category")[0].reset(); \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_list_author_type.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_list_author_type.html.erb deleted file mode 100644 index a0e273e5..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_list_author_type.html.erb +++ /dev/null @@ -1,11 +0,0 @@ -<% # encoding: utf-8 %> - - - - - \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_list_paper_type.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_list_paper_type.html.erb deleted file mode 100644 index 3f4e567c..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_list_paper_type.html.erb +++ /dev/null @@ -1,11 +0,0 @@ -<% # encoding: utf-8 %> - - - - - \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_sort_headers.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_sort_headers.html.erb deleted file mode 100644 index 0addfce3..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_sort_headers.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -<%= render_sort_bar(true, delete_panel_personal_seminar_back_end_writing_seminars_path(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options]), - ['year', 'year', 'span1', 'writing_seminar.year'], - ['title', 'title','span3', 'writing_seminar.title'], - ['create_modified', 'create_user_id','span1-3', 'writing_seminar.create_modified']).html_safe %> \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_writing_seminar.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_writing_seminar.html.erb deleted file mode 100644 index 19c53e8b..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/_writing_seminar.html.erb +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/create_writing_seminar_setting.js.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/create_writing_seminar_setting.js.erb deleted file mode 100644 index e4255313..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/create_writing_seminar_setting.js.erb +++ /dev/null @@ -1,10 +0,0 @@ - -<% if !@seminar_paper_type.blank? %> -$("#myModal1").modal('hide'); -$('<%= j render :partial => 'list_paper_type', :collection => [@seminar_paper_type] %>').appendTo('#paper_types').hide().fadeIn(); -<% end %> - -<% if !@seminar_author_type.blank? %> -$("#myModal2").modal('hide'); -$('<%= j render :partial => 'list_author_type', :collection => [@seminar_author_type] %>').appendTo('#author_types').hide().fadeIn(); -<% end %> \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/destroy.js.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/destroy.js.erb deleted file mode 100644 index 71681388..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/destroy.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#<%= dom_id @writing_seminar %>").remove(); \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/index.js.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/index.js.erb deleted file mode 100644 index 4c4caaf0..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/index.js.erb +++ /dev/null @@ -1,3 +0,0 @@ -$("#sort_headers").html("<%= j render 'sort_headers' %>"); -$("#tbody_writing_seminars").html("<%= j render :partial => 'writing_seminar', :collection => @writing_seminars %>"); -$("#writing_seminar_pagination").html("<%= j paginate @writing_seminars, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>"); \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/update_writing_seminar_setting.js.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/update_writing_seminar_setting.js.erb deleted file mode 100644 index 698d4ada..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/back_end/writing_seminars/update_writing_seminar_setting.js.erb +++ /dev/null @@ -1,10 +0,0 @@ - -<% if !@seminar_paper_type.blank? %> -$("#myModal1").modal('hide'); -$("#<%= dom_id @seminar_paper_type %>").replaceWith("<%= j render :partial => 'list_paper_type', :collection => [@seminar_paper_type] %>"); -<% end %> - -<% if !@seminar_author_type.blank? %> -$("#myModal2").modal('hide'); -$("#<%= dom_id @seminar_author_type %>").replaceWith("<%= j render :partial => 'list_author_type', :collection => [@seminar_author_type] %>"); -<% end %> \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/front_end/writing_seminars/index.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/front_end/writing_seminars/index.html.erb deleted file mode 100644 index 17c994d5..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/front_end/writing_seminars/index.html.erb +++ /dev/null @@ -1,26 +0,0 @@ -<% # encoding: utf-8 %> - -<%= flash_messages %> - -

    <%= t('writing_seminar.list_writing_seminar') %>

    - - -
    FileFile NameAction<%= t("personal_journal.file")%><%= t("personal_journal.file_name")%><%= t("personal_journal.description") %>
    - <%= writing_seminar_category.key %> -
    - -
    -
    <%= writing_seminar_category.title_translations[locale] rescue nil %><%= writing_seminar_category.title %>
    <%= list_author_type.title %> - - 編輯 - <%= link_to show_toggle_archive_btn(list_author_type), - polymorphic_path([:panel, :personal_seminar, :back_end, list_author_type]), :confirm => t('announcement.sure?'), :method => :delete, :remote => true,:class=>"archive_toggle action" %> -
    <%= list_paper_type.title %> - - 編輯 - <%= link_to show_toggle_archive_btn(list_paper_type), - polymorphic_path([:panel, :personal_seminar, :back_end, list_paper_type]), :confirm => t('announcement.sure?'), :method => :delete, :remote => true,:class=>"archive_toggle action" %> -
    - <% if (writing_seminar.create_user_id == current_user.id) || is_manager? %> - <%= check_box_tag 'to_delete[]', writing_seminar.id, false, :class => "checkbox_in_list" %> - <% end -%> - <%= writing_seminar.year %> - <%= link_to writing_seminar.create_link, panel_personal_seminar_front_end_writing_seminar_path(writing_seminar) %> -
    - -
    -
    <%= User.from_id(writing_seminar.create_user_id).name rescue ''%>
    - - - - - - <% @writing_seminars.each do |post| %> - - - - - - <% end %> - -
    <%= t(:year) %><%= t(:title) %>
    <%= post.year %> - <%= link_to post.create_link , panel_personal_seminar_front_end_writing_seminar_path(post) %> -
    - -<%= paginate @writing_seminars, :params => {:inner => false}%> diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/front_end/writing_seminars/show.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/front_end/writing_seminars/show.html.erb deleted file mode 100644 index 2bcf9b23..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/front_end/writing_seminars/show.html.erb +++ /dev/null @@ -1,36 +0,0 @@ -<% # encoding: utf-8 %> - - - - - - - - - - - - - - - - - - - - - - - -
    <%= t("writing_seminar") %>
    <%= t("writing_seminar.year")%><%= @writing_seminar.year %>
    <%= t("writing_seminar.language")%><%= @writing_seminar.language %>
    <%= t("writing_seminar.paper_title")%><%= @writing_seminar.paper_title %>
    <%= t("writing_seminar.seminar_title")%><%= @writing_seminar.seminar_title %>
    <%= t("writing_seminar.seminar_paper_types")%><%= @seminar_paper_types %>
    <%= t("writing_seminar.seminar_author_types")%><%= @seminar_author_types %>
    <%= t("writing_seminar.location")%><%= @writing_seminar.location %>
    <%= t("writing_seminar.sponsor")%><%= @writing_seminar.sponsor %>
    <%= t("writing_seminar.period_start_date")%><%= @writing_seminar.period_start_date %>
    <%= t("writing_seminar.period_end_date")%><%= @writing_seminar.period_end_date %>
    <%= t("writing_seminar.abstract")%><%= @writing_seminar.abstract %>
    <%= t("writing_seminar.publication_date")%><%= @writing_seminar.publication_date %>
    <%= t("writing_seminar.url")%><%= link_to t(:url), @writing_seminar.url, {:target => '_blank', :title => @writing_seminar.seminar_title} if !@writing_seminar.url.blank? %>
    <%= t("writing_seminar.note")%><%= @writing_seminar.note %>
    <%= t("writing_seminar.authors")%><%= "#{User.from_id(@writing_seminar.create_user_id).name rescue ''},#{@writing_seminar.authors rescue ''}"%>
    <%= t("writing_seminar.files")%> -<% if @writing_seminar.writing_seminar_files.size > 0 %> -
    - -
    - <% @writing_seminar.writing_seminar_files.each do | wsfile | %> - <%= link_to wsfile.title, wsfile.file.url, {:target => '_blank', :title => wsfile.title} if wsfile.file.file %> - <% end %> -
    -
    - <% end %> -
    diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/_profile.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/_profile.html.erb deleted file mode 100644 index 590ecdda..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/_profile.html.erb +++ /dev/null @@ -1,62 +0,0 @@ -<% - @filter = params[:filter] - new_filter = params[:new_filter] - - if @filter && params[:clear] - @filter.delete(params[:type]) - elsif @filter && new_filter - if @filter.has_key?(new_filter[:type]) && @filter[new_filter[:type]].include?(new_filter[:id].to_s) - @filter[new_filter[:type]].delete(new_filter[:id].to_s) - elsif @filter.has_key?(new_filter[:type]) - @filter[new_filter[:type]] << new_filter[:id].to_s - else - @filter.merge!({new_filter[:type] => [new_filter[:id].to_s]}) - end - elsif new_filter - @filter = {new_filter[:type] => [new_filter[:id].to_s]} - end - - - if @user - @writing_seminars = WritingSeminar.where(:create_user_id => @user.id).page(params[:page]).per(10) - else - @writing_seminars = WritingSeminar.all.page(params[:page]).per(10) - end - - -%> - - - - - - - - - - - - <% @writing_seminars.each do |writing_seminar| %> - - - - - - - <% end %> - - - -
    <%= t('writing_seminar.year') %><%= t('writing_seminar.title') %>
    <%= writing_seminar.year %> - <%= link_to writing_seminar.create_link, panel_personal_seminar_front_end_writing_seminar_path(writing_seminar) %> -
    - -<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_panel_personal_seminar_back_end_writing_seminar_path(:user_id => @user.id), :class => 'btn btn-primary pull-right' %> - - -
    - <%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_panel_personal_seminar_plugin_writing_seminar_path, :class => 'btn btn-primary pull-right' %> -
    - <%= paginate @writing_seminars, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %> -
    -
    diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/_sort_headers.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/_sort_headers.html.erb deleted file mode 100644 index 39a77825..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/_sort_headers.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -<%= render_sort_bar(true, delete_panel_personal_seminar_back_end_writing_seminars_path(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options]), - ['year', 'year', 'span1', 'writing_seminar.year'], - ['title', 'title','span3', 'writing_seminar.title']).html_safe %> \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/_writing_seminar.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/_writing_seminar.html.erb deleted file mode 100644 index 8d001c47..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/_writing_seminar.html.erb +++ /dev/null @@ -1,20 +0,0 @@ - - - <% if (writing_seminar.create_user_id == current_user.id) || is_manager? %> - <%= check_box_tag 'to_delete[]', writing_seminar.id, false, :class => "checkbox_in_list" %> - <% end -%> - - <%= writing_seminar.year %> - - <%= link_to writing_seminar.create_link, panel_personal_seminar_front_end_writing_seminar_path(writing_seminar) %> -
    - -
    - - - diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/destroy.js.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/destroy.js.erb deleted file mode 100644 index 71681388..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/destroy.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#<%= dom_id @writing_seminar %>").remove(); \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/edit.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/edit.html.erb deleted file mode 100644 index 79118270..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/edit.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

    <%= t('personal_seminar.editing_personal_seminar') %>

    - -<%= form_for @writing_seminar, :url => panel_personal_seminar_plugin_writing_seminar_path(@writing_seminar), :html => {:class => 'clear'} do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> -<% end %> diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/index.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/index.html.erb deleted file mode 100644 index a9c4bfe8..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/index.html.erb +++ /dev/null @@ -1,22 +0,0 @@ -<%= render 'filter' %> - - - - - - - - - - - - <%= render :partial => 'writing_seminar', :collection => @writing_seminars %> - -
    - -
    - <%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_panel_personal_seminar_plugin_writing_seminar_path, :class => 'btn btn-primary pull-right' %> -
    - <%= paginate @writing_seminars, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %> -
    -
    diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/index.js.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/index.js.erb deleted file mode 100644 index 4c4caaf0..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/index.js.erb +++ /dev/null @@ -1,3 +0,0 @@ -$("#sort_headers").html("<%= j render 'sort_headers' %>"); -$("#tbody_writing_seminars").html("<%= j render :partial => 'writing_seminar', :collection => @writing_seminars %>"); -$("#writing_seminar_pagination").html("<%= j paginate @writing_seminars, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>"); \ No newline at end of file diff --git a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/new.html.erb b/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/new.html.erb deleted file mode 100644 index a4c8cae2..00000000 --- a/vendor/built_in_modules/personal_seminar/app/views/panel/personal_seminar/plugin/writing_seminars/new.html.erb +++ /dev/null @@ -1,10 +0,0 @@ - -<%= flash_messages %> -
    -

    <%= t('writing_seminar.new_personal_seminar') %>

    -<%= form_for @writing_seminar, :url => panel_personal_seminar_plugin_writing_seminars_path, :html => {:class => 'clear'} do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> -<% end %> -
    -<%#= link_back %> - diff --git a/vendor/built_in_modules/personal_seminar/config/routes.rb b/vendor/built_in_modules/personal_seminar/config/routes.rb deleted file mode 100644 index d99e2801..00000000 --- a/vendor/built_in_modules/personal_seminar/config/routes.rb +++ /dev/null @@ -1,40 +0,0 @@ -Rails.application.routes.draw do - - namespace :panel do - namespace :personal_seminar do - namespace :back_end do - - match 'writing_seminar_setting' => "writing_seminars#writing_seminar_setting" ,:as => :writing_seminar_setting - - resources :writing_seminars do - collection do - get 'delete' - end - - match "author_type_quick_add" => "writing_seminars#author_type_quick_add" ,:as => :author_type_quick_add - match "author_type_quick_edit" => "writing_seminars#author_type_quick_edit" ,:as => :author_type_quick_edit - - match "paper_type_quick_add" => "writing_seminars#paper_type_quick_add" ,:as => :paper_type_quick_add - match "paper_type_quick_edit" => "writing_seminars#paper_type_quick_edit" ,:as => :paper_type_quick_edit - end - resources :seminar_paper_types - resources :seminar_author_types - # resources :seminar_level_types - resources :tags - end - namespace :front_end do - resources :writing_seminars - end - namespace :plugin do - resources :writing_seminars - end - namespace :widget do - match "writing_seminars" => "writing_seminars#index" - match "home_list" => "writing_seminars#home_list" - match "reload_writing_seminars" => "writing_seminars#reload_writing_seminars" - end - end - end - match "/appfront/*path" => redirect("/panel/*path") - -end diff --git a/vendor/built_in_modules/personal_seminar/lib/personal_seminar.rb b/vendor/built_in_modules/personal_seminar/lib/personal_seminar.rb deleted file mode 100644 index 62d873f8..00000000 --- a/vendor/built_in_modules/personal_seminar/lib/personal_seminar.rb +++ /dev/null @@ -1,4 +0,0 @@ -require "personal_seminar/engine" - -module PersonalSeminar -end diff --git a/vendor/built_in_modules/personal_seminar/lib/personal_seminar/version.rb b/vendor/built_in_modules/personal_seminar/lib/personal_seminar/version.rb deleted file mode 100644 index eb05e148..00000000 --- a/vendor/built_in_modules/personal_seminar/lib/personal_seminar/version.rb +++ /dev/null @@ -1,3 +0,0 @@ -module PersonalSeminar - VERSION = "0.0.1" -end diff --git a/vendor/built_in_modules/personal_seminar/test/personal_seminar_test.rb b/vendor/built_in_modules/personal_seminar/test/personal_seminar_test.rb deleted file mode 100644 index e04b4928..00000000 --- a/vendor/built_in_modules/personal_seminar/test/personal_seminar_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PersonalSeminarTest < ActiveSupport::TestCase - test "truth" do - assert_kind_of Module, PersonalSeminar - end -end diff --git a/vendor/built_in_modules/web_resource/app/views/panel/web_resource/back_end/web_link_categorys/_web_link_category.html.erb b/vendor/built_in_modules/web_resource/app/views/panel/web_resource/back_end/web_link_categorys/_web_link_category.html.erb index f78b9878..bb278435 100644 --- a/vendor/built_in_modules/web_resource/app/views/panel/web_resource/back_end/web_link_categorys/_web_link_category.html.erb +++ b/vendor/built_in_modules/web_resource/app/views/panel/web_resource/back_end/web_link_categorys/_web_link_category.html.erb @@ -8,7 +8,7 @@
    <% end -%> diff --git a/vendor/built_in_modules/web_resource/init.rb b/vendor/built_in_modules/web_resource/init.rb new file mode 100644 index 00000000..abbf2332 --- /dev/null +++ b/vendor/built_in_modules/web_resource/init.rb @@ -0,0 +1,68 @@ +module WebResource + OrbitApp.registration "WebResource",:type=> 'ModuleApp' do + module_label 'link' + base_url File.expand_path File.dirname(__FILE__) + # personal_plugin :enable => true,:path=>"panel/web_resource/plugin/profile",:i18n=>'admin.web_resource' + + version "0.1" + organization "Rulingcom" + author "RD dep" + intro "I am intro" + update_info 'some update_info' + + category ["WebLinkCategory"] + + widgets do + # default_widget do + # query 'Bulletin.all' + # image :image + # end + + categories_query 'BulletinCategory.all' + tags_query 'WebResourceTag.all' + + customize_widget "home_list" do + widget_i18n "web_resource.widget.home_list" + end + end + + side_bar do + head_label_i18n 'link',:icon_class=>"icons-link" + available_for [:admin,:guest,:manager,:sub_manager] + active_for_controllers ({:private=>['web_links', 'web_link_categorys']}) + active_for_object_auth ['WebLinkCategory'] + + head_link_path "panel_web_resource_back_end_web_links_path" + + context_link 'list_', + :link_path=>"panel_web_resource_back_end_web_links_path" , + :priority=>1, + :active_for_action=>{:web_links=>:index}, + :available_for => [:all] + + context_link 'link', + :link_path=>"new_panel_web_resource_back_end_web_link_path" , + :priority=>2, + :active_for_action=>{:web_links=>:new}, + :available_for => [:sub_manager] + + context_link 'categories', + :link_path=>"panel_web_resource_back_end_web_link_categorys_path" , + :priority=>3, + :active_for_action=>{:web_link_categorys=>:index}, + :available_for => [:manager] + + context_link 'tags', + :link_path=>"panel_web_resource_back_end_tags_path" , + :priority=>4, + # :active_for_action=>{:bulletin_categorys=>:index}, + :available_for => [:manager] + + context_link 'module_authorization', + :link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'WebResource'}))", + :priority=>6, + :active_for_app_auth => 'web_resource', + :available_for => [:admin] + end + end +end