From dd9a9ad19f489ab718839ca6bf3117196b688e5b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 7 May 2015 16:41:22 +0200 Subject: [PATCH] Added level banner. --- .../controllers/widget/dev_banner.js.coffee | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app/assets/javascripts/app/controllers/widget/dev_banner.js.coffee diff --git a/app/assets/javascripts/app/controllers/widget/dev_banner.js.coffee b/app/assets/javascripts/app/controllers/widget/dev_banner.js.coffee new file mode 100644 index 000000000..b0551ab06 --- /dev/null +++ b/app/assets/javascripts/app/controllers/widget/dev_banner.js.coffee @@ -0,0 +1,21 @@ +class Widget + constructor: -> + return if App.Config.get('developer_mode') + banner = """ +| _ +| _____ __(_) +| /__ / ____ _____ ___ ____ ___ ____ _____/ / +| / / / __ `/ __ `__ \\/ __ `__ \\/ __ `/ __ / +| / /__/ /_/ / / / / / / / / / / / /_/ / /_/ / +| /____/\\__,_/_/ /_/ /_/_/ /_/ /_/\\__,_/\\__,_/ +| +| Hi there, nice to meet you! +| +| Visit %chttp://zammad.com/jobs%c to learn about our current job openings. +| +| Your Zammad Team! +| +""" + console.log(banner, "text-decoration: underline;", "text-decoration: none;") + +App.Config.set( 'dev_banner', Widget, 'Widgets' )