From 7184bf18b46959afa16dde16bc7719b457f2189b Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 9 Jun 2015 16:48:58 +0200 Subject: [PATCH] add user-list layout_ref --- .../app/controllers/layout_ref.js.coffee | 13 +- .../app/views/layout_ref/index.jst.eco | 1 + .../app/views/layout_ref/user_list.jst.eco | 207 ++++++++++++++++++ app/assets/stylesheets/zammad.css.scss | 15 +- 4 files changed, 233 insertions(+), 3 deletions(-) create mode 100644 app/assets/javascripts/app/views/layout_ref/user_list.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 960b89ae6..66a434ae8 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.js.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.js.coffee @@ -943,7 +943,7 @@ App.Config.set( 'layout_ref/highlight', highlightRef, 'Routes' ) class cluesRef extends App.ControllerContent - + clues: [ { container: '.search-holder' @@ -1271,5 +1271,16 @@ class adminPlaceholderRef extends App.ControllerContent App.Config.set( 'layout_ref/admin_placeholder', adminPlaceholderRef, 'Routes' ) +class userListRef extends App.ControllerContent + + constructor: -> + super + @render() + + render: -> + @html App.view('layout_ref/user_list')() + +App.Config.set( 'layout_ref/user_list', userListRef, 'Routes' ) + App.Config.set( 'LayoutRef', { prio: 1700, parent: '#current_user', name: 'Layout Reference', translate: true, target: '#layout_ref', role: [ 'Admin' ] }, 'NavBarRight' ) \ 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 3a3b842c0..deb9e42c9 100644 --- a/app/assets/javascripts/app/views/layout_ref/index.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/index.jst.eco @@ -4,6 +4,7 @@