From 5132248142f62272b2ce772b9d6178fd703510f1 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 23 Jan 2015 10:23:04 +0100 Subject: [PATCH] Added layout ref for error. --- .../javascripts/app/controllers/layout_ref.js.coffee | 12 ++++++++++++ .../javascripts/app/views/layout_ref/error.jst.eco | 3 +++ .../javascripts/app/views/layout_ref/index.jst.eco | 1 + 3 files changed, 16 insertions(+) create mode 100644 app/assets/javascripts/app/views/layout_ref/error.jst.eco 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 @@ +
+

<%- @T('Status Code') %>: 1234. may be not internet connection...

+
\ No newline at end of file diff --git a/app/assets/javascripts/app/views/layout_ref/index.jst.eco b/app/assets/javascripts/app/views/layout_ref/index.jst.eco index 6305abbf3..921d98bb4 100644 --- a/app/assets/javascripts/app/views/layout_ref/index.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/index.jst.eco @@ -22,6 +22,7 @@
  • Local Modal
  • Loading Placeholder
  • Insufficient Rights Warning
  • +
  • Error
  • \ No newline at end of file