1 class SpeechBalloonTemplatesController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_filter :authenticate_user, :only => []
5 before_filter :authenticate_reader, :only => [
6 :index, :show, :by_panel, :by_system_picture, :count, :count_by_panel, :count_by_system_picture
8 before_filter :authenticate_user, :only => []
10 before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
24 def show_html_format format
31 respond_to do |format|
32 show_html_format format
33 show_prof_format format
34 show_json_format format
46 def count_by_system_picture
59 @item = SpeechBalloonTemplate.find(params[:id])
62 respond_to do |format|
63 format.html { redirect_to :action => :list }
64 format.json { head :ok }