History

Fix entry page error

Thibaut committed 11 years ago

Commit 9cd5f201 parent d9aeaee2 files · +4 −0Browse files

Unified · Split

2 files
  1. assets/javascripts/views/content/entry_page.coffee +2 −0
  2. assets/stylesheets/components/_page.scss +2 −0
assets/javascripts/views/content/entry_page.coffee+2−0
@@ -1,5 +1,6 @@
1class app.views.EntryPage extends app.View1class 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 = null99 @xhr = null
99 @render @tmpl('pageLoadError')100 @render @tmpl('pageLoadError')
101 @addClass @constructor.errorClass
100 app.appCache?.update()102 app.appCache?.update()
101 return103 return
102 104
assets/stylesheets/components/_page.scss+2−0
@@ -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