class Pettanr.Views.GroundPicture.ShowModule class Pettanr.Views.GroundPicture.ShowModule.Header extends Pettanr.Views.Show.Header initialize: (options) -> super(options) class Pettanr.Views.GroundPicture.Show extends Backbone.View tagName: 'div' className: 'show' initialize: (options) -> @item = options.item @operators = options.operators icon_url = Pettanr.url(@item.table_name(), 'show', {id: @item.get('id')}) caption_url = icon_url prof_url = Pettanr.url(@item.table_name(), 'show', {id: @item.get('id'), format: 'prof'}) @header = new Pettanr.Views.GroundPicture.ShowModule.Header({ item: @item, operators: @operators, caption: @item.get('caption'), icon_url: icon_url, caption_url: caption_url, prof_url: prof_url }) @panel = @item.panel() @panel.fetch({cache: true}).done => @author = new Pettanr.Views.Show.HeaderAuthor({item: @panel}) @render() render: () -> this.$el.html('') this.$el.append(@header.render().el) this.$el.append(@author.render().el) this