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_system_picture, :count, :count_by_system_picture
8 before_filter :authenticate_user, :only => []
10 before_filter :authenticate_admin!, :only => [:destroy]
25 @item = SpeechBalloonTemplate.show(params[:id], @operators)
27 respond_to do |format|
29 @speech_balloon_template = @item
33 render :json => @item.to_json(SpeechBalloonTemplate.show_json_opt)
42 def count_by_system_picture
47 @speech_balloon_template = SpeechBalloonTemplate.find(params[:id])
48 @speech_balloon_template.destroy
50 respond_to do |format|
51 format.html { redirect_to :action => :list }
52 format.json { head :ok }