1 class Pettanr.Views.GroundPicture.ElementSymbol extends Pettanr.View
\r
3 className: 'elements-tab-face-icon'
\r
5 initialize: (options) ->
\r
6 @element = options.element
\r
10 @element.get_parent('picture', this, {
\r
11 success: (@picture) =>
\r
12 img = @element.tmb_opt_img_tag(@picture)
\r
13 this.$el.html(img.render().el)
\r
17 class Pettanr.Views.GroundPicture.ElementFace extends Pettanr.View
\r
19 className: 'elements-tab'
\r
21 initialize: (options) ->
\r
22 @element = options.element
\r
26 symbol = new Pettanr.Views.GroundPicture.ElementSymbol({element: @element})
\r
27 this.$el.append(symbol.render().el)
\r
28 fe = new Tag.Div({class_name: 'elements-tab-face-end'})
\r
29 this.$el.append(fe.render().el)
\r