OSDN Git Service

add comic story
[pettanr/pettanr.git] / app / assets / javascripts / manifest / work / list_groups.js.coffee.erb
index af2913f..422aa3f 100644 (file)
       by_author: {\r
         type: 'filter',\r
       },\r
+      by_story: {\r
+        type: 'through_filter',\r
+        args: {\r
+          through: 'comic_stories',\r
+        },\r
+      },\r
     },\r
   },\r
-  story: {\r
+  comic_story: {\r
     lists: {\r
       public: {\r
         type: 'public',\r
       private: {\r
         type: 'private',\r
       },\r
+      play: {\r
+        type: 'play',\r
+        args: {\r
+          filter_item_name: 'comic',\r
+          filter_model_name: 'comic_story',\r
+          filter_key: 'comic_id',\r
+        },\r
+      },\r
       by_comic: {\r
         type: 'filter',\r
       },\r
-      by_sheet: {\r
-        type: 'through_filter',\r
-        args: {\r
-          through: 'story_sheets',\r
-        },\r
+      by_story: {\r
+        type: 'filter',\r
       },\r
       by_author: {\r
         type: 'foreign_filter',\r
           },\r
         },\r
       },\r
-      play: {\r
-        type: 'play',\r
+    },\r
+  },\r
+  story: {\r
+    lists: {\r
+      public: {\r
+        type: 'public',\r
+      },\r
+      private: {\r
+        type: 'private',\r
+      },\r
+      by_comic: {\r
+        type: 'through_filter',\r
+        args: {\r
+          through: 'comic_stories',\r
+        },\r
+      },\r
+      by_sheet: {\r
+        type: 'through_filter',\r
+        args: {\r
+          through: 'story_sheets',\r
+        },\r
+      },\r
+      by_author: {\r
+        type: 'filter',\r
       },\r
     },\r
   },\r