class Pettanr.SpeechesController extends Pettanr.AppController index: () -> @redraw_title(@params) @filer_list() by_author: () -> @redraw_title(@params) @filer_list() by_speech_balloon: () -> @redraw_title(@params) @filer_list() show_html: () -> @redraw_title(@params) @item.fetch({cache: true}).done => view = new Pettanr.Views.Speech.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: () -> edit: () -> create: () -> update: () -> destroy: () ->