2 # new Footer.Footer(item, this, {
\r
10 # new Footer.Footer(null, this, {
\r
13 # dic_name: 'translation.key',
\r
18 class Pettanr.View.Show.Footer.Footer extends Pettanr.View
\r
20 className: 'show-owner-footer'
\r
22 constructor: (@item, @context, options) ->
\r
25 initialize: (options) ->
\r
27 _.each options, (setting, action) =>
\r
28 setting.context ||= @context
\r
29 i = @item || setting.item
\r
30 @buttons.push(new Pettanr.View.Button.ItemAction(i, action, setting))
\r
34 _.each @buttons, (button) =>
\r
35 this.$el.append(button.render().el)
\r