From be47fd78a3732b3a8669b35f4e40c16ab4d4b0a2 Mon Sep 17 00:00:00 2001 From: thomaschen <99703040@nccu.edu.tw> Date: Wed, 28 Aug 2013 10:43:10 +0800 Subject: [PATCH] delete unuse data --- .../archive_file_categorys_controller.rb | 147 ---------------- .../back_end/archive_files_controller.rb | 142 ---------------- .../panel/archive/back_end/tags_controller.rb | 8 - .../front_end/archive_files_controller.rb | 91 ---------- .../widget/archive_files_controller.rb | 52 ------ .../back_end/archive_file_categorys_helper.rb | 15 -- .../_archive_file_category.html.erb | 20 --- .../archive_file_categorys/_form.html.erb | 30 ---- .../archive_file_categorys/create.js.erb | 2 - .../archive_file_categorys/destroy.js.erb | 1 - .../archive_file_categorys/edit.js.erb | 1 - .../archive_file_categorys/index.html.erb | 23 --- .../archive_file_categorys/new.js.erb | 1 - .../archive_file_categorys/update.js.erb | 4 - .../archive_files/_archive_file.html.erb | 49 ------ .../archive_files/_clear_filters.html.erb | 3 - .../back_end/archive_files/_filter.html.erb | 37 ----- .../archive_files/_filter_categories.html.erb | 6 - .../archive_files/_filter_status.html.erb | 6 - .../archive_files/_filter_tags.html.erb | 6 - .../back_end/archive_files/_form.html.erb | 157 ------------------ .../archive_files/_form_file.html.erb | 64 ------- .../archive_files/_sort_headers.html.erb | 6 - .../back_end/archive_files/destroy.js.erb | 1 - .../back_end/archive_files/edit.html.erb | 5 - .../back_end/archive_files/index.html.erb | 24 --- .../back_end/archive_files/index.js.erb | 7 - .../back_end/archive_files/new.html.erb | 9 - .../front_end/archive_files/_index.html.erb | 56 ------- .../front_end/archive_files/index.html.erb | 18 -- .../front_end/archive_files/index.js.erb | 1 - .../front_end/archive_files/show.html.erb | 30 ---- .../widget/archive_files/_bulletins.html.erb | 10 -- .../widget/archive_files/_index.html.erb | 98 ----------- .../widget/archive_files/_tag.html.erb | 3 - .../widget/archive_files/_web_links.html.erb | 10 -- .../archive_search_block.html.erb | 8 - .../archive_files/bulletins_list.html.erb | 31 ---- .../archive_files/bulletins_side_bar.html.erb | 23 --- .../widget/archive_files/index.html.erb | 9 - .../archive/widget/archive_files/index.js.erb | 1 - .../archive_files/reload_bulletins.js.erb | 1 - .../archive_files/reload_web_links.js.erb | 1 - 43 files changed, 1217 deletions(-) delete mode 100644 vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/archive_file_categorys_controller.rb delete mode 100644 vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/archive_files_controller.rb delete mode 100644 vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/tags_controller.rb delete mode 100644 vendor/built_in_modules/dictionary/app/controllers/panel/archive/front_end/archive_files_controller.rb delete mode 100644 vendor/built_in_modules/dictionary/app/controllers/panel/archive/widget/archive_files_controller.rb delete mode 100644 vendor/built_in_modules/dictionary/app/helpers/panel/archive/back_end/archive_file_categorys_helper.rb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/_archive_file_category.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/_form.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/create.js.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/destroy.js.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/edit.js.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/index.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/new.js.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/update.js.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_archive_file.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_clear_filters.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_categories.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_status.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_tags.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_form.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_form_file.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_sort_headers.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/destroy.js.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/edit.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/index.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/index.js.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/new.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/_index.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/index.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/index.js.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/show.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_bulletins.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_index.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_tag.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_web_links.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/archive_search_block.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/bulletins_list.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/bulletins_side_bar.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/index.html.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/index.js.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/reload_bulletins.js.erb delete mode 100644 vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/reload_web_links.js.erb diff --git a/vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/archive_file_categorys_controller.rb b/vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/archive_file_categorys_controller.rb deleted file mode 100644 index d96eaa0d3..000000000 --- a/vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/archive_file_categorys_controller.rb +++ /dev/null @@ -1,147 +0,0 @@ -class Panel::Archive::BackEnd::ArchiveFileCategorysController < OrbitBackendController - include OrbitControllerLib::DivisionForDisable - - before_filter :for_app_manager,:except => [:index,:get_categorys_json,:get_archive_files_json] - - before_filter :force_order_for_visitor,:only=>[:index,:get_categorys_json,:get_archive_files_json] - before_filter :force_order_for_user,:except => [:index,:get_categorys_json,:get_archive_files_json] - before_filter :for_app_sub_manager,:except => [:index,:get_categorys_json,:get_archive_files_json] - - def index - @archive_file_categorys = get_categories_for_index("ArchiveFileCategory") - # @archive_file_categorys = ArchiveFileCategory.all - @archive_file_category = ArchiveFileCategory.new(:display => 'List') - - @url = panel_archive_back_end_archive_file_categorys_path - - respond_to do |format| - format.html # index.html.erb - format.js - end - end - - def get_categorys_json - categorys = ArchiveFileCategory.all - data = Array.new - - categorys.each do |c| - data << { - category: c.title, - link: "#{url_for( :action => "index", - :controller => "panel/archive/front_end/archive_files", - :format => :rss, - :only_path => false, - :inner=>true, - :category_id => c )}" - } - end - - render :json => JSON.pretty_generate(data) - end - - def get_archive_files_json - archive_file = ArchiveFileCategory.find(params[:archive_file_category_id]).archive_files - p archive_file - data = Array.new - - archive_file.each do |b| - - data << { - title: b.title, - link: "http://#{request.host_with_port}#{panel_archive_front_end_archive_file_path(b, :category_id => b.archive_file_category.id)}", - tag: b.sorted_tags.to_a, - } - end - - render :json => JSON.pretty_generate(data) - end - - # GET /archive_files/1 - # GET /archive_files/1.xml - def show - @archive_file_category = ArchiveFileCategory.find(params[:id]) - - respond_to do |format| - format.html # show.html.erb - format.js - end - end - - # GET /archive_files/new - # GET /archive_files/new.xml - def new - @archive_file_category = ArchiveFileCategory.new(:display => 'List') - - respond_to do |format| - format.html # new.html.erb - format.js - end - end - - # GET /archive_files/1/edit - def edit - @archive_file_category = ArchiveFileCategory.find(params[:id]) - - @url = panel_archive_back_end_archive_file_category_path(@archive_file_category) - - respond_to do |format| - format.html - format.js - end - end - - # POST /archive_files - # POST /archive_files.xml - def create - @archive_file_category = ArchiveFileCategory.new(params[:archive_file_category]) - - respond_to do |format| - if @archive_file_category.save - format.html { redirect_to(panel_archive_back_end_archive_file_categorys_url, :notice => t('archive_file_category.create_archive_file_category_success')) } - format.js - else - format.html { render :action => "new" } - format.js { render action: "new" } - end - end - end - - # PUT /archive_files/1 - # PUT /archive_files/1.xml - def update - @archive_file_category = ArchiveFileCategory.find(params[:id]) - - @url = panel_archive_back_end_archive_file_category_path(@archive_file_category) - - respond_to do |format| - if @archive_file_category.update_attributes(params[:archive_file_category]) - format.html { redirect_to(panel_archive_back_end_archive_file_categorys_url, :notice => t('archive_file_category.update_archive_file_category_success')) } - # format.xml { head :ok } - format.js - else - format.html { render :action => "edit" } - format.js { render :action => "edit" } - end - end - end - - # DELETE /archive_files/1 - # DELETE /archive_files/1.xml - def destroy - @archive_file_category = ArchiveFileCategory.find(params[:id]) - @archive_file_category.disable = @archive_file_category.disable ? false : true - - if @archive_file_category.save! - respond_to do |format| - flash[:notice] = t("update.success_") - # flash[:error] += @archive_file_category.disable ? t(:enable) : t(disable) - format.html { redirect_to(panel_archive_back_end_archive_file_categorys_url) } - # format.xml { head :ok } - format.js - end - else - flash[:error] = t("update.fail") - format.html { render :action => "index" } - end - end -end diff --git a/vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/archive_files_controller.rb b/vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/archive_files_controller.rb deleted file mode 100644 index 79712fbf7..000000000 --- a/vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/archive_files_controller.rb +++ /dev/null @@ -1,142 +0,0 @@ -class Panel::Archive::BackEnd::ArchiveFilesController < OrbitBackendController - # before_filter :for_app_manager,:except => [:index,:show] - include OrbitControllerLib::DivisionForDisable - - before_filter :force_order_for_visitor,:only=>[:index] - before_filter :force_order_for_user,:except => [:index] - - before_filter :for_app_sub_manager,:except => [:index] - before_filter :only => [ :new,:edit,:update,:create] do |controller| - controller.get_categorys('ArchiveFileCategory') - end - - def index - - get_categorys("ArchiveFileCategory",params[:archive_file_category_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 - @archive_filecategories = get_categories_for_index("ArchiveFileCategory") - @archive_file_category_ids = @archive_file_categories.collect{|t| t.id.to_s} + [nil] - - @archive_files = (params[:sort] || @filter) ? get_sorted_and_filtered("archive_file",:archive_file_category_id.in => @archive_file_category_ids) : get_viewable("archive_file",:archive_file_category_id.in => @archive_file_category_ids) - - @tags = get_tags - - respond_to do |format| - format.html # index.html.erb - format.xml { render :xml => @archive_files } - format.js - end - end - - # GET /archive_files/1 - # GET /archive_files/1.xml - def show - @archive_file = ArchiveFile.find(params[:id]) - - respond_to do |format| - format.html # show.html.erb - format.xml { render :xml => @archive_file } - end - end - - # GET /archive_files/new - # GET /archive_files/new.xml - def new - @archive_file = ArchiveFile.new - - @tags = get_tags - - respond_to do |format| - format.html # new.html.erb - format.xml { render :xml => @archive_file } - end - end - - # GET /archive_files/1/edit - def edit - @archive_file = ArchiveFile.find(params[:id]) - - @tags = get_tags - end - - # POST /archive_files - # POST /archive_files.xml - def create - @archive_file = ArchiveFile.new(params[:archive_file]) - @archive_file.create_user_id = current_user.id - @archive_file.update_user_id = current_user.id - - respond_to do |format| - if @archive_file.save - format.html { redirect_to(panel_archive_back_end_archive_files_url) } - format.xml { render :xml => @archive_file, :status => :created, :location => @archive_file } - else - @tags = get_tags - format.html { render :action => "new" } - format.xml { render :xml => @archive_file.errors, :status => :unprocessable_entity } - end - end - end - - # PUT /archive_files/1 - # PUT /archive_files/1.xml - def update - @archive_file = ArchiveFile.find(params[:id]) - - @archive_file.update_user_id = current_user.id - - params[:archive_file][:tag_ids] ||=[] - - respond_to do |format| - if @archive_file.update_attributes(params[:archive_file]) - format.html { redirect_to(panel_archive_back_end_archive_files_url(:page => params[:page])) } - format.xml { head :ok } - else - format.html { render :action => "edit" } - format.xml { render :xml => @archive_file.errors, :status => :unprocessable_entity } - end - end - end - - # DELETE /archive_files/1 - # DELETE /archive_files/1.xml - def destroy - @archive_file = ArchiveFile.find(params[:id]) - @archive_file.destroy - - respond_to do |format| - format.html { redirect_to(panel_archive_back_end_archive_files_url) } - # format.xml { head :ok } - format.js - end - end - - def delete - if params[:ids] - archive_files = ArchiveFile.any_in(:_id => params[:ids]).destroy_all - end - redirect_to panel_archive_back_end_archive_files_url(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options]) - end - - protected - - # def get_categorys(id = nil) - # @archive_file_categorys = (id ? ArchiveFileCategory.find(id).to_a : ArchiveFileCategory.excludes('disabled' => true)) - # end - -end diff --git a/vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/tags_controller.rb b/vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/tags_controller.rb deleted file mode 100644 index 8dc1d4f3d..000000000 --- a/vendor/built_in_modules/dictionary/app/controllers/panel/archive/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::Archive::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'archive' - end - -end diff --git a/vendor/built_in_modules/dictionary/app/controllers/panel/archive/front_end/archive_files_controller.rb b/vendor/built_in_modules/dictionary/app/controllers/panel/archive/front_end/archive_files_controller.rb deleted file mode 100644 index 03ada60ff..000000000 --- a/vendor/built_in_modules/dictionary/app/controllers/panel/archive/front_end/archive_files_controller.rb +++ /dev/null @@ -1,91 +0,0 @@ -class Panel::Archive::FrontEnd::ArchiveFilesController < OrbitWidgetController - include AdminHelper - - def initialize - super - @app_title = 'archive_files' - end - - def get_search_result - @search = ArchiveFileCategory.solr_search do - fulltext params[:search_query] - with(:frontend_search,true) - end - - search_result = @search.results.collect{|result| result.id} - params[:category_id] = @search.results.collect{|result| result.id} - - @archive_file_categorys = ArchiveFileCategory.any_in(_id:search_result).page( params[:page_main]).per(@page_num) - end - - def index - @item = Page.find(params[:page_id]) - @title = @item.title - if !@item.frontend_data_count.blank? - @page_num = @item.frontend_data_count - else - @page_num = 10 - end - - date_now = Time.now - @archive_file_categorys = ArchiveFileCategory.all - # @archive_files = ArchiveFile.where( :is_hidden => false ).desc(:is_top).page(params[:page]).per(@page_num) - - if !params[:category_id].blank? && !params[:tag_id].blank? - @archive_files = @archive_files.default_sort(params[:sort]).can_display.where(:archive_file_category_id.in => params[:category_id], :tagged_ids.in => params[:tag_id]).desc( :is_top ).page( params[:page_main] ).per(@page_num) - - @current_category = ArchiveFileCategory.from_id(params[:category_id]) rescue nil - - elsif !params[:category_id].blank? - @archive_files = ArchiveFile.default_sort(params[:sort]).can_display.where(:archive_file_category_id.in => params[:category_id]).desc( :is_top ).page( params[:page_main] ).per(@page_num) - @current_category = ArchiveFileCategory.from_id(params[:category_id]) rescue nil - elsif !params[:tag_id].blank? - @archive_files = ArchiveFile.default_sort(params[:sort]).can_display.where(:tagged_ids.in => params[:tag_id]).desc( :is_top ).page( params[:page_main] ).per(@page_num) - else - @archive_files = ArchiveFile.default_sort(params[:sort]).can_display.desc( :is_top ).page( params[:page_main] ).per(@page_num) - end - - - get_categorys - - if params[:sort] - @archive_files = get_sorted_and_filtered('archive_file', nil, @archive_files) - end - end - - def show - @item = Page.find(params[:page_id]) - @title = @item.title - @archive_file = ArchiveFile.find(params[:id]) - get_categorys - end - - protected - - def reload_archive_files - @item = Page.find(params[:page_id]) - @title = @item.title - if @item.frontend_data_count - @page_num = @item.frontend_data_count - else - @page_num = 0 - end - date_now = Time.now - @archive_file_categorys = ArchiveFileCategory.all - # @archive_files = ArchiveFile.where( :is_hidden => false ).desc(:is_top).page(params[:page]).per(@page_num) - - if !params[:category_id].blank? - @archive_files = ArchiveFile.can_display.where(:archive_file_category_id => params[:category_id]).desc( :is_top ).page( params[:page_main] ).per(@page_num) - @current_category = ArchiveFileCategory.from_id(params[:category_id]) rescue nil - elsif !params[:tag_id].blank? - @archive_files = ArchiveFile.can_display.where(:tagged_ids => params[:tag_id]).desc( :is_top ).page( params[:page_main] ).per(@page_num) - else - @archive_files = ArchiveFile.can_display.desc( :is_top ).page( params[:page_main] ).per(@page_num) - end - get_categorys - end - - def get_categorys - @archive_file_categorys = ArchiveFileCategory.excludes('disabled' => true) - end -end diff --git a/vendor/built_in_modules/dictionary/app/controllers/panel/archive/widget/archive_files_controller.rb b/vendor/built_in_modules/dictionary/app/controllers/panel/archive/widget/archive_files_controller.rb deleted file mode 100644 index abfa7d933..000000000 --- a/vendor/built_in_modules/dictionary/app/controllers/panel/archive/widget/archive_files_controller.rb +++ /dev/null @@ -1,52 +0,0 @@ -class Panel::Archive::Widget::ArchiveFilesController < OrbitWidgetController - include AdminHelper - - def initialize - super - @app_title = 'archive_files' - end - - def index - - @part = PagePart.find(params[:part_id]) - - if @part.widget_data_count - @page_num = @part.widget_data_count - else - @page_num = 4 - end - - if @part.widget_field - @widget_fields = @part.widget_field - else - @widget_fields = [] - end - - @widget_style = @part.widget_style - - @category_id = @part.category - - date_now = Time.now - - if !params[:category_id].blank? - @archive_files = ArchiveFile.default_sort(params[:sort]).all.can_display.any_in(:archive_file_category_id => params[:category_id]).merge(ArchiveFileCategory.excludes('disable' => true)).desc( :is_top ).page( params[:page_main] ).per(@page_num) - @archive_file_categorys = ArchiveFileCategory.any_in(:_id => params[:category_id]).excludes('disable' => true) - elsif !params[:tag_id].blank? - @archive_files = ArchiveFile.default_sort(params[:sort]).all.can_display.any_in(:tagged_ids => params[:tag_id]).merge(ArchiveFileCategory.excludes('disable' => true)).desc( :is_top ).page( params[:page_main] ).per(@page_num) - get_categorys - else - @archive_files = ArchiveFile.default_sort(params[:sort]).all.can_display.merge(ArchiveFileCategory.excludes('disable' => true)).desc( :is_top).page( params[:page_main] ).per(@page_num) - get_categorys - end - - if params[:sort] - @archive_files = get_sorted_and_filtered('archive_file', nil, @archive_files) - end - - end - - def get_categorys - @archive_file_categorys = ArchiveFileCategory.excludes('disable' => true) - end - -end diff --git a/vendor/built_in_modules/dictionary/app/helpers/panel/archive/back_end/archive_file_categorys_helper.rb b/vendor/built_in_modules/dictionary/app/helpers/panel/archive/back_end/archive_file_categorys_helper.rb deleted file mode 100644 index d5185ff97..000000000 --- a/vendor/built_in_modules/dictionary/app/helpers/panel/archive/back_end/archive_file_categorys_helper.rb +++ /dev/null @@ -1,15 +0,0 @@ -module Panel::Archive::BackEnd::ArchiveFileCategorysHelper -include ActionView::Helpers::UrlHelper - - - def show_anc_cate_permission_link(archive_file_category) - type = 'submit' - oa = archive_file_category.get_object_auth_by_title(type) - if oa.nil? - archive_file_category.object_auths.new(title: type ).save - oa = archive_file_category.get_object_auth_by_title(type) - end - link_to t(:category_auth),admin_object_auth_ob_auth_path(oa) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/_archive_file_category.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/_archive_file_category.html.erb deleted file mode 100644 index 6bb831a28..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/_archive_file_category.html.erb +++ /dev/null @@ -1,20 +0,0 @@ - - - - <%= archive_file_category.key %> -
- -
- - <% @site_valid_locales.each do |locale| %> - <%= archive_file_category.title_translations[locale] rescue nil %> - <% end %> - diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/_form.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/_form.html.erb deleted file mode 100644 index 036093360..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/_form.html.erb +++ /dev/null @@ -1,30 +0,0 @@ -<% # encoding: utf-8 %> - -<%= form_for(@archive_file_category, :remote => true, :url => @url) do |f| %> - -

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

