1 class HomeController < ApplicationController
2 before_filter :authenticate_user, :only => [
3 :index, :show, :profile, :configure, :create_token, :delete_token,
4 :scrolls, :scroll_panels, :comics, :comic_stories, :stories, :story_sheets, :sheets, :sheet_panels, :panels, :panel_pictures, :speech_balloons, :balloons, :speeches, :ground_pictures, :ground_colors,
5 :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
7 before_filter :authenticate_author, :only => [
8 :scrolls, :scroll_panels, :comics, :comic_stories, :stories, :story_sheets, :sheets, :sheet_panels, :panels, :panel_pictures, :speech_balloons, :balloons, :speeches, :ground_pictures, :ground_colors,
9 :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
11 before_filter :authenticate_artist, :only => [:resource_pictures]
20 @author = @operators.author
23 @author.supply_default
26 @author_form = Locmare::Bucket.factory @author.item_name, @author, true, true, @operators
27 @artist = @operators.artist
30 @artist.supply_default
33 @artist_form = Locmare::Bucket.factory @artist.item_name, @artist, true, true, @operators
37 if @operators.user.create_token
38 respond_to do |format|
39 flash[:notice] = I18n.t('flash.notice.created', :model => User.human_attribute_name(:authentication_token))
40 format.html { redirect_to({:action => :configure}) }
43 flash[:notice] = I18n.t('flash.notice.not_created', :model => User.human_attribute_name(:authentication_token))
44 format.html { render action: "configure" }
49 if @operators.user.delete_token
50 respond_to do |format|
51 flash[:notice] = I18n.t('flash.notice.destroyed', :model => User.human_attribute_name(:authentication_token))
52 format.html { redirect_to :action => :configure}
55 flash[:notice] = I18n.t('flash.notice.not_destroyed', :model => User.human_attribute_name(:authentication_token))
56 format.html { render action: "configure" }
120 def resource_pictures
128 def scroll_panels_count
136 def comic_stories_count
144 def story_sheets_count
152 def sheet_panels_count
160 def panel_pictures_count
172 def ground_pictures_count
176 def ground_colors_count
180 def resource_pictures_count