mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Move error_view's dom to template file.
This commit is contained in:
parent
6012a3ce9e
commit
130d322d60
2 changed files with 5 additions and 5 deletions
3
app/templates/error.jade
Normal file
3
app/templates/error.jade
Normal file
|
@ -0,0 +1,3 @@
|
|||
div.alert.alert-warning
|
||||
h2
|
||||
span(data-i18n="common.error") Error: Failed to process request.
|
|
@ -1,9 +1,6 @@
|
|||
View = require 'views/kinds/RootView'
|
||||
template = require 'templates/error'
|
||||
|
||||
module.exports = class ErrorView extends View
|
||||
id: "error-view"
|
||||
el: "<div class='alert alert-warning'></div>"
|
||||
|
||||
render: ()->
|
||||
super()
|
||||
@$el.append("<h2><span>Error: Failed to process request.</span></h2>")
|
||||
template: template
|
Loading…
Reference in a new issue