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