1 class Pettanr.SystemPicture extends Peta.SystemResource
\r
2 url: '/system_pictures/'
\r
15 new Pettanr.Picture({id: @get('picture_id')})
\r
18 @get('id') + '.' + @get('ext')
\r
21 'image/' + @get('ext')
\r
24 '/system_pictures/' + @filename()
\r
27 {src: @r_url(), width: @get('width'), height: @get('height')}
\r
29 tmb_opt_img_tag: () ->
\r
30 new Pettanr.Image.SymbolPicture({
\r
37 symbol_option: () ->
\r
38 @fetch({cache: true}).done =>
\r
39 @trigger('ready:symbol', @tmb_opt_img_tag())
\r