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