diff --git a/app/assets/javascripts/app/controllers/layout_ref.js.coffee b/app/assets/javascripts/app/controllers/layout_ref.js.coffee index 9ff018978..1bc2bac8e 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.js.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.js.coffee @@ -777,4 +777,16 @@ class insufficientRightsRef extends App.ControllerContent 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' ) \ No newline at end of file diff --git a/app/assets/javascripts/app/views/layout_ref/error.jst.eco b/app/assets/javascripts/app/views/layout_ref/error.jst.eco new file mode 100644 index 000000000..6db816262 --- /dev/null +++ b/app/assets/javascripts/app/views/layout_ref/error.jst.eco @@ -0,0 +1,3 @@ +