codecombat/app/views/editor/level/LevelSearchView.coffee
2014-08-28 10:50:20 -07:00

18 lines
575 B
CoffeeScript

SearchView = require 'views/kinds/SearchView'
module.exports = class LevelSearchView extends SearchView
id: 'editor-level-home-view'
modelLabel: 'Level'
model: require 'models/Level'
modelURL: '/db/level'
tableTemplate: require 'templates/editor/level/table'
page: 'editor'
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