super(options)\r
\r
render: () ->\r
- icon = new Pettanr.Image.SymbolImg({\r
+ prof_button = @item.prof_button({\r
class_name: 'face', \r
- attr: {\r
- src: @icon_file_name()\r
- }\r
+ context: this, \r
+ click: () ->\r
+ @trigger('click:prof', @item.prof_url())\r
})\r
- a = new Tag.A({\r
- attr: {href: '/' + @url()}, \r
- content: icon.render().el\r
- })\r
- this.$el.html(a.render().el)\r
- @listenTo(a, 'click', @click)\r
+ this.$el.html(prof_button.render().el)\r
this\r
\r
- icon_file_name: () ->\r
- '/images/prof.gif'\r
- \r
is_visible: () ->\r
true\r
\r