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]
28 def show_html_format format
35 respond_to do |format|
36 show_html_format format
37 show_prof_format format
38 show_json_format format
50 def count_by_system_picture
63 @item = SpeechBalloonTemplate.find(params[:id])
66 respond_to do |format|
67 format.html { redirect_to :action => :list }
68 format.json { head :ok }