OSDN Git Service

37594b7ed8693d0d733193407a61b959e909c453
[pettanr/pettanr.git] / app / controllers / panel_pictures_controller.rb
1 class PanelPicturesController < ApplicationController
2   before_filter :authenticate_author!, :only => [:index, :show]
3   before_filter :authenticate_admin!, :only => [:list, :browse]
4
5   # GET /panel_pictures
6   # GET /panel_pictures.json
7   def index
8     @panel_pictures = PanelPicture.all
9
10     respond_to do |format|
11       format.html # index.html.erb
12       format.json { render json: @panel_pictures }
13     end
14   end
15
16   def list
17     @panel_pictures = PanelPicture.all
18
19     respond_to do |format|
20       format.html { render layout: 'system' }
21       format.json { render json: @panel_pictures }
22     end
23   end
24
25 end