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 add_credits: (options = {icon: true}) ->
\r
58 @credits = new Pettanr.View.Credits(this, options)
\r
59 @listenTo(@credits, 'click:credit:icon', @click_credit_icon)
\r
60 this.$el.append(@credits.render().el)
\r
61 @credits.push(@panel.licensed_pictures())
\r
63 click_authored_by: (author) ->
\r
64 @trigger('http_get', author.show_url())
\r
66 click_credit_icon: (item) ->
\r
67 @trigger('http_get', item.show_url())
\r