1 class Pettanr.Views.Picture.History extends Pettanr.View
\r
4 constructor: (@item, options) ->
\r
7 initialize: (options) ->
\r
12 r = new Pettanr.View.Button(@item.show_url(), @item.get('revision'), {
\r
15 @trigger('http_get', @item.show_url())
\r
18 content: Pettanr.AppHelper.t_m('Picture.revision') + ':'
\r
21 content: Pettanr.AppHelper.t_m('Picture.created_at') + ':' + @item.get('created_at')
\r
23 this.$el.append(h.render().el)
\r
24 h.$el.append(r.render().el)
\r
25 this.$el.append(d.render().el)
\r
29 click_credit_icon: () ->
\r
30 @trigger('http_get', @item.show_url())
\r
32 add_credit: (picture, options = {icon: true}) ->
\r
33 credit = new Pettanr.View.Credit(picture, options)
\r
34 this.$el.append(credit.render().el)
\r
35 @listenTo(credit, 'click:icon', @click_credit_icon)
\r