| 13 | module.exports = (LevelSearchView = (function () { |
| 14 | LevelSearchView = class LevelSearchView extends SearchView { |
| 15 | static initClass () { |
| 16 | this.prototype.id = 'editor-level-home-view' |
| 17 | this.prototype.modelLabel = 'Level' |
| 18 | this.prototype.model = require('models/Level') |
| 19 | this.prototype.modelURL = '/db/level' |
| 20 | this.prototype.tableTemplate = require('app/templates/editor/level/table') |
| 21 | this.prototype.projection = ['slug', 'name', 'description', 'version', 'watchers', 'creator'] |
| 22 | this.prototype.page = 'level' |
| 23 | this.prototype.archived = utils.isOzaria ? false : undefined |
| 24 | } |
| 25 | |
| 26 | getRenderData () { |
| 27 | const context = super.getRenderData() |