- _this = this\r
- @panel = @item.panel()\r
- @panel.fetch({cache: true}).done ->\r
- _this.author = new Pettanr.Views.Show.HeaderAuthor({item: _this.panel})\r
- _this.render()\r
+ @listenTo(this, 'ready', @ready)\r
+ retriever = @item.panel().with_elements()\r
+ @listenTo(retriever, 'retrieve', @retrieve_panel)\r
+ retriever.retrieve()\r
+ \r
+ retrieve_panel: (@panel) ->\r
+ @panel.attributes = @panel.replaced_attributes()\r
+ @author = new Pettanr.Views.Show.HeaderAuthor({item: @panel})\r
+ @body = new Pettanr.Views.Panel.Body({\r
+ panel: @panel,\r
+ spot: @item\r
+ })\r
+ @credits = new Pettanr.Views.Panel.ShowModule.Credits({\r
+ pictures: @panel.licensed_pictures()\r
+ })\r
+ @listenTo(@header, 'click:pick', @click_pick)\r
+ @listenTo(@header, 'click:icon', @click_show)\r
+ @listenTo(@header, 'click:caption', @click_show)\r
+ @listenTo(@header, 'click:prof', @click_prof)\r
+ @listenTo(@author, 'click:author', @click_author)\r
+ @listenTo(@credits, 'click:credit:icon', @click_credit_icon)\r
+ @trigger('ready')\r