OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / controllers / panels_controller.rb
index 8f55827..28a03fe 100644 (file)
@@ -35,6 +35,8 @@ class PanelsController < ApplicationController
         if @author
           @new_scrolls = Scroll.mylist(@author, 1, 5)
           @fresh_scrolls = ScrollPanel.mylist(@author, 1, 5).map {|sp| sp.scroll}
+          @new_sheets = Sheet.mylist(@author, 1, 5)
+          @fresh_sheets = SheetPanel.mylist(@author, 1, 5).map {|sp| sp.sheet}
         end
       }
       format.json { render json: @panel.panel_elements_as_json }