mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-18 03:23:42 -05:00
39b42fe363
The Level Editor level list now highlights the row in which you are the person who last saved the level. The level list now also displays glyphicons to indicate watched/unwatched levels.
19 lines
655 B
CoffeeScript
19 lines
655 B
CoffeeScript
SearchView = require 'views/common/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'
|
|
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
|