Fix entry page error

This commit is contained in:
Thibaut 2015-05-02 19:48:34 -04:00
parent d9aeaee35f
commit 9cd5f20a48
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,6 @@
class app.views.EntryPage extends app.View
@className: '_page'
@errorClass: '_page-error'
@events:
click: 'onClick'
@ -97,6 +98,7 @@ class app.views.EntryPage extends app.View
onError: =>
@xhr = null
@render @tmpl('pageLoadError')
@addClass @constructor.errorClass
app.appCache?.update()
return

View file

@ -5,6 +5,8 @@
._page {
position: relative;
._page-error { position: static; }
> h1 { @extend ._lined-heading; }
> h1:first-child { margin-top: 0; }