1 class Pettanr.SystemPicture extends Peta.SystemResource
\r
2 url: '/system_pictures/'
\r
14 @get('id') + '.' + @get('ext')
\r
17 'image/' + @get('ext')
\r
20 '/system_pictures/' + @filename()
\r
23 {src: @r_url(), width: @get('width'), height: @get('height')}
\r
25 tmb_opt_img_tag: () ->
\r
26 wh = Pettanr.Imager.thumbnail_size(@get('width'), @get('height'))
\r
27 {src: @r_url(), width: wh[0], height: wh[1]}
\r
29 symbol_option: () ->
\r
36 class Pettanr.SystemPicture.Collection extends Backbone.Collection
\r
37 model: Pettanr.SystemPicture
\r
38 url: '/system_pictures'
\r