codecombat/app/views/editor/level/LevelSearchView.coffee

20 lines
655 B
CoffeeScript
Raw Normal View History

SearchView = require 'views/common/SearchView'
2014-01-03 13:32:13 -05:00
module.exports = class LevelSearchView extends SearchView
2014-06-30 22:16:26 -04:00
id: 'editor-level-home-view'
2014-01-03 13:32:13 -05:00
modelLabel: 'Level'
model: require 'models/Level'
modelURL: '/db/level'
tableTemplate: require 'templates/editor/level/table'
projection: ['slug', 'name', 'description', 'version', 'watchers', 'creator']
page: 'level'
getRenderData: ->
context = super()
context.currentEditor = 'editor.level_title'
context.currentNew = 'editor.new_level_title'
context.currentNewSignup = 'editor.new_level_title_login'
context.currentSearch = 'editor.level_search_title'
@$el.i18n()
context