OSDN Git Service

fix: new elm
[pettanr/pettanr.git] / app / controllers / home_controller.rb
index e914d9a..38af1a3 100644 (file)
@@ -1,12 +1,14 @@
 class HomeController < ApplicationController
   before_filter :authenticate_user, :only => [
     :index, :show, :profile, :configure, :create_token, :delete_token, 
-    :scrolls, :scroll_panels, :comics, :stories, :story_sheets, :sheets, :sheet_panels, :panels, :resource_pictures, :panel_pictures, :speech_balloons, :ground_pictures, :ground_colors,
-    :scrolls_count, :scroll_panels_count, :comics_count, :stories_count, :story_sheets_count, :sheets_count, :sheet_panels_count, :panels_count, :resource_pictures_count, :panel_pictures_count, :speech_balloons_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, :stories, :story_sheets, :sheets, :sheet_panels, :panels, :panel_pictures, :speech_balloons, :ground_pictures, :ground_colors,
-    :scrolls_count, :scroll_panels_count, :comics_count, :stories_count, :story_sheets_count, :sheets_count, :sheet_panels_count, :panels_count, :resource_pictures_count, :panel_pictures_count, :speech_balloons_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]
   
@@ -23,14 +25,14 @@ class HomeController < ApplicationController
       @author.supply_default
     end
     @author.boosts 'post'
-    @author_form = Locmare::Bucket.factory @author.item_name, @author, true, true, @operators
+    @author_form = Locmare::Bucket.factory @author.item_name, 'default', @author, true, true, @operators
     @artist = @operators.artist
     unless @artist
       @artist = Artist.new
       @artist.supply_default
     end
     @artist.boosts 'post'
-    @artist_form = Locmare::Bucket.factory @artist.item_name, @artist, true, true, @operators
+    @artist_form = Locmare::Bucket.factory @artist.item_name, 'default', @artist, true, true, @operators
   end
   
   def create_token
@@ -69,6 +71,10 @@ class HomeController < ApplicationController
     filer_list
   end
   
+  def comic_stories
+    filer_list
+  end
+  
   def stories
     filer_list
   end
@@ -97,68 +103,24 @@ class HomeController < ApplicationController
     filer_list
   end
   
-  def ground_pictures
+  def balloons
     filer_list
   end
   
-  def ground_colors
+  def speeches
     filer_list
   end
   
-  def resource_pictures
+  def ground_pictures
     filer_list
   end
   
-  def scrolls_count
-    list_count
-  end
-  
-  def scroll_panels_count
-    list_count
-  end
-  
-  def comics_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 speech_balloons_count
-    list_count
-  end
-  
-  def ground_pictures_count
-    list_count
-  end
-  
-  def ground_colors_count
-    list_count
+  def ground_colors
+    filer_list
   end
   
-  def resource_pictures_count
-    list_count
+  def resource_pictures
+    filer_list
   end
   
 end