class Pettanr.Views.OriginalPicture.Summary extends Pettanr.View.Summary className: 'op-smy' initialize: (options) -> super(options) render: () -> super() @visible = new Tag.Span({ class_name: 'state', content: I18n.t('original_pictures.' + @item.state()) }) this.$el.html('') this.$el.append(@visible.render().el) @item.get_child('resource_picture', this, { success: (@resource_picture) => if @resource_picture @resource_picture.get_parent('picture', this, { success: (@picture) => @credit = new Pettanr.View.Credit(@picture, {icon: false}) this.$el.append(@credit.render().el) @append_rb() }) }) this