Unified · Split
| @@ -1,5 +1,6 @@ | |||
| 1 | class app.views.EntryPage extends app.View | 1 | class app.views.EntryPage extends app.View |
| 2 | @className: '_page' | 2 | @className: '_page' |
| 3 | @errorClass: '_page-error' | ||
| 3 | 4 | ||
| 4 | @events: | 5 | @events: |
| 5 | click: 'onClick' | 6 | click: 'onClick' |
| @@ -97,6 +98,7 @@ class app.views.EntryPage extends app.View · 91 unmodified lines | |||
| 97 | onError: => | 98 | onError: => |
| 98 | @xhr = null | 99 | @xhr = null |
| 99 | @render @tmpl('pageLoadError') | 100 | @render @tmpl('pageLoadError') |
| 101 | @addClass @constructor.errorClass | ||
| 100 | app.appCache?.update() | 102 | app.appCache?.update() |
| 101 | return | 103 | return |
| 102 | 104 | ||
| @@ -5,6 +5,8 @@ · 4 unmodified lines | |||
| 5 | ._page { | 5 | ._page { |
| 6 | position: relative; | 6 | position: relative; |
| 7 | 7 | ||
| 8 | ._page-error { position: static; } | ||
| 9 | |||
| 8 | > h1 { @extend ._lined-heading; } | 10 | > h1 { @extend ._lined-heading; } |
| 9 | > h1:first-child { margin-top: 0; } | 11 | > h1:first-child { margin-top: 0; } |
| 10 | 12 | ||