OSDN Git Service

fix summary
[pettanr/pettanr.git] / app / assets / javascripts / controllers / ground_pictures.js.coffee
1 class Pettanr.GroundPicturesController extends Pettanr.AppController\r
2   \r
3   index: () ->\r
4     @filer_list()\r
5   \r
6   by_author: () ->\r
7     @filer_list()\r
8   \r
9   by_panel: () ->\r
10     @filer_list()\r
11   \r
12   show_html: () -> \r
13     _this = this\r
14     @item.fetch().done ->\r
15       view = new Pettanr.Views.GroundPicture.Show({\r
16         el: "#pettanr",\r
17         item: _this.item,\r
18         operators: _this.operators\r
19       })\r
20       #view.render()\r
21   \r
22   show: () ->\r
23     @set_show()\r
24     switch @params['format']\r
25       when 'prof'\r
26         @show_prof()\r
27       when 'html'\r
28         @show_html()\r
29   \r
30   count: () ->\r
31   \r
32   new: () ->\r
33   \r
34   edit: () ->\r
35   \r
36   create: () ->\r
37   \r
38   update: () ->\r
39   \r
40   destroy: () ->\r
41     \r