class Pettanr.SpeechBalloonsController extends Pettanr.AppController index: () -> @redraw_title(@params) @filer_list() by_author: () -> @redraw_title(@params) @filer_list() by_panel: () -> @redraw_title(@params) @filer_list() by_speech_balloon_template: () -> @redraw_title(@params) @filer_list() show_html: () -> @item.fetch({cache: true}).done => @redraw_title(@params, @item.get('caption')) view = new Pettanr.Views.SpeechBalloon.Show({ el: "#pettanr", item: @item, operators: @operators }) #view.render() show: () -> @set_show() switch @params['format'] when 'prof' @show_prof() when 'html' @show_html() count: () -> new: () -> @form_new() edit: () -> @form_edit() create: () -> update: () -> destroy: () ->