From 6163f763aa9de25ac13275dd8bef6c2c102a9c67 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 22 Sep 2013 22:55:04 +0200 Subject: [PATCH] CSS improvements. --- .../_application_controller_generic.js.coffee | 7 +++- .../customer_ticket_create.js.coffee | 7 ++++ .../app/views/customer_ticket_create.jst.eco | 37 ++++++++++++------- .../app/views/password/reset.jst.eco | 2 +- .../app/views/password/reset_change.jst.eco | 2 +- .../javascripts/app/views/signup.jst.eco | 2 +- app/assets/stylesheets/zzz.css | 29 +++++++++------ db/seeds.rb | 4 ++ 8 files changed, 59 insertions(+), 31 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee b/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee index 7053ade60..e51b9a2b5 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee @@ -203,12 +203,15 @@ class App.ControllerDrox extends App.Controller constructor: (params) -> super - if params.data && params.data.text + if params.data && ( params.data.text || params.data.html ) @inline(params.data) inline: (data) -> @html App.view('generic/drox')(data) - @el.find('.drox-body').text(data.text) + if data.text + @el.find('.drox-body').text(data.text) + if data.html + @el.find('.drox-body').html(data.html) template: (data) -> drox = $( App.view('generic/drox')(data) ) diff --git a/app/assets/javascripts/app/controllers/customer_ticket_create.js.coffee b/app/assets/javascripts/app/controllers/customer_ticket_create.js.coffee index 01e4e40d8..a6e1069dd 100644 --- a/app/assets/javascripts/app/controllers/customer_ticket_create.js.coffee +++ b/app/assets/javascripts/app/controllers/customer_ticket_create.js.coffee @@ -114,6 +114,13 @@ class Index extends App.ControllerContent # update textarea size @el.find('textarea').trigger('change') + new App.ControllerDrox( + el: @el.find('.sidebar') + data: + header: App.i18n.translateInline('What can you do here?') + html: App.i18n.translateInline('The way to communicate with us is this thing called "Ticket".') + ' ' + App.i18n.translateInline('Here you can create one.') + ) + cancel: -> @navigate '#' diff --git a/app/assets/javascripts/app/views/customer_ticket_create.jst.eco b/app/assets/javascripts/app/views/customer_ticket_create.jst.eco index de3e25bc6..a84e55d2c 100644 --- a/app/assets/javascripts/app/views/customer_ticket_create.jst.eco +++ b/app/assets/javascripts/app/views/customer_ticket_create.jst.eco @@ -1,17 +1,26 @@ -
-