+ resource_picture_list = @item.has_one('resource_picture')\r
+ resource_picture_list.open(() =>\r
+ @resource_picture = resource_picture_list.items()[0]\r
+ if @resource_picture\r
+ @stop_btn = new Tag.A({\r
+ attr: {href: '/' + @resource_picture.destroy_url()}, \r
+ content: I18n.t('original_pictures.index.stop')\r
+ })\r
+ @listenTo(@stop_btn, 'click', @click_stop)\r
+ this.$el.append(@stop_btn.render().el)\r
+ @edit_icon = new Pettanr.Image.SymbolImg({\r
+ attr: {'src': @edit_img_file_name()}, \r
+ half: true\r
+ })\r
+ @edit_btn = new Tag.A({\r
+ attr: {href: '/' + @item.edit_url()}, \r
+ content: @edit_icon.render().el\r
+ })\r
+ @remove_icon = new Pettanr.Image.SymbolImg({\r
+ attr: {'src': @remove_img_file_name()}, \r
+ half: true\r
+ })\r
+ @remove_btn = new Tag.A({\r
+ attr: {href: '/' + @item.destroy_url()}, \r
+ content: @remove_icon.render().el\r
+ })\r
+ @listenTo(@edit_btn, 'click', @click_edit)\r
+ @listenTo(@remove_btn, 'click', @click_remove)\r
+ this.$el.append(@edit_btn.render().el)\r
+ this.$el.append(@remove_btn.render().el)\r
+ )\r