diff --git a/app/assets/javascripts/app/controllers/layout_ref.coffee b/app/assets/javascripts/app/controllers/layout_ref.coffee index 4722a32a6..9849d3e62 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.coffee @@ -2179,5 +2179,24 @@ class TwitterConversationRef extends App.ControllerContent App.Config.set( 'layout_ref/twitter_conversation', TwitterConversationRef, 'Routes' ) +class ChatToTicketRef extends App.ControllerContent + + elements: + '.js-scrollHolder': 'scrollHolder' + + constructor: -> + super + @render() + @scrollToBottom() + + render: -> + @html App.view('layout_ref/chat_to_ticket')() + + scrollToBottom: -> + @scrollHolder.scrollTop(@scrollHolder.prop('scrollHeight')) + + +App.Config.set( 'layout_ref/chat_to_ticket', ChatToTicketRef, '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/chat_to_ticket.jst.eco b/app/assets/javascripts/app/views/layout_ref/chat_to_ticket.jst.eco new file mode 100644 index 000000000..1711d15d3 --- /dev/null +++ b/app/assets/javascripts/app/views/layout_ref/chat_to_ticket.jst.eco @@ -0,0 +1,208 @@ +
+
+ + +
+
today 11:32
+ +
Servus!
+
Griasde!
+ +
Du hast du a Minutn?
+
Ja freili!
+
Um wos gehts?
+ + + + + +
Oiso I hob meiner Muatta z Weihnachten a Soundbox von eich kafft
+ +
Etz is des Problem dos oana vo de Knepf si ned gscheid drucka lasst
+
Au weh zwick. Des soid ned sa
+
Du kannst du des ei'schicka?
+
today 11:34
+
Na dat ma wia uns des oschaun
+ +
Ja klar. Super!
+ +
Danksche, gell
+
Koa ding. Duad ma ja leid das des no ned lafft
+
Bis dann!
+ +
Ja pfiate
+
+
+
+ <%- @Icon('arrow-right', 'arrow--x2') %> +
+ +
+
+ + +
+
+ +
+
+ + +
+
+
+ +
+
+ + + +
+
+
+
+ +
+
+
+
+
+
+ + select attachment.. + + +
+
+
+
+ Uploading (0%) ... +
+
+
Cancel Upload +
+
+
+
+
+
+ Drop Files here +
+
+ + +
+
+
+
+
+ +
+
+ + +
+ + +
+
+
+ +
+
+ + +
+ + +
+
+
+ +
+
+ + +
+ + +
+
+
+ +
+
+ + +
+
+
+ +
+
+ + +
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+
+
+
\ 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 5444e8390..1f1130877 100644 --- a/app/assets/javascripts/app/views/layout_ref/index.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/index.jst.eco @@ -2,8 +2,8 @@

Layout Reference

-