-class Pettanr.Views.Speech.Summary extends Backbone.View\r
+class Pettanr.Views.Speech.Summary extends Pettanr.View.Summary\r
\r
initialize: (options) ->\r
- @item = options.item\r
- @speech_balloon = @item.speech_balloon()\r
+ super(options)\r
\r
render: () ->\r
- this.$el.html('')\r
- _this = this\r
- @speech_balloon.fetch({cache: true}).done ->\r
- panel = _this.speech_balloon.panel()\r
- panel.fetch({cache: true}).done ->\r
- panel_icon = new Pettanr.Views.Common.Icon({item: panel, half: true})\r
- _this.$el.append(panel_icon.render().el)\r
+ super()\r
+ @item.get_parent('speech_balloon', this, {\r
+ success: (@speech_balloon) =>\r
+ @speech_balloon.get_parent('panel', this, {\r
+ success: (@panel) =>\r
+ @panel_face_button = @panel.mini_face_button({\r
+ context: this, \r
+ click: () =>\r
+ @trigger('http_get', @panel.show_url())\r
+ })\r
+ @panel.get_parent('author', this, {\r
+ success: (@author) =>\r
+ @author_faced_label_button = @author.mini_faced_label_button({\r
+ shorten: true\r
+ }, {\r
+ context: this, \r
+ click: () =>\r
+ @trigger('http_get', @author.show_url())\r
+ })\r
+ this.$el.html('')\r
+ this.$el.append(@panel_face_button.render().el)\r
+ this.$el.append(@author_faced_label_button.render().el)\r
+ })\r
+ })\r
+ })\r
this\r
\r