From 4f0c4de386a01eed4f42e3156c8fe602d3d2ee1b Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 9 Sep 2015 15:43:43 +0200 Subject: [PATCH] primary email layout ref --- .../app/controllers/layout_ref.js.coffee | 12 + .../app/views/layout_ref/index.jst.eco | 1 + .../views/layout_ref/primary_email.jst.eco | 450 ++++++++++++++++++ app/assets/stylesheets/zammad.css.scss | 49 ++ 4 files changed, 512 insertions(+) create mode 100644 app/assets/javascripts/app/views/layout_ref/primary_email.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 7ff7175a7..09aaab3d1 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.js.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.js.coffee @@ -1593,4 +1593,16 @@ class mergeCustomerRef extends App.ControllerContent App.Config.set( 'layout_ref/merge_customer', mergeCustomerRef, 'Routes' ) +class PrimaryEmailRef extends App.ControllerContent + + constructor: -> + super + @render() + + render: -> + @html App.view('layout_ref/primary_email') + +App.Config.set( 'layout_ref/primary_email', PrimaryEmailRef, '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 16801a592..728954e10 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 @@