codecombat/app/views/editor/article/ArticleSearchView.coffee

20 lines
635 B
CoffeeScript
Raw Normal View History

SearchView = require 'views/common/SearchView'
2014-01-03 13:32:13 -05:00
module.exports = class ArticleSearchView extends SearchView
2014-06-30 22:16:26 -04:00
id: 'editor-article-home-view'
2014-01-03 13:32:13 -05:00
modelLabel: 'Article'
model: require 'models/Article'
modelURL: '/db/article'
tableTemplate: require 'templates/editor/article/table'
2014-08-28 13:50:20 -04:00
page: 'article'
getRenderData: ->
context = super()
context.currentEditor = 'editor.article_title'
context.currentNew = 'editor.new_article_title'
context.currentNewSignup = 'editor.new_article_title_login'
context.currentSearch = 'editor.article_search_title'
context.newModelsAdminOnly = true
@$el.i18n()
context