watch: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
- count_by_panel: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_panel: {\r
- type: 'count',\r
- },\r
- count_by_scroll: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_story: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_comic: {\r
- type: 'count',\r
- },\r
- count_by_story: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_comic: {\r
- type: 'count',\r
- },\r
- count_by_sheet: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_story: {\r
- type: 'count',\r
- },\r
- count_by_sheet: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_story: {\r
- type: 'count',\r
- },\r
- count_by_panel: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_sheet: {\r
- type: 'count',\r
- },\r
- count_by_panel: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_scroll: {\r
- type: 'count',\r
- },\r
- count_by_sheet: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
- count_by_speech_balloon_template: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_panel: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_panel: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
- count_by_speech_balloon_template: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
- count_by_speech_balloon: {\r
- type: 'count',\r
- },\r
- count_by_speech_balloon_template: {\r
- type: 'count',\r
- },\r
- count_by_writing_format: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
- count_by_speech_balloon: {\r
- type: 'count',\r
- },\r
- count_by_speech_balloon_template: {\r
- type: 'count',\r
- },\r
- count_by_system_picture: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_panel: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_panel: {\r
- type: 'count',\r
- },\r
- count_by_author: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
history: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_artist: {\r
- type: 'count',\r
- },\r
},\r
},\r
resource_pictures: {\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_original_picture: {\r
- type: 'count',\r
- },\r
- count_by_license_group: {\r
- type: 'count',\r
- },\r
- count_by_license: {\r
- type: 'count',\r
- },\r
- count_by_artist: {\r
- type: 'count',\r
- },\r
},\r
},\r
speech_balloon_templates: {\r
type: 'list',\r
args: {\r
param_id: 'none',\r
+ max_page_size: -1,\r
},\r
},\r
by_panel: {\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_panel: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
type: 'list',\r
args: {\r
param_id: 'none',\r
+ max_page_size: -1,\r
},\r
},\r
by_system_picture: {\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_system_picture: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
type: 'list',\r
args: {\r
param_id: 'none',\r
+ max_page_size: -1,\r
},\r
},\r
by_resource_picture: {\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_resource_picture: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
type: 'list',\r
args: {\r
param_id: 'none',\r
+ max_page_size: -1,\r
},\r
},\r
by_license_group: {\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
- count_by_license_group: {\r
- type: 'count',\r
- },\r
- count_by_system_picture: {\r
- type: 'count',\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
new: {\r
type: 'new',\r
},\r
show: {\r
type: 'show',\r
},\r
- count: {\r
- type: 'count',\r
- args: {\r
- action_name: 'index',\r
- },\r
- },\r
},\r
},\r
home: {\r
args: {\r
item_name: 'scroll',\r
param_id: 'none',\r
- counter_name: 'scrolls_count',\r
},\r
},\r
scroll_panels: {\r
args: {\r
item_name: 'scroll_panel',\r
param_id: 'none',\r
- counter_name: 'scroll_panels_count',\r
},\r
},\r
comics: {\r
args: {\r
item_name: 'comic',\r
param_id: 'none',\r
- counter_name: 'comics_count',\r
},\r
},\r
comic_stories: {\r
args: {\r
item_name: 'comic_story',\r
param_id: 'none',\r
- counter_name: 'comic_stories_count',\r
},\r
},\r
stories: {\r
args: {\r
item_name: 'story',\r
param_id: 'none',\r
- counter_name: 'stories_count',\r
},\r
},\r
story_sheets: {\r
args: {\r
item_name: 'story_sheet',\r
param_id: 'none',\r
- counter_name: 'story_sheets_count',\r
},\r
},\r
sheets: {\r
args: {\r
item_name: 'sheet',\r
param_id: 'none',\r
- counter_name: 'sheets_count',\r
},\r
},\r
sheet_panels: {\r
args: {\r
item_name: 'sheet_panel',\r
param_id: 'none',\r
- counter_name: 'sheet_panels_count',\r
},\r
},\r
panels: {\r
args: {\r
item_name: 'panel',\r
param_id: 'none',\r
- counter_name: 'panels_count',\r
},\r
},\r
panel_pictures: {\r
args: {\r
item_name: 'panel_picture',\r
param_id: 'none',\r
- counter_name: 'panel_pictures_count',\r
},\r
},\r
speech_balloons: {\r
args: {\r
item_name: 'speech_balloon',\r
param_id: 'none',\r
- counter_name: 'speech_balloons_count',\r
},\r
},\r
speeches: {\r
args: {\r
item_name: 'speech',\r
param_id: 'none',\r
- counter_name: 'speeches_count',\r
},\r
},\r
balloons: {\r
args: {\r
item_name: 'balloon',\r
param_id: 'none',\r
- counter_name: 'balloons_count',\r
},\r
},\r
ground_pictures: {\r
args: {\r
item_name: 'ground_picture',\r
param_id: 'none',\r
- counter_name: 'ground_pictures_count',\r
},\r
},\r
ground_colors: {\r
args: {\r
item_name: 'ground_color',\r
param_id: 'none',\r
- counter_name: 'ground_colors_count',\r
},\r
},\r
original_pictures: {\r
args: {\r
item_name: 'original_picture',\r
param_id: 'none',\r
- counter_name: 'count',\r
},\r
},\r
resource_pictures: {\r
args: {\r
item_name: 'resource_picture',\r
param_id: 'none',\r
- counter_name: 'resource_pictures_count',\r
- },\r
- },\r
- scrolls_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'scroll',\r
- param_id: 'none',\r
- },\r
- },\r
- scroll_panels_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'scroll_panel',\r
- param_id: 'none',\r
- },\r
- },\r
- comics_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'comic',\r
- param_id: 'none',\r
- },\r
- },\r
- comic_stories_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'comic_story',\r
- param_id: 'none',\r
- },\r
- },\r
- stories_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'story',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- story_sheets_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'story_sheet',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- sheets_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'sheet',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- sheet_panels_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'sheet_panel',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- panels_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'panel',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- panel_pictures_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'panel_picture',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- speech_balloons_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'speech_balloon',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- speeches_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'speech',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- balloons_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'balloon',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- ground_pictures_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'ground_picture',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- ground_colors_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'ground_color',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- original_pictures_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'original_picture',\r
- list_name: 'private',\r
- param_id: 'none',\r
- },\r
- },\r
- resource_pictures_count: {\r
- type: 'count',\r
- args: {\r
- item_name: 'resource_picture',\r
- list_name: 'private',\r
- param_id: 'none',\r
},\r
},\r
},\r
end
end
- def list_count
- set_list
- j = {:count => @list.count()}
- respond_to do |format|
- format.json { render json: j.to_json }
- end
- end
-
def format_filer format
format.html {
@paginate = @@model.list_paginate(@page, @page_size)
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_artist, :only => [:edit, :update, :destroy]
else
- before_filter :authenticate_resource_reader, :only => [:index, :show, :resource_pictures]
+ before_filter :authenticate_resource_reader, :only => [
+ :index, :show, :resource_pictures
+ ]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_artist, :only => [:edit, :update, :destroy]
end
end
end
- def count
- list_count
- end
-
def new
form_new
end
before_filter :authenticate_user, :only => [:new, :create, :edit, :update]
before_filter :authenticate_author, :only => [:edit, :update]
else
- before_filter :authenticate_reader, :only => [:index, :show, :count]
+ before_filter :authenticate_reader, :only => [:index, :show]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update]
before_filter :authenticate_author, :only => [:edit, :update]
end
end
end
- def count
- list_count
- end
-
def new
form_new
end
before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :count,
- :by_author, :by_speech_balloon, :by_speech_balloon_template, :by_system_picture,
- :count_by_author, :count_by_speech_balloon, :count_by_speech_balloon_template, :count_by_system_picture
+ :index, :show,
+ :by_author, :by_speech_balloon, :by_speech_balloon_template, :by_system_picture
]
before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_author
- list_count
- end
-
- def count_by_speech_balloon
- list_count
- end
-
- def count_by_speech_balloon_template
- list_count
- end
-
- def count_by_system_picture
- list_count
- end
-
def new
form_new
end
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_story, :by_comic, :by_author, :count, :count_by_story, :count_by_comic, :count_by_author
+ :index, :show, :by_story, :by_comic, :by_author
]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_story
- list_count
- end
-
- def count_by_comic
- list_count
- end
-
def count_by_author
list_count
end
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :play, :by_story, :by_author, :count, :count_by_story, :count_by_author
+ :index, :show, :play, :by_story, :by_author
]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_story
- list_count
- end
-
- def count_by_author
- list_count
- end
-
def new
form_new
end
before_filter :authenticate_author, :only => []
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_panel, :by_author, :count, :count_by_panel, :count_by_author
+ :index, :show, :by_panel, :by_author
]
before_filter :authenticate_user, :only => []
before_filter :authenticate_author, :only => []
end
end
- def count
- list_count
- end
-
- def count_by_panel
- list_count
- end
-
- def count_by_author
- list_count
- end
-
end
before_filter :authenticate_author, :only => []
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_panel, :by_author, :count, :count_by_panel, :count_by_author
+ :index, :show, :by_panel, :by_author
]
before_filter :authenticate_user, :only => []
before_filter :authenticate_author, :only => []
end
end
- def count
- list_count
- end
-
- def count_by_panel
- list_count
- end
-
- def count_by_author
- list_count
- end
-
end
class HomeController < ApplicationController
before_filter :authenticate_user, :only => [
:index, :show, :profile, :configure, :create_token, :delete_token,
- :scrolls, :scroll_panels, :comics, :comic_stories, :stories, :story_sheets, :sheets, :sheet_panels, :panels, :panel_pictures, :speech_balloons, :balloons, :speeches, :ground_pictures, :ground_colors,
- :scrolls_count, :scroll_panels_count, :comics_count, :comic_stories_count, :stories_count, :story_sheets_count, :sheets_count, :sheet_panels_count, :panels_count, :resource_pictures_count, :panel_pictures_count, :speech_balloons_count, :balloons_count, :speeches_count, :ground_pictures_count, :ground_colors_count
+ :scrolls, :scroll_panels, :comics, :comic_stories, :stories, :story_sheets,
+ :sheets, :sheet_panels,
+ :panels, :panel_pictures, :speech_balloons, :balloons, :speeches, :ground_pictures, :ground_colors
]
before_filter :authenticate_author, :only => [
- :scrolls, :scroll_panels, :comics, :comic_stories, :stories, :story_sheets, :sheets, :sheet_panels, :panels, :panel_pictures, :speech_balloons, :balloons, :speeches, :ground_pictures, :ground_colors,
- :scrolls_count, :scroll_panels_count, :comics_count, :comic_stories_count, :stories_count, :story_sheets_count, :sheets_count, :sheet_panels_count, :panels_count, :resource_pictures_count, :panel_pictures_count, :speech_balloons_count, :balloons_count, :speeches_count, :ground_pictures_count, :ground_colors_count
+ :scrolls, :scroll_panels, :comics, :comic_stories, :stories, :story_sheets,
+ :sheets, :sheet_panels,
+ :panels, :panel_pictures, :speech_balloons, :balloons, :speeches, :ground_pictures, :ground_colors
]
before_filter :authenticate_artist, :only => [:resource_pictures]
filer_list
end
- def scrolls_count
- list_count
- end
-
- def scroll_panels_count
- list_count
- end
-
- def comics_count
- list_count
- end
-
- def comic_stories_count
- list_count
- end
-
- def stories_count
- list_count
- end
-
- def story_sheets_count
- list_count
- end
-
- def sheets_count
- list_count
- end
-
- def sheet_panels_count
- list_count
- end
-
- def panels_count
- list_count
- end
-
- def panel_pictures_count
- list_count
- end
-
- def balloons_count
- list_count
- end
-
- def speeches_count
- list_count
- end
-
- def ground_pictures_count
- list_count
- end
-
- def ground_colors_count
- list_count
- end
-
- def resource_pictures_count
- list_count
- end
-
end
if Manifest.manifest.magic_numbers['run_mode'] == 0
else
before_filter :authenticate_reader, :only => [
- :by_resource_picture,
- :count_by_resource_picture,
+ :by_resource_picture
]
end
before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_resource_picture
- list_count
- end
-
def new
form_new
end
class LicensesController < ApplicationController
before_filter :authenticate_resource_reader, :only => [
- :by_license_group, :by_system_picture, :count_by_license_group, :count_by_system_picture
+ :by_license_group, :by_system_picture
]
before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_license_group
- list_count
- end
-
- def count_by_system_picture
- list_count
- end
-
def new
form_new
end
#原画
class OriginalPicturesController < ApplicationController
- before_filter :authenticate_reader, :only => [:show, :history, :count]
+ before_filter :authenticate_reader, :only => [:show, :history]
before_filter :authenticate_user, :only => [:index, :new, :edit, :create, :update, :destroy]
before_filter :authenticate_artist, :only => [:index, :new, :edit, :create, :update, :destroy]
end
end
- def count
- list_count
- end
-
def new
set_new
respond_to do |format|
before_filter :authenticate_author, :only => []
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_panel, :by_author, :count, :count_by_panel, :count_by_author
+ :index, :show, :by_panel, :by_author
]
before_filter :authenticate_user, :only => []
before_filter :authenticate_author, :only => []
end
end
- def count
- list_count
- end
-
- def count_by_panel
- list_count
- end
-
- def count_by_author
- list_count
- end
-
end
end
end
end
-
- def count
- list_count
- end
-
- def count_by_scroll
- list_count
- end
-
- def count_by_sheet
- list_count
- end
-
- def count_by_author
- list_count
- end
-
- def count_by_speech_balloon_template
- list_count
- end
def new
set_new
before_filter :authenticate_author, :only => []
else
before_filter :authenticate_user, :only => []
- before_filter :authenticate_resource_reader, :only => [:show, :credit, :search]
+ before_filter :authenticate_resource_reader, :only => [
+ :show, :credit, :search
+ ]
before_filter :authenticate_author, :only => []
end
- before_filter :authenticate_admin, :only => [:index, :by_artist, :count, :count_by_artist]
+ before_filter :authenticate_admin, :only => [:index, :by_artist ]
def index
filer_list
end
end
- def count
- list_count
- end
-
- def count_by_artist
- list_count
- end
-
end
before_filter :authenticate_artist, :only => [:new, :create, :update, :destroy]
else
before_filter :authenticate_resource_reader, :only => [
- :index, :show, :credit, :count,
- :by_original_picture, :by_license_group, :by_license, :by_artist,
- :count_by_original_picture, :count_by_license_group, :count_by_license, :count_by_artist
+ :index, :show, :credit,
+ :by_original_picture, :by_license_group, :by_license, :by_artist
]
before_filter :authenticate_user, :only => [:new, :create, :update, :destroy]
before_filter :authenticate_artist, :only => [:new, :create, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_original_picture
- list_count
- end
-
- def count_by_license_group
- list_count
- end
-
- def count_by_license
- list_count
- end
-
- def count_by_artist
- list_count
- end
-
def new
# use @item, @original_picture
respond_to do |format|
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_panel, :by_scroll, :by_author, :play, :count, :count_by_panel, :count_by_scroll, :count_by_author, :play
+ :index, :show, :by_panel, :by_scroll, :by_author, :play :play
]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_panel
- list_count
- end
-
- def count_by_scroll
- list_count
- end
-
- def count_by_author
- list_count
- end
-
- def count_play
- list_count
- end
-
def new
form_new
end
end
end
- def count
- list_count
- end
-
- def count_by_author
- list_count
- end
-
- def count_by_panel
- list_count
- end
-
- def count_play
- list_count
- end
-
def new
form_new
end
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_sheet, :by_panel, :by_author, :count, :count_by_sheet, :count_by_panel, :count_by_author
+ :index, :show, :by_sheet, :by_panel, :by_author
]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_sheet
- list_count
- end
-
- def count_by_panel
- list_count
- end
-
- def count_by_author
- list_count
- end
-
def new
form_new
end
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :play, :by_story, :by_panel, :by_author, :count, :count_by_story, :count_by_panel, :count_by_author
+ :index, :show, :play, :by_story, :by_panel, :by_author
]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_story
- list_count
- end
-
- def count_by_panel
- list_count
- end
-
- def count_by_author
- list_count
- end
-
def new
set_new
respond_to do |format|
before_filter :authenticate_user, :only => []
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_panel, :by_system_picture, :count, :count_by_panel, :count_by_system_picture
+ :index, :show, :by_panel, :by_system_picture
]
before_filter :authenticate_user, :only => []
end
end
end
- def count
- list_count
- end
-
- def count_by_panel
- list_count
- end
-
- def count_by_system_picture
- list_count
- end
-
def new
form_new
end
before_filter :authenticate_author, :only => []
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_panel, :by_author, :by_speech_balloon_template, :count, :count_by_panel, :count_by_author, :count_by_speech_balloon_template
+ :index, :show, :by_panel, :by_author, :by_speech_balloon_template
]
before_filter :authenticate_user, :only => []
before_filter :authenticate_author, :only => []
end
end
- def count
- list_count
- end
-
- def count_by_panel
- list_count
- end
-
- def count_by_author
- list_count
- end
-
- def count_by_speech_balloon_template
- list_count
- end
-
end
before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :count,
- :by_author, :by_speech_balloon, :by_speech_balloon_template, :by_writing_format,
- :count_by_author, :count_by_speech_balloon, :count_by_speech_balloon_template, :count_by_writing_format
+ :index, :show,
+ :by_author, :by_speech_balloon, :by_speech_balloon_template, :by_writing_format
]
before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_author
- list_count
- end
-
- def count_by_speech_balloon
- list_count
- end
-
- def count_by_speech_balloon_template
- list_count
- end
-
- def count_by_writing_format
- list_count
- end
-
def new
form_new
end
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :play, :by_comic, :by_sheet, :by_author, :count, :count_by_comic, :count_by_sheet, :count_by_author
+ :index, :show, :play, :by_comic, :by_sheet, :by_author
]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_comic
- list_count
- end
-
- def count_by_sheet
- list_count
- end
-
- def count_by_author
- list_count
- end
-
def new
form_new
end
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_story, :by_sheet, :by_author, :count, :count_by_story, :count_by_sheet, :count_by_author
+ :index, :show, :by_story, :by_sheet, :by_author
]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_story
- list_count
- end
-
- def count_by_sheet
- list_count
- end
-
- def count_by_author
- list_count
- end
-
def new
form_new
end
before_filter :authenticate_user, :only => []
before_filter :authenticate_author, :only => []
else
- before_filter :authenticate_resource_reader, :only => [:index, :show, :count]
+ before_filter :authenticate_resource_reader, :only => [:index, :show]
before_filter :authenticate_user, :only => []
before_filter :authenticate_author, :only => []
end
if Manifest.manifest.magic_numbers['run_mode'] == 0
before_filter :authenticate_user, :only => []
else
- before_filter :authenticate_reader, :only => [:index, :by_system_picture, :show, :count, :count_by_system_picture]
+ before_filter :authenticate_reader, :only => [
+ :index, :by_system_picture, :show
+ ]
before_filter :authenticate_user, :only => []
end
before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_system_picture
- list_count
- end
-
def new
form_new
end
get :index
get :watch
get :show
- get :count
post :create
end
member do
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_author
get :by_panel
- get :count_by_author
- get :count_by_panel
- get :count_play
get :play
get :edit
put :update
delete :destroy
- get :browse
end
end
resources :scroll_panels do
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_scroll
get :by_author
get :play
- get :count_by_panel
- get :count_by_scroll
- get :count_by_author
- get :count_play
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_author
get :by_story
- get :count_by_author
- get :count_by_story
get :play
get :edit
put :update
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_comic
get :by_story
get :by_author
- get :count_by_comic
- get :count_by_story
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_comic
get :by_sheet
get :by_author
- get :count_by_comic
- get :count_by_sheet
- get :count_by_author
get :play
get :edit
put :update
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_story
get :by_sheet
get :by_author
- get :count_by_story
- get :count_by_sheet
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_story
get :by_panel
get :by_author
- get :count_by_story
- get :count_by_panel
- get :count_by_author
get :play
get :edit
put :update
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_sheet
get :by_panel
get :by_author
- get :count_by_sheet
- get :count_by_panel
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_sheet
get :by_author
get :by_speech_balloon_template
- get :count_by_scroll
- get :count_by_sheet
- get :count_by_author
- get :count_by_speech_balloon_template
get :catch
get :edit
put :update
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_panel
get :by_author
- get :count_by_panel
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_panel
get :by_author
get :by_speech_balloon_template
- get :count_by_panel
- get :count_by_author
- get :count_by_speech_balloon_template
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
end
member do
get :by_author
get :by_speech_balloon
get :by_speech_balloon_template
get :by_system_picture
- get :count_by_author
- get :count_by_speech_balloon
- get :count_by_speech_balloon_template
- get :count_by_system_picture
get :edit
put :update
end
collection do
get :index
get :show
- get :count
end
member do
get :by_author
get :by_author
get :by_speech_balloon_template
get :by_writing_format
- get :count_by_author
- get :count_by_speech_balloon
- get :count_by_speech_balloon_template
- get :count_by_writing_format
get :edit
put :update
end
collection do
get :index
get :show
- get :count
end
member do
get :by_panel
get :by_author
- get :count_by_panel
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
end
member do
get :by_panel
get :by_author
- get :count_by_panel
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
collection do
get :index
get :show
- get :count
get :credit
get :search
end
member do
get :by_artist
- get :count_by_artist
get :credit
end
end
collection do
get :index
get :show
- get :count
get :new
post :create
- get :count
end
member do
get :by_original_picture
get :by_license_group
get :by_license
get :by_artist
- get :count_by_original_picture
- get :count_by_license_group
- get :count_by_license
- get :count_by_artist
delete :destroy
get :credit
end
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_panel
get :by_system_picture
- get :count_by_system_picture
- get :count_by_panel
put :update
delete :destroy
end
collection do
get :index
get :show
- get :count
post :create
end
member do
get :speeches
get :by_system_picture
get :speeches_count
- get :count_by_system_picture
put :update
delete :destroy
end
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_resource_picture
- get :count_by_resource_picture
put :update
delete :destroy
end
collection do
get :index
get :show
- get :count
get :search
post :create
end
get :by_license_group
get :by_system_picture
get :resource_pictures_count
- get :count_by_license_group
- get :count_by_system_picture
put :update
delete :destroy
end
collection do
get :index
get :show
- get :count
post :create
end
member do
collection do
get :index
get :show
- get :count
post :create
end
member do
collection do
get :index
get :show
- get :count
end
member do
#get :balloons
get :speech_balloon_templates
get :licenses
- get :speech_balloon_templates_count
- get :licenses_count
delete :destroy
end
end
require_dependency "locmare/filer/header"
require_dependency "locmare/filer/body"
-require_dependency "locmare/filer/pager"
module Locmare
class Filer
include FilerModule
+++ /dev/null
-module Locmare
- module FilerModule
- class Pager
- attr :filer
-
- def initialize filer
- @filer = filer
- end
-
- def list_result
- @filer.list_result
- end
-
- def api_path
- list_result.path
- end
-
- def template_dir
- @filer.template_dir + "pager/"
- end
-
- def template_name
- self.template_dir + self.template_file_name
- end
-
- end
-
- class NonePager < Pager
- def template_file_name
- "none"
- end
-
- end
-
- class DefaultPager < Pager
- def template_file_name
- "default"
- end
-
- def paginate
- list_result.paginate
- end
-
- end
-
- class MorePager < Pager
- def template_file_name
- "more"
- end
-
- end
-
- end
-end
end
def self.load list, total, options
+ return nil if total == 0
ps = if self.offset(options) or self.count(options)
Offset.new list, total, options
else
end
def items
+ return [] unless @page_status
@items ||= @model.where(
self.where_condition
).includes(
r
end
- def items
- if self.visible?
- @model.where(
- self.where_condition
- ).includes(
- self.include_hash
- ).order(
- self.order_by
- ).offset(@offset).limit(@limit)
- else
- []
- end
- end
-
- def count
- if self.visible?
- @model.where(
- self.where_condition
- ).includes(
- self.include_hash
- ).count
- else
- 0
- end
- end
-
end
end
)
::Locmare::Filer.new(
self.has_many_model.item_name, list.items,
- list.page_status, self.profiler.operators
+ nil, self.profiler.operators
)
end
ManifestBase.require_modules "manifest/controller/action/",
- %w|base list show count new edit create update destroy|
+ %w|base list show new edit create update destroy|
module Manifest
module ControllerModule
def self.types
{
- 'list' => ActionList, 'show' => ActionShow, 'count' => ActionCount,
+ 'list' => ActionList, 'show' => ActionShow,
'new' => ActionNew, 'edit' => ActionEdit,
'create' => ActionCreate, 'update' => ActionUpdate, 'destroy' => ActionDestroy
}
+++ /dev/null
-module Manifest
- module ControllerModule
- module ActionModule
- class ActionCount < Base
- attr :alias
-
- def set_default
- super
- @args['action_name'] ||= @name.gsub(/^count_/, '')
- end
-
- def init
- super
- @action_name = @args['action_name']
- end
-
- end
-
- end
- end
-end
@direction = @args['direction'].to_i
@default_page_size = @args['default_page_size']
@max_page_size = @args['max_page_size']
- @counter_name = if @args['counter_name']
- @args['counter_name']
- else
- if @name == 'index'
- 'count'
- else
- 'count_' + @name
- end
- end
end
def alias_action
c.actions[s[1]]
end
- def counter_url params
- action_manifest = @parent.actions[@counter_name]
- self.encode_url(params)
- end
-
end
end
resource_controller_name,
resource_action_name,
nil,
- {} # set no limit options
+ {:page_size => -1} # set no limit options
)
- r = list.open nil
@select_items[source_manifest.select_item_name] =
- r.items.map {|item| [item.attributes[caption], item.id]}
+ list.items.map {|item| [item.attributes[caption], item.id]}
rescue
puts 'skip store select_items:' + resource_item_name + '.' + resource_action_name
end
"watch": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
- "count_by_panel": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_panel": {\r
- "type": "count"\r
- },\r
- "count_by_scroll": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_story": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_comic": {\r
- "type": "count"\r
- },\r
- "count_by_story": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_comic": {\r
- "type": "count"\r
- },\r
- "count_by_sheet": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_story": {\r
- "type": "count"\r
- },\r
- "count_by_sheet": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_story": {\r
- "type": "count"\r
- },\r
- "count_by_panel": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_sheet": {\r
- "type": "count"\r
- },\r
- "count_by_panel": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_scroll": {\r
- "type": "count"\r
- },\r
- "count_by_sheet": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
- "count_by_speech_balloon_template": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_panel": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_panel": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
- "count_by_speech_balloon_template": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
- "count_by_speech_balloon": {\r
- "type": "count"\r
- },\r
- "count_by_speech_balloon_template": {\r
- "type": "count"\r
- },\r
- "count_by_writing_format": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
- "count_by_speech_balloon": {\r
- "type": "count"\r
- },\r
- "count_by_speech_balloon_template": {\r
- "type": "count"\r
- },\r
- "count_by_system_picture": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_panel": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_panel": {\r
- "type": "count"\r
- },\r
- "count_by_author": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"history": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
"new": {\r
"type": "new"\r
},\r
},\r
"show": {\r
"type": "show"\r
- },\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_artist": {\r
- "type": "count"\r
}\r
}\r
},\r
},\r
"show": {\r
"type": "show"\r
- },\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_original_picture": {\r
- "type": "count"\r
- },\r
- "count_by_license_group": {\r
- "type": "count"\r
- },\r
- "count_by_license": {\r
- "type": "count"\r
- },\r
- "count_by_artist": {\r
- "type": "count"\r
}\r
}\r
},\r
"index": {\r
"type": "list",\r
"args": {\r
- "param_id": "none"\r
+ "param_id": "none",\r
+ "max_page_size": -1\r
}\r
},\r
"by_panel": {\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_panel": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"index": {\r
"type": "list",\r
"args": {\r
- "param_id": "none"\r
+ "param_id": "none",\r
+ "max_page_size": -1\r
}\r
},\r
"by_system_picture": {\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_system_picture": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"index": {\r
"type": "list",\r
"args": {\r
- "param_id": "none"\r
+ "param_id": "none",\r
+ "max_page_size": -1\r
}\r
},\r
"by_resource_picture": {\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_resource_picture": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"index": {\r
"type": "list",\r
"args": {\r
- "param_id": "none"\r
+ "param_id": "none",\r
+ "max_page_size": -1\r
}\r
},\r
"by_license_group": {\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
- "count_by_license_group": {\r
- "type": "count"\r
- },\r
- "count_by_system_picture": {\r
- "type": "count"\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
"new": {\r
"type": "new"\r
},\r
"show": {\r
"type": "show"\r
},\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
- },\r
"new": {\r
"type": "new"\r
},\r
},\r
"show": {\r
"type": "show"\r
- },\r
- "count": {\r
- "type": "count",\r
- "args": {\r
- "action_name": "index"\r
- }\r
}\r
}\r
},\r
"type": "list",\r
"args": {\r
"item_name": "scroll",\r
- "param_id": "none",\r
- "counter_name": "scrolls_count"\r
+ "param_id": "none"\r
}\r
},\r
"scroll_panels": {\r
"type": "list",\r
"args": {\r
"item_name": "scroll_panel",\r
- "param_id": "none",\r
- "counter_name": "scroll_panels_count"\r
+ "param_id": "none"\r
}\r
},\r
"comics": {\r
"type": "list",\r
"args": {\r
"item_name": "comic",\r
- "param_id": "none",\r
- "counter_name": "comics_count"\r
+ "param_id": "none"\r
}\r
},\r
"comic_stories": {\r
"type": "list",\r
"args": {\r
"item_name": "comic_story",\r
- "param_id": "none",\r
- "counter_name": "comic_stories_count"\r
+ "param_id": "none"\r
}\r
},\r
"stories": {\r
"type": "list",\r
"args": {\r
"item_name": "story",\r
- "param_id": "none",\r
- "counter_name": "stories_count"\r
+ "param_id": "none"\r
}\r
},\r
"story_sheets": {\r
"type": "list",\r
"args": {\r
"item_name": "story_sheet",\r
- "param_id": "none",\r
- "counter_name": "story_sheets_count"\r
+ "param_id": "none"\r
}\r
},\r
"sheets": {\r
"type": "list",\r
"args": {\r
"item_name": "sheet",\r
- "param_id": "none",\r
- "counter_name": "sheets_count"\r
+ "param_id": "none"\r
}\r
},\r
"sheet_panels": {\r
"type": "list",\r
"args": {\r
"item_name": "sheet_panel",\r
- "param_id": "none",\r
- "counter_name": "sheet_panels_count"\r
+ "param_id": "none"\r
}\r
},\r
"panels": {\r
"type": "list",\r
"args": {\r
"item_name": "panel",\r
- "param_id": "none",\r
- "counter_name": "panels_count"\r
+ "param_id": "none"\r
}\r
},\r
"panel_pictures": {\r
"type": "list",\r
"args": {\r
"item_name": "panel_picture",\r
- "param_id": "none",\r
- "counter_name": "panel_pictures_count"\r
+ "param_id": "none"\r
}\r
},\r
"speech_balloons": {\r
"type": "list",\r
"args": {\r
"item_name": "speech_balloon",\r
- "param_id": "none",\r
- "counter_name": "speech_balloons_count"\r
+ "param_id": "none"\r
}\r
},\r
"speeches": {\r
"type": "list",\r
"args": {\r
"item_name": "speech",\r
- "param_id": "none",\r
- "counter_name": "speeches_count"\r
+ "param_id": "none"\r
}\r
},\r
"balloons": {\r
"type": "list",\r
"args": {\r
"item_name": "balloon",\r
- "param_id": "none",\r
- "counter_name": "balloons_count"\r
+ "param_id": "none"\r
}\r
},\r
"ground_pictures": {\r
"type": "list",\r
"args": {\r
"item_name": "ground_picture",\r
- "param_id": "none",\r
- "counter_name": "ground_pictures_count"\r
+ "param_id": "none"\r
}\r
},\r
"ground_colors": {\r
"type": "list",\r
"args": {\r
"item_name": "ground_color",\r
- "param_id": "none",\r
- "counter_name": "ground_colors_count"\r
+ "param_id": "none"\r
}\r
},\r
"original_pictures": {\r
"type": "list",\r
"args": {\r
"item_name": "original_picture",\r
- "param_id": "none",\r
- "counter_name": "count"\r
+ "param_id": "none"\r
}\r
},\r
"resource_pictures": {\r
"type": "list",\r
"args": {\r
"item_name": "resource_picture",\r
- "param_id": "none",\r
- "counter_name": "resource_pictures_count"\r
- }\r
- },\r
- "scrolls_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "scroll",\r
- "param_id": "none"\r
- }\r
- },\r
- "scroll_panels_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "scroll_panel",\r
- "param_id": "none"\r
- }\r
- },\r
- "comics_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "comic",\r
- "param_id": "none"\r
- }\r
- },\r
- "comic_stories_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "comic_story",\r
- "param_id": "none"\r
- }\r
- },\r
- "stories_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "story",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "story_sheets_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "story_sheet",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "sheets_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "sheet",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "sheet_panels_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "sheet_panel",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "panels_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "panel",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "panel_pictures_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "panel_picture",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "speech_balloons_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "speech_balloon",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "speeches_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "speech",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "balloons_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "balloon",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "ground_pictures_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "ground_picture",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "ground_colors_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "ground_color",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "original_pictures_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "original_picture",\r
- "list_name": "private",\r
- "param_id": "none"\r
- }\r
- },\r
- "resource_pictures_count": {\r
- "type": "count",\r
- "args": {\r
- "item_name": "resource_picture",\r
- "list_name": "private",\r
"param_id": "none"\r
}\r
}\r