From 72b6cfeb895df6e6107cb9a27a22650f1e7d9b96 Mon Sep 17 00:00:00 2001 From: yasushiito Date: Fri, 23 May 2014 11:48:28 +0900 Subject: [PATCH] fix mani --- .../manifest/work/controllers.js.coffee.erb | 60 ---------------------- .../manifest/work/list_groups.js.coffee.erb | 3 -- .../manifest/work/profilers.js.coffee.erb | 15 ++++++ config/environments/production.rb | 2 +- config/routes.rb | 32 +++--------- 5 files changed, 22 insertions(+), 90 deletions(-) diff --git a/app/assets/javascripts/manifest/work/controllers.js.coffee.erb b/app/assets/javascripts/manifest/work/controllers.js.coffee.erb index 1c9abaf8..0fd0c17f 100644 --- a/app/assets/javascripts/manifest/work/controllers.js.coffee.erb +++ b/app/assets/javascripts/manifest/work/controllers.js.coffee.erb @@ -802,60 +802,6 @@ }, }, - scrolls: { - type: 'list', - args: { - list_name: 'scrolls', - }, - }, - comics: { - type: 'list', - args: { - list_name: 'comics', - }, - }, - stories: { - type: 'list', - args: { - list_name: 'stories', - }, - }, - sheets: { - type: 'list', - args: { - list_name: 'sheets', - }, - }, - panels: { - type: 'list', - args: { - list_name: 'panels', - }, - }, - panel_pictures: { - type: 'list', - args: { - list_name: 'panel_pictures', - }, - }, - speech_balloons: { - type: 'list', - args: { - list_name: 'speech_balloons', - }, - }, - ground_pictures: { - type: 'list', - args: { - list_name: 'ground_pictures', - }, - }, - ground_colors: { - type: 'list', - args: { - list_name: 'ground_colors', - }, - }, show: { type: 'show', }, @@ -882,12 +828,6 @@ }, }, - resource_pictures: { - type: 'list', - args: { - list_name: 'resource_pictures', - }, - }, show: { type: 'show', }, diff --git a/app/assets/javascripts/manifest/work/list_groups.js.coffee.erb b/app/assets/javascripts/manifest/work/list_groups.js.coffee.erb index 54b73aa8..af2913fa 100644 --- a/app/assets/javascripts/manifest/work/list_groups.js.coffee.erb +++ b/app/assets/javascripts/manifest/work/list_groups.js.coffee.erb @@ -287,9 +287,6 @@ by_speech_balloon: { type: 'filter', }, - by_writing_format: { - type: 'filter', - }, by_author: { type: 'foreign_filter', args: { diff --git a/app/assets/javascripts/manifest/work/profilers.js.coffee.erb b/app/assets/javascripts/manifest/work/profilers.js.coffee.erb index f4280e3b..2ce99987 100644 --- a/app/assets/javascripts/manifest/work/profilers.js.coffee.erb +++ b/app/assets/javascripts/manifest/work/profilers.js.coffee.erb @@ -70,6 +70,11 @@ }, }, story: { + columns: { + visible: { + type: 'source', + }, + }, column_names: [ 'comic_id', 'title', @@ -102,6 +107,11 @@ }, }, sheet: { + columns: { + visible: { + type: 'source', + }, + }, column_names: [ 'caption', 'width', @@ -139,6 +149,11 @@ }, }, panel: { + columns: { + publish: { + type: 'source', + }, + }, column_names: [ 'width', 'height', diff --git a/config/environments/production.rb b/config/environments/production.rb index e3597704..bb9c57a8 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -10,7 +10,7 @@ config.assets.precompile += %w( *.css *.js ) config.action_controller.perform_caching = true # Disable Rails's static asset server (Apache or nginx will already do this) -config.serve_static_assets = true # false + config.serve_static_assets = false # Compress JavaScripts and CSS config.assets.compress = true diff --git a/config/routes.rb b/config/routes.rb index 6299c423..e1083124 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -244,6 +244,7 @@ Pettanr::Application.routes.draw do collection do get :index get :show + get :count post :create end member do @@ -263,6 +264,7 @@ Pettanr::Application.routes.draw do collection do get :index get :show + get :count post :create end member do @@ -280,6 +282,7 @@ Pettanr::Application.routes.draw do collection do get :index get :show + get :count end member do get :by_speech_balloon @@ -293,6 +296,7 @@ Pettanr::Application.routes.draw do collection do get :index get :show + get :count end member do get :by_speech_balloon @@ -310,6 +314,7 @@ Pettanr::Application.routes.draw do collection do get :index get :show + get :count end member do get :by_panel @@ -328,6 +333,7 @@ Pettanr::Application.routes.draw do collection do get :index get :show + get :count end member do get :by_panel @@ -452,30 +458,6 @@ Pettanr::Application.routes.draw do post :create end member do - get :scrolls - get :scroll_panels - get :comics - get :stories - get :story_sheets - get :sheets - get :sheet_panels - get :panels - get :panel_pictures - get :speech_balloons - get :ground_pictures - get :ground_colors - get :scrolls_count - get :scroll_panels_count - get :comics_count - get :stories_count - get :story_sheets_count - get :sheets_count - get :sheet_panels_count - get :panels_count - get :panel_pictures_count - get :speech_balloons_count - get :ground_pictures_count - get :ground_colors_count get :edit put :update delete :destroy @@ -492,8 +474,6 @@ Pettanr::Application.routes.draw do post :create end member do - get :resource_pictures - get :resource_pictures_count get :edit put :update delete :destroy -- 2.11.0