mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Possible hacky workaround for #2068.
This commit is contained in:
parent
79c5b53de1
commit
04e0624268
2 changed files with 8 additions and 1 deletions
|
@ -4,7 +4,7 @@ block content
|
|||
|
||||
h1.text-center(data-i18n="not_found.page_not_found") Page Not Found
|
||||
|
||||
num = Math.floor(Math.random() * 3) + 1
|
||||
- var num = Math.floor(Math.random() * 3) + 1;
|
||||
|
||||
img(src="/images/pages/not_found/404_#{num}.png" class="not-found-image")
|
||||
|
||||
|
|
|
@ -4,3 +4,10 @@ template = require 'templates/core/not-found'
|
|||
module.exports = class NotFoundView extends RootView
|
||||
id: 'not-found-view'
|
||||
template: template
|
||||
|
||||
# For some reason, it wasn't really rendering the top bar or doing i18n, so I hacked around it. (#2068.)
|
||||
afterRender: ->
|
||||
unless @renderedOnce
|
||||
_.delay (=> @render?()), 1000
|
||||
@renderedOnce = true
|
||||
super()
|
||||
|
|
Loading…
Reference in a new issue