1 class PanelPicturesController < ApplicationController
2 before_filter :authenticate_author!, :only => [:index, :show]
3 before_filter :authenticate_admin!, :only => [:list, :browse]
6 # GET /panel_pictures.json
8 @panel_pictures = PanelPicture.all
10 respond_to do |format|
11 format.html # index.html.erb
12 format.json { render json: @panel_pictures }
17 @panel_pictures = PanelPicture.all
19 respond_to do |format|
20 format.html { render layout: 'system' }
21 format.json { render json: @panel_pictures }