- -
- <%= f.label :key %> - <%= f.text_field :key %> -
- -
- <%= f.fields_for :title_translations do |f| %> - <% @site_valid_locales.each do |locale| %> -
- <%= label_tag "name-#{locale}", "Name-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %> -
- <%= f.text_field locale, :class =>' input-xxlarge', :value => (@archive_file_category.title_translations[locale] rescue nil) %> -
-
- <% end %> - <% end %> -
- -
- <%= f.submit 'Submit/送出', :class=>'btn btn-primary' %> -
- -<% end %> - \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/create.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/create.js.erb deleted file mode 100644 index 250d889b5..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/create.js.erb +++ /dev/null @@ -1,2 +0,0 @@ -$('<%= j render :partial => 'archive_file_category', :collection => [@archive_file_category] %>').appendTo('#archive_file_categorys').hide().fadeIn(); -$("#new_archive_file_category")[0].reset(); \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/destroy.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/destroy.js.erb deleted file mode 100644 index 795155982..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/destroy.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#<%= dom_id @archive_file_category %>").find(".archive_toggle").text("<%= show_toggle_archive_btn(@archive_file_category) %> "); \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/edit.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/edit.js.erb deleted file mode 100644 index eaff01fa3..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#form > form").replaceWith("<%= j render "form" %>"); \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/index.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/index.html.erb deleted file mode 100644 index 0d2c03397..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/index.html.erb +++ /dev/null @@ -1,23 +0,0 @@ - - -<%= flash_messages %> - - - - - - <% @site_valid_locales.each do |locale| %> - - <% end %> - - - - - <%= render :partial => 'archive_file_category', :collection => @archive_file_categorys %> - - -
<%= t('archive_file_category.key') %><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %>
- -
<%= render :partial => "form" %>
- - diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/new.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/new.js.erb deleted file mode 100644 index 40061b9fc..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/new.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#form > form").replaceWith("<%= j render "form" %>"); diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/update.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/update.js.erb deleted file mode 100644 index 2c5cf21e2..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_file_categorys/update.js.erb +++ /dev/null @@ -1,4 +0,0 @@ -$("#<%= dom_id @archive_file_category %>").replaceWith("<%= j render :partial => 'archive_file_category', :collection => [@archive_file_category] %>"); -<% @archive_file_category = ArchiveFileCategory.new(:display => 'List') # reset for new form %> -$(".edit_archive_file_category").replaceWith("<%= j render "form" %>") -$(".new_archive_file_category")[0].reset(); \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_archive_file.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_archive_file.html.erb deleted file mode 100644 index 2f49cf737..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_archive_file.html.erb +++ /dev/null @@ -1,49 +0,0 @@ - - - <% if (archive_file.create_user_id == current_or_guest_user.id) || is_manager? %> - <%= check_box_tag 'to_delete[]', archive_file.id, false, :class => "checkbox_in_list" %> - <% end -%> - - - <%= archive_file.sort_number %> - - -
-
- <% if archive_file.is_top? %> - <%= t(:top) %> - <% end %> - <% if archive_file.is_hot? %> - <%= t(:hot) %> - <% end %> - <% if archive_file.is_hidden? %> - <%= t(:hidden) %> - <% end %> -
-
- - <%= archive_file.archive_file_category.title %> - - <%= link_to archive_file.title, panel_archive_front_end_archive_file_path(archive_file) %> - -
- -
- - - -
-
- <% archive_file.sorted_tags.each do |tag| %> - <%= tag.name %> - <% end %> -
-
- - - diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_clear_filters.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_clear_filters.html.erb deleted file mode 100644 index a15f7993d..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_clear_filters.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -
- <%= link_to content_tag(:i, nil, :class => 'icons-cycle') + t(:clear), panel_archive_back_end_archive_files_path(:filter => @filter, :sort => params[:sort], :direction => params[:direction], :clear => true, :type => type), :class => "btn btn-small js_history" %> -
\ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter.html.erb deleted file mode 100644 index 906db0295..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter.html.erb +++ /dev/null @@ -1,37 +0,0 @@ - - -<% content_for :page_specific_javascript do %> - <%= javascript_include_tag "sort_header" %> -<% end %> diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_categories.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_categories.html.erb deleted file mode 100644 index bc55aa689..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_categories.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -
- <% @archive_file_categories.each do |category| -%> - <%= link_to category.title, panel_archive_back_end_archive_files_path(:filter => @filter, :new_filter => {:type => 'categories', :id => category.id}, :sort => params[:sort], :direction => params[:direction], :sort_options => params[:sort_options]), :class => "btn btn-small js_history#{is_filter_active?('categories', category.id)}" %> - <% end -%> -
-<%= render :partial => 'clear_filters', :locals => {:type => 'categories'} %> \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_status.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_status.html.erb deleted file mode 100644 index 316d471e8..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_status.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -
- <%= link_to t(:top), panel_archive_back_end_archive_files_path(:filter => @filter, :new_filter => {:type => 'status', :id => 'is_top'}, :sort => params[:sort], :direction => params[:direction], :sort_options => params[:sort_options]), :class => "btn btn-small js_history#{is_filter_active?('status', 'is_top')}" %> - <%= link_to t(:hot), panel_archive_back_end_archive_files_path(:filter => @filter, :new_filter => {:type => 'status', :id => 'is_hot'}, :sort => params[:sort], :direction => params[:direction], :sort_options => params[:sort_options]), :class => "btn btn-small js_history#{is_filter_active?('status', 'is_hot')}" %> - <%= link_to t(:hidden), panel_archive_back_end_archive_files_path(:filter => @filter, :new_filter => {:type => 'status', :id => 'is_hidden'}, :sort => params[:sort], :direction => params[:direction], :sort_options => params[:sort_options]), :class => "btn btn-small js_history#{is_filter_active?('status', 'is_hidden')}" unless(is_guest?)%> -
-<%= render :partial => 'clear_filters', :locals => {:type => 'status'} %> \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_tags.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_tags.html.erb deleted file mode 100644 index 743521d95..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_filter_tags.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -
- <% @tags.each do |tag| -%> - <%= link_to tag.name, panel_archive_back_end_archive_files_path(:filter => @filter, :new_filter => {:type => 'tags', :id => tag.id}, :sort => params[:sort], :direction => params[:direction], :sort_options => params[:sort_options]), :class => "btn btn-small js_history#{is_filter_active?('tags', tag.id)}" %> - <% end -%> -
-<%= render :partial => 'clear_filters', :locals => {:type => 'tags'} %> \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_form.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_form.html.erb deleted file mode 100644 index 318ba6b51..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_form.html.erb +++ /dev/null @@ -1,157 +0,0 @@ -<% # encoding: utf-8 %> - - <%= f.error_messages %> - - - -
- -
-
- -
-

