class Pettanr.Views.Picture.Credit extends Backbone.View tagName: 'div' className: 'credit' initialize: (options) -> @item = options.item @with_icon = options.with_icon @url = @item.url + '/credit' render: () -> this.$el.html('') if @with_icon p = @item.credit_icon_view() this.$el.append(p.render().el) _this = this f = (data, status) -> _this.$el.append(data) rb = new Tag.RowBreak() _this.$el.append(rb.render().el) $.get(@url, null, f, 'html') this