1 class Pettanr.View.Show extends Pettanr.View
\r
5 constructor: (@item, options) ->
\r
8 default_header_options: () ->
\r
12 @trigger('http_get', @item.show_url())
\r
16 @trigger('http_get', @item.show_url())
\r
20 @trigger('http_get', @item.prof_url())
\r
24 binder_header_options: () ->
\r
28 @trigger('http_get', @item.show_url())
\r
31 url: @item.play_url(),
\r
33 @trigger('http_get', @item.play_url())
\r
37 @trigger('http_get', @item.prof_url())
\r
41 default_footer_options: () ->
\r
46 @trigger('http_get', @item.edit_url())
\r
51 @trigger('http_get', url)
\r
52 Pettanr.Proxy.destroy(@item, {redirect: redirect})
\r
57 edit_only_footer_options: () ->
\r
62 @trigger('http_get', @item.edit_url())
\r
67 add_credits: (options = {icon: true}) ->
\r
68 @credits = new Pettanr.View.Credits(this, options)
\r
69 @listenTo(@credits, 'click:credit:icon', @click_credit_icon)
\r
70 this.$el.append(@credits.render().el)
\r
72 @credits.push(@panel.licensed_pictures())
\r
74 add_credit: (picture, options = {icon: true}) ->
\r
75 credit = new Pettanr.View.Credit(picture, options)
\r
76 this.$el.append(credit.render().el)
\r
77 @listenTo(credit, 'click:icon', @click_credit_icon)
\r
80 click_authored_by: (author) ->
\r
81 @trigger('http_get', author.show_url())
\r
83 click_credit_icon: (item) ->
\r
84 @trigger('http_get', item.show_url())
\r