1 class Pettanr.Views.GroundPicture.ElementSymbol extends Backbone.View
\r
3 className: 'elements-tab-face-icon'
\r
5 initialize: (options) ->
\r
6 @element = options.element
\r
9 picture = @element.picture()
\r
10 picture.fetch({cache: true}).done =>
\r
11 img = @element.tmb_opt_img_tag(picture)
\r
12 this.$el.html(img.render().el)
\r
15 class Pettanr.Views.GroundPicture.ElementFace extends Backbone.View
\r
17 className: 'elements-tab'
\r
19 initialize: (options) ->
\r
20 @element = options.element
\r
24 symbol = new Pettanr.Views.GroundPicture.ElementSymbol({element: @element})
\r
25 this.$el.append(symbol.render().el)
\r
26 fe = new Tag.Div({class_name: 'elements-tab-face-end'})
\r
27 this.$el.append(fe.render().el)
\r