class Pettanr.View.Show.AuthoredBy extends Pettanr.View tagName: 'div' constructor: (@content, options) -> super(options) initialize: (@options = {}) -> render: () -> this.$el.html('') author_item_name = @content.my_class().owner_type() @content.get_parent(author_item_name, this, { success: (author) => # author or artist label_button = author.label_button({ context: this, click: () => @trigger('click', author) }) this.$el.append(Pettanr.AppHelper.t_a(@content.item_name(), @content.my_class().owner_column())) this.$el.append(label_button.render().el) }) this