OSDN Git Service

rename model name
[pettanr/pettanr.git] / app / controllers / ground_pictures_controller.rb
1 class GroundPicturesController < ApplicationController
2   if Manifest.manifest.magic_numbers['run_mode'] == 0
3     before_filter :authenticate_user, :only => []
4     before_filter :authenticate_author, :only => []
5   else
6     before_filter :authenticate_reader, :only => [
7       :index, :show, :by_panel, :by_author, :count, :count_by_panel, :count_by_author
8     ]
9     before_filter :authenticate_user, :only => []
10     before_filter :authenticate_author, :only => []
11   end
12   
13   def index
14     filer_list
15   end
16   
17   def by_panel
18     filer_list
19   end
20   
21   def by_author
22     filer_list
23   end
24   
25   def show_html_format format
26     format.html {
27       @ground_picture = @item
28     }
29   end
30   
31   def show
32     set_show
33     respond_to do |format|
34       show_html_format format
35       show_prof_format format
36       show_json_format format
37     end
38   end
39   
40   def count
41     list_count
42   end
43   
44   def count_by_panel
45     list_count
46   end
47   
48   def count_by_author
49     list_count
50   end
51   
52 end