OSDN Git Service

fix new element dialog
[pettanr/pettanr.git] / app / controllers / ground_colors_controller.rb
1 class GroundColorsController < 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
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_color = @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 end