Status

-
-
- <%= f.check_box :is_top %><%= t('top') %> - <%= f.check_box :is_hot %><%= t('hot') %> - <%= f.check_box :is_hidden %><%= t('hide') %> -
-
-
- -
-
- -
-

Tags

-
- <% @tags.each do |tag| %> - <%= check_box_tag 'archive_file[tag_ids][]', tag.id, @archive_file.tag_ids.include?(tag.id)%> - <%= tag.name %> - <% end %> -
-
- -
- - - - - -
-
- - <%= f.label :category %> - <%= f.select :archive_file_category_id, @archive_file_categorys.collect {|t| [ t.title, t.id ]} %> - - <%= f.label :sort_number %> - <%= f.text_field :sort_number %> - - - -
- - <% @site_valid_locales.each_with_index do |locale, i| %> - -
"> -
- <%= f.label :title %> - <%= f.fields_for :title_translations do |f| %> - <%= I18nVariable.from_locale(locale) %> - <%= f.text_field locale, :class=>'post-title', :value => (@archive_file.title_translations[locale] rescue nil) %> - <% end %> -
- -
- - <% end %> - -
- - -
- -
- - - - - - - - - - - - - - - - - - - - <% @archive_file.archive_file_multiples.asc(:_id).each_with_index do |archive_file_multiple, i| %> - <%= f.fields_for :archive_file_multiples, archive_file_multiple do |f| %> - <%= render :partial => 'form_file', :object => archive_file_multiple, :locals => {:f => f, :i => i} %> - <% end %> - <% end %> - -
排序數FileFile Name<%= t('呈現語系')%>
-
- <%= hidden_field_tag 'archive_file_multiple_field_count', @archive_file.archive_file_multiples.count %> - ADD/新增 -
-
- -
- -
- - -
- - - - -
- <%= hidden_field_tag 'page', params[:page] if !params[:page].blank? %> - <%= hidden_field_tag 'filter', params[:filter] %> - <%= f.submit t('submit'), :class=>'btn btn-primary' %> - <%= link_to t('cancel'), get_go_back, :class=>"btn" %> -
- -
- - - -<% content_for :page_specific_javascript do %> - <%= javascript_include_tag "archive_form" %> - -<% end %> - diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_form_file.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_form_file.html.erb deleted file mode 100644 index 52f776668..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_form_file.html.erb +++ /dev/null @@ -1,64 +0,0 @@ -<% # encoding: utf-8 %> - - " class='list_item'> - -
-
- <%= f.text_field :sort_number %> -
-
- - -
-
- <%= f.file_field :file %> - <%= form_file.file.file ? ( link_to t(:view), form_file.file.url, {:class => 'btn', :target => '_blank', :title => t(:view)} ) : '' %> -
-
- - - -
- - <% @site_valid_locales.each_with_index do |locale, i| %> - -
"> - <%#= f.fields_for :i18n_variable, (form_file.new_record? ? form_file.build_i18n_variable : form_file.i18n_variable ) do |f| %> - <%= f.fields_for :file_title_translations do |f| %> -
- -
- <%= f.text_field locale, :class=>'post-file_title', :value => (form_file.file_title_translations[locale] rescue nil) %> -
-
- <% end %> - -
- - <% end %> - -
- - - - <% @site_valid_locales.each do |locale| %> - <%= check_box_tag "archive_file[archive_file_multiples_attributes][#{( form_file.new_record? ? 'new_archive_file_multiples' : "#{i}" )}][choose_lang][]", locale, (form_file.choose_lang.nil? ? true : form_file.choose_lang.include?(locale)) %> - <%= I18nVariable.from_locale(locale) %> - <% end %> - <%= hidden_field_tag 'archive_file[archive_file_multiples_attributes][0][choose_lang][]', '' %> - - - - - <% if form_file.new_record? %> - - <% else %> - <%= f.hidden_field :id %> - - <%= f.hidden_field :should_destroy, :value => nil, :class => 'should_destroy' %> - <% end %> - - - - - diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_sort_headers.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_sort_headers.html.erb deleted file mode 100644 index 34552e76d..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/_sort_headers.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<%= render_sort_bar(true, delete_panel_archive_back_end_archive_files_path(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options]), - ['sort_number', 'sort_number', 'span1', :sort_number], - ['status', ['is_top', 'is_hot', 'is_hidden'], 'span1', :status], - ['category', 'archive_file_category', 'span2', :category], - ['title', 'title','span3', :title], - ['tags', 'tags', 'span2', :tags]).html_safe %> diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/destroy.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/destroy.js.erb deleted file mode 100644 index 7dc628710..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/destroy.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#<%= dom_id @archive_file %>").remove(); \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/edit.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/edit.html.erb deleted file mode 100644 index f2e347cc2..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/edit.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

