@panel = options.panel\r
@operators = options.operators\r
@spot = options.spot\r
+ \r
+ icon_url = Pettanr.url(@panel.table_name(), 'show', {id: @panel.get('id')})\r
+ caption_url = Pettanr.url(@panel.table_name(), 'show', {id: @panel.get('id')})\r
+ prof_url = Pettanr.url(@panel.table_name(), 'show', {id: @panel.get('id'), format: 'prof'})\r
+ @header = new Pettanr.Views.Scroll.ShowModule.Header({\r
+ item: @panel, \r
+ operators: @operators,\r
+ caption: @panel.get('caption'), \r
+ icon_url: icon_url,\r
+ caption_url: caption_url,\r
+ prof_url: prof_url\r
+ })\r
@body = new Pettanr.Views.Panel.Body({\r
panel: @panel,\r
operators: @operators,\r
spot: @spot\r
})\r
- @credits = new Pettanr.Views.Panel.Show.Credits({panel: @panel})\r
+ @footer = new Pettanr.Views.Panel.Footer({\r
+ panel: @panel,\r
+ operators: @operators\r
+ })\r
+ @credits = new Pettanr.Views.Panel.Show.Credits({pictures: @panel.licensed_pictures()})\r
\r
render: () ->\r
this.$el.html('')\r
+ this.$el.append(@header.render().el)\r
this.$el.append(@body.render().el)\r
+ this.$el.append(@footer.render().el)\r
this.$el.append(@credits.render().el)\r
rb = new Tag.RowBreak()\r
this.$el.append(rb.render().el)\r
className: 'credits'\r
\r
initialize: (options) ->\r
- @panel = options.panel\r
- @pictures = @panel.licensed_pictures()\r
+ @pictures = options.pictures\r
\r
render: () ->\r
_this = this\r