class Pettanr.Views.Panel.Summary extends Backbone.View initialize: (options) -> @item = options.item options['visible_t'] = 'panel_publish_items' options['visible_column_name'] = 'publish' @visible_t = options.visible_t @visible_column_name = options.visible_column_name @visible = new Tag.Div({ content: Pettanr.AppHelper.t_selected_item(@visible_t, @item.get(@visible_column_name)) }) _this = this @author = @item.author() @author.fetch({cache: true}).done -> _this.author_icon_with_caption = _this.author.icon_with_caption_view(true, 'name', 12) _this.render() render: () -> this.$el.html('') this.$el.append(@visible.render().el) if @author_icon_with_caption this.$el.append(@author_icon_with_caption.render().el) this