-class Pettanr.Views.Comic.Summary extends Backbone.View\r
+class Pettanr.Views.Comic.Summary extends Pettanr.View.Summary.Binder\r
\r
initialize: (options) ->\r
- @item = options.item\r
- @visible = new Tag.Span({\r
- content: Pettanr.AppHelper.t_selected_item('comic_visible_items', @item.get('visible'))\r
- })\r
- @stories_count = I18n.t('comics.comic_stories_count', {c: 0})\r
- _this = this\r
- @author = @item.author()\r
- @author.fetch({cache: true}).done ->\r
- _this.author_icon = _this.author.icon_view(true)\r
- _this.author_name = _this.author.name_view(12)\r
- _this.render()\r
- \r
- render: () ->\r
- this.$el.html('')\r
- this.$el.append(@visible.render().el)\r
- this.$el.append(@stories_count)\r
- if @author_icon\r
- this.$el.append(@author_icon.render().el)\r
- this.$el.append(@author_name.render().el)\r
- this\r
+ options['visible_t'] = 'comic_visible_items'\r
+ options['visible_column_name'] = 'visible'\r
+ super(options)\r
\r