1 class Pettanr.GroundPicture extends Peta.Element
\r
2 url: '/ground_pictures/'
\r
17 @repeat_texts: () ->
\r
18 ['repeat', 'repeat-x', 'repeat-y', 'no-repeat']
\r
21 new Pettanr.Picture({id: @get('picture_id')})
\r
26 tmb_opt_img_tag: (picture) ->
\r
27 new Pettanr.Image.SymbolPicture({
\r
29 src: picture.r_url(),
\r
30 alt: @get('caption')
\r
35 symbol_option: (cb) ->
\r
39 cb(_this.tmb_opt_img_tag(i))
\r
42 Pettanr.GroundPicture.repeat_texts()[@get('repeat')]
\r
48 class Pettanr.GroundPicture.Collection extends Backbone.Collection
\r
49 model: Pettanr.GroundPicture
\r
50 url: '/ground_pictures/'
\r