class Pettanr.ResourcePicturesController extends Pettanr.AppController index: () -> @redraw_title(@params) @filer_list() by_artist: () -> @redraw_title(@params) @filer_list() by_license_group: () -> @redraw_title(@params) @filer_list() by_license: () -> @redraw_title(@params) @filer_list() show_html: () -> @redraw_title(@params) _this = this @item.fetch({cache: true}).done -> view = new Pettanr.Views.ResourcePicture.Show({ el: "#pettanr", item: _this.item, operators: _this.operators }) view.render() show: () -> @set_show() switch @params['format'] when 'prof' @show_prof() when 'html' @show_html()