<%= t('archive.editing_archive') %>

- -<%= form_for @archive_file, :url => panel_archive_back_end_archive_file_path(@archive_file), :html => {:class => 'clear'} do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> -<% end %> diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/index.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/index.html.erb deleted file mode 100644 index 684a7962d..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/index.html.erb +++ /dev/null @@ -1,24 +0,0 @@ -<%= render 'filter' %> - - - - - - - - - - - - - - <%= render :partial => 'archive_file', :collection => @archive_files %> - -
- -
- <%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t(:add), new_panel_archive_back_end_archive_file_path, :class => 'btn btn-primary pull-right' if (is_manager? rescue nil) %> -
- <%= paginate @archive_files, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %> -
-
diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/index.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/index.js.erb deleted file mode 100644 index f3d30c0b6..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/index.js.erb +++ /dev/null @@ -1,7 +0,0 @@ -$("#collapse-status").html("<%= j render 'filter_status' %>"); -$("#collapse-category").html("<%= j render 'filter_categories' %>"); -$("#collapse-tags").html("<%= j render 'filter_tags' %>"); -$("#delete_all").attr("action", "<%= delete_panel_archive_back_end_archive_files_path(:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil, :sort_options => params[:sort_options]) %>"); -$("#sort_headers").html("<%= j render 'sort_headers' %>"); -$("#tbody_archive").html("<%= j render :partial => 'archive_file', :collection => @archive_files %>"); -$("#archive_file_pagination").html("<%= j paginate @archive_files, :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/dictionary/app/views/panel/archive/back_end/archive_files/new.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/new.html.erb deleted file mode 100644 index dcdaf8438..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/back_end/archive_files/new.html.erb +++ /dev/null @@ -1,9 +0,0 @@ - -<%= flash_messages %> -

<%= t('archive_file.new_archive') %>

-<%= form_for @archive_file, :url => panel_archive_back_end_archive_files_path, :html => {:class => 'clear'} do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> -<% end %> - -<%#= link_back %> - diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/_index.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/_index.html.erb deleted file mode 100644 index b5aded496..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/_index.html.erb +++ /dev/null @@ -1,56 +0,0 @@ -<% # encoding: utf-8 %> - - -
- - - - - - - - - - - - <% @archive_files.each_with_index do |post,i| %> - class="even" <% end %>> - - - - - <% end %> - - -
<%= sortable(:title, t("archive.Title"))%><%= t("archive.Files")%><%= sortable(:archive_file_category, t("archive.Category"))%>
<%= post.title %>
-
- <% if !post.archive_file_multiples.blank? %> -
    - <% post.archive_file_multiples.asc(:_id).each do | afile | %> - <% if afile.file.file and afile.choose_lang_display(I18n.locale.to_s) %> -
  1. - <%= link_to afile.file_title, afile.file.url, {:target => '_blank', :title => afile.file_title, :class => "o-archives-file"} %> - <%= post.get_file_icon(afile.file.url) %> -
  2. - <% end %> - <% end %> -
- <% end %> -
-
- <%= post.archive_file_category.title %> -
-
- -<%= paginate @archive_files, :param_name => :page_main, :params => {:inner => 'false'} %> - -<%= stylesheet_link_tag "archive/archives" %> - - - - - - - - - diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/index.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/index.html.erb deleted file mode 100644 index 14377a7c7..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/index.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -<%= stylesheet_link_tag "default_widget" %> - - - -
- <%= render 'index' %> -
- -<%= stylesheet_link_tag "archive/archives" %> - - - - - - - - - diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/index.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/index.js.erb deleted file mode 100644 index a0afb16fa..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/index.js.erb +++ /dev/null @@ -1 +0,0 @@ -$('#archive_file_widget').html("<%= j render 'index' %>") diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/show.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/show.html.erb deleted file mode 100644 index fe6994dac..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/front_end/archive_files/show.html.erb +++ /dev/null @@ -1,30 +0,0 @@ - -
-
-
-

<%= @archive_file.archive_file_category.title rescue nil %>

-
-
-
    -
  • -

    <%= @archive_file.title %>

    -
    -
      - <% @archive_file.archive_file_multiples.each do | afile | %> - <% if afile.file.file and afile.choose_lang_display(I18n.locale.to_s) %> -
    1. - <%= link_to afile.file_title, afile.file.url, {:target => '_blank', :title => afile.file_title, :class => "o-archives-file"} %> - <%= @archive_file.get_file_icon(afile.file.url) %> -
    2. - <% end %> - <% end %> -
    -
    -
  • -
-
-
-
-
- -<%= stylesheet_link_tag "archive/archives" %> \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_bulletins.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_bulletins.html.erb deleted file mode 100644 index eb70e2f86..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_bulletins.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -<% @bulletins.each do |bulletin| %> -
  • - <%= link_to bulletin.title, panel_announcement_front_end_bulletin_path(bulletin, :category_id => bulletin.bulletin_category_id , :tag_id => @selected_tag.id ) %> -
  • -<% end %> - - diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_index.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_index.html.erb deleted file mode 100644 index 9f752f1e3..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_index.html.erb +++ /dev/null @@ -1,98 +0,0 @@ -<% # encoding: utf-8 %> - - -<% if @widget_style == '1' %> - -
    - - - - - - - - - - - <% @archive_files.each_with_index do |post,i| %> - class="even" <% end %>> - - - - - <% end %> - - -
    <%= sortable(:title, t("archive.Title"))%><%= t("archive.Files")%><%= sortable(:archive_file_category, t("archive.Category"))%>
    <%= post.title %>
    -
    - <% if !post.archive_file_multiples.blank? %> -
      - <% post.archive_file_multiples.asc(:_id).each do | afile | %> - <% if afile.file.file and afile.choose_lang_display(I18n.locale.to_s) %> -
    1. - <%= link_to afile.file_title, afile.file.url, {:target => '_blank', :title => afile.file_title, :class => "o-archives-file"} %> - <%= post.get_file_icon(afile.file.url) %> -
    2. - <% end %> - <% end %> -
    - <% end %> -
    -
    - <%= post.archive_file_category.title %> -
    -
    -
    - <% if !params[:category_id].blank? %> - <%= link_to t(:more_plus), panel_archive_front_end_archive_files_path(:category_id => @part.category) %> - <% else %> - <%= link_to t(:more_plus), panel_archive_front_end_archive_files_path %> - <% end %> -
    -<% elsif @widget_style == '2' %> - -
    -
    - - <% @archive_file_categorys.each do |afcpost| %> - -
    - <% if @category_id.blank? %> -

    <%= afcpost.title %>

    - <% end %> -
    -
    -
      - - <% afcpost.archive_files.can_display.desc( :is_top ).each do |post| %> -
    • -

      <%= post.title %>

      -
      - - <% if !post.archive_file_multiples.blank? %> -
        - <% post.archive_file_multiples.asc(:_id).each do | afile | %> - <% if afile.file.file and afile.choose_lang_display(I18n.locale.to_s) %> -
      1. - <%= link_to afile.file_title, afile.file.url, {:target => '_blank', :title => afile.file_title, :class => "o-archives-file"} %> - <%= post.get_file_icon(afile.file.url) %> -
      2. - <% end %> - <% end %> -
      - <% end %> - -
      -
    • - <% end %> - -
    -
    -
    - - <% end %> - -
    -
    - -<% end %> diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_tag.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_tag.html.erb deleted file mode 100644 index 6188bfe92..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_tag.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -
  • - <%= link_to tag.name, panel_announcement_widget_bulletins_and_web_links_path(:id => tag.id), :remote => true, :class => ('active' if tag.eql?(@selected_tag)) %> -
  • \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_web_links.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_web_links.html.erb deleted file mode 100644 index a1b8f4dba..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/_web_links.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -<% @web_links.each do |web_link| %> -
  • - <%= link_to web_link.title, web_link.url %> -
  • -<% end %> - - \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/archive_search_block.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/archive_search_block.html.erb deleted file mode 100644 index 4475e343e..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/archive_search_block.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -<%= form_tag panel_archive_front_end_archive_files_path, method: :get do %> - <%= hidden_field_tag :category_id, params[:category_id] %> - <%= hidden_field_tag :tag_id, params[:tag_id] %> -

    - <%= text_field_tag :search_query, params[:search_query],{:value => (params[:search_query].blank?? '' : params[:search_query]),:placeholder => t("announcement.search") }%> - <%= submit_tag "Search", name: nil %> -

    -<% end %> \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/bulletins_list.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/bulletins_list.html.erb deleted file mode 100644 index a07d11257..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/bulletins_list.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -<% # encoding: utf-8 %> - -<% if @bulletins and !@bulletins.nil? %> - -
    -
      - <% @tags.each do |tag| %> -
    • <%= tag.name %>
    • - <% end %> -
    -
    - -<% @tags.each_with_index do |tag, index| %> -
    -

    <%= t("announcement.bulletins") %>

    -
    prev
    -
    next
    -
      - <% tag.bulletins.each do |post| %> -
    • <%= link_to post.title, panel_announcement_front_end_bulletin_path(post) %>
    • - <% end %> -
    -
    -<% end %> - -<% end %> - - - - - diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/bulletins_side_bar.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/bulletins_side_bar.html.erb deleted file mode 100644 index f5f2077e4..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/bulletins_side_bar.html.erb +++ /dev/null @@ -1,23 +0,0 @@ - -
    -

    <%= t(:categories) %>

    -
      - <% @bulletin_categorys.each do |category| %> -
    • - <%= link_to category.title, panel_announcement_front_end_bulletins_path(:category_id => category.id) %> -
    • - <% end %> -
    -
    -
    -

    <%= t(:tag_cloud) %>

    -
    - <% @tags_and_class.each do |tag| %> - <%= link_to tag[0][I18n.locale], panel_announcement_front_end_bulletins_path(:tag_id => tag[0].id, :category_id => params[:category_id]), :class => "#{tag[1]} #{(tag[0].id.to_s.eql?(params[:tag_id]) || tag[0].key.eql?(params[:tag_id])) ? 'active' : nil} " %> - <% end %> -
    -
    - - \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/index.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/index.html.erb deleted file mode 100644 index 03e499e33..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/index.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -<%= stylesheet_link_tag "default_widget" %> - - - -
    - <%= render 'index' %> -
    - -<%= stylesheet_link_tag "archive/archives" %> \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/index.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/index.js.erb deleted file mode 100644 index a0afb16fa..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/index.js.erb +++ /dev/null @@ -1 +0,0 @@ -$('#archive_file_widget').html("<%= j render 'index' %>") diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/reload_bulletins.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/reload_bulletins.js.erb deleted file mode 100644 index 3ee82c103..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/reload_bulletins.js.erb +++ /dev/null @@ -1 +0,0 @@ -$('#bulletins_web_links_bulletins').html("<%= j render 'bulletins' if @bulletins %>") \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/reload_web_links.js.erb b/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/reload_web_links.js.erb deleted file mode 100644 index d5abd76b6..000000000 --- a/vendor/built_in_modules/dictionary/app/views/panel/archive/widget/archive_files/reload_web_links.js.erb +++ /dev/null @@ -1 +0,0 @@ -$('#bulletins_web_links_web_links').html("<%= j render 'web_links' if @web_links %>") \ No newline at end of file