Added layout ref for error.

This commit is contained in:
Martin Edenhofer 2015-01-23 10:23:04 +01:00
parent f90915a93a
commit 5132248142
3 changed files with 16 additions and 0 deletions

View file

@ -777,4 +777,16 @@ class insufficientRightsRef extends App.ControllerContent
App.Config.set( 'layout_ref/insufficient_rights', insufficientRightsRef, 'Routes' ) App.Config.set( 'layout_ref/insufficient_rights', insufficientRightsRef, 'Routes' )
class errorRef extends App.ControllerContent
constructor: ->
super
@render()
render: ->
@html App.view('layout_ref/error')()
App.Config.set( 'layout_ref/error', errorRef, 'Routes' )
App.Config.set( 'LayoutRef', { prio: 1700, parent: '#current_user', name: 'Layout Reference', target: '#layout_ref', role: [ 'Admin' ] }, 'NavBarRight' ) App.Config.set( 'LayoutRef', { prio: 1700, parent: '#current_user', name: 'Layout Reference', target: '#layout_ref', role: [ 'Admin' ] }, 'NavBarRight' )

View file

@ -0,0 +1,3 @@
<div class="flex fullscreenMessage">
<div class="error icon"></div><h2><%- @T('Status Code') %>: 1234. may be not internet connection...</h2>
</div>

View file

@ -22,6 +22,7 @@
<li><a href="#layout_ref/local_modal">Local Modal</a></li> <li><a href="#layout_ref/local_modal">Local Modal</a></li>
<li><a href="#layout_ref/loading_placeholder">Loading Placeholder</a></li> <li><a href="#layout_ref/loading_placeholder">Loading Placeholder</a></li>
<li><a href="#layout_ref/insufficient_rights">Insufficient Rights Warning</a></li> <li><a href="#layout_ref/insufficient_rights">Insufficient Rights Warning</a></li>
<li><a href="#layout_ref/error">Error</a></li>
</ul> </ul>
</div> </div>