layout 'test' if MagicNumber['test_layout']
before_filter :authenticate_user, :only => [
:index, :show, :profile, :configure, :create_token, :delete_token,
- :comics, :stories, :panels, :resource_pictures, :panel_pictures, :speech_balloons, :ground_pictures, :ground_colors
+ :scrolls, :scroll_panels, :panels, :resource_pictures, :panel_pictures, :speech_balloons, :ground_pictures, :ground_colors
]
- before_filter :authenticate_author, :only => [:comics, :stories, :panels, :panel_pictures, :speech_balloons, :ground_pictures, :ground_colors]
+ before_filter :authenticate_author, :only => [:scrolls, :scroll_panels, :panels, :panel_pictures, :speech_balloons, :ground_pictures, :ground_colors]
before_filter :authenticate_artist, :only => [:resource_pictures]
def index
end
end
- def comics
+ def scrolls
@page = Author.page params[:page]
- @page_size = Author.comic_page_size params[:page_size]
- @comics = Comic.mylist(@author, @page, @page_size)
+ @page_size = Author.scroll_page_size params[:page_size]
+ @scrolls = Scroll.mylist(@author, @page, @page_size)
respond_to do |format|
format.html {
- @paginate = Comic.mylist_paginate(@author, @page, @page_size)
+ @paginate = Scroll.mylist_paginate(@author, @page, @page_size)
}
- format.json { render json: @comics.to_json(Comic.list_json_opt) }
+ format.json { render json: @scrolls.to_json(Scroll.list_json_opt) }
end
end
- def stories
+ def scroll_panels
@page = Author.page params[:page]
- @page_size = Author.story_page_size params[:page_size]
- @stories = Story.mylist(@author, @page, @page_size)
+ @page_size = Author.scroll_panel_page_size params[:page_size]
+ @scroll_panels = ScrollPanel.mylist(@author, @page, @page_size)
respond_to do |format|
format.html {
- @paginate = Story.mylist_paginate(@author, @page, @page_size)
+ @paginate = ScrollPanel.mylist_paginate(@author, @page, @page_size)
}
- format.json { render text: Story.list_as_json_text(@stories) }
+ format.json { render text: ScrollPanel.list_as_json_text(@scroll_panels) }
end
end