OSDN Git Service

t#32313:add sheet copy
[pettanr/pettanr.git] / app / controllers / sheets_controller.rb
index 2985798..7c63a0b 100644 (file)
@@ -31,6 +31,8 @@ class SheetsController < ApplicationController
       format.html {
         if @author
           @new_panels = Panel.mylist(@author, 1, 5)
+          @new_stories = Story.mylist(@author, 1, 5)
+          @fresh_stories = StorySheet.mylist(@author, 1, 5).map {|ss| ss.story}
         end
       }
       format.json { render json: @sheet.to_json(Sheet.show_json_opt) }