From 8158e1ce9ecaf1f9f324e4fd3f7c96364e7cab30 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Mon, 7 Jul 2014 19:18:51 +0200 Subject: [PATCH] some sidebar work --- app/assets/images/sprite.svg | 12 ++ .../app/controllers/navigation.js.coffee | 2 + .../app/controllers/notify.js.coffee | 1 - .../lib/app_post/interface_handle.js.coffee | 8 +- .../app/views/agent_ticket_create.jst.eco | 4 +- .../app/views/agent_ticket_view.jst.eco | 4 +- .../app/views/customer_ticket_create.jst.eco | 4 +- .../javascripts/app/views/dashboard.jst.eco | 16 +- .../views/generic/admin_level2/index.jst.eco | 4 +- .../app/views/generic/content_two.jst.eco | 4 +- .../views/generic/content_two_title.jst.eco | 4 +- .../app/views/generic/navbar_l2.jst.eco | 4 +- .../javascripts/app/views/navigation.jst.eco | 65 +++---- .../javascripts/app/views/ticket_zoom.jst.eco | 4 +- .../javascripts/app/views/user_zoom.jst.eco | 4 +- app/assets/stylesheets/zzz.css.erb | 184 +++++++++--------- app/views/init/index.html.erb | 6 +- config/environments/development.rb | 1 - 18 files changed, 167 insertions(+), 164 deletions(-) create mode 100644 app/assets/images/sprite.svg diff --git a/app/assets/images/sprite.svg b/app/assets/images/sprite.svg new file mode 100644 index 000000000..71ccbd44e --- /dev/null +++ b/app/assets/images/sprite.svg @@ -0,0 +1,12 @@ + + + sprite + Created with Sketch (http://www.bohemiancoding.com/sketch) + + + + + + + + \ No newline at end of file diff --git a/app/assets/javascripts/app/controllers/navigation.js.coffee b/app/assets/javascripts/app/controllers/navigation.js.coffee index 62c30caf4..0a06528bd 100644 --- a/app/assets/javascripts/app/controllers/navigation.js.coffee +++ b/app/assets/javascripts/app/controllers/navigation.js.coffee @@ -1,4 +1,6 @@ class App.Navigation extends App.Controller + className: 'navigation flex vertical' + constructor: -> super @render() diff --git a/app/assets/javascripts/app/controllers/notify.js.coffee b/app/assets/javascripts/app/controllers/notify.js.coffee index 60104dd36..4f164a157 100644 --- a/app/assets/javascripts/app/controllers/notify.js.coffee +++ b/app/assets/javascripts/app/controllers/notify.js.coffee @@ -1,5 +1,4 @@ class App.Notify extends Spine.Controller - className: 'container' events: 'click .alert': 'destroy' diff --git a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee index 49c372518..1f57e568b 100644 --- a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee @@ -22,13 +22,13 @@ class App.Run extends App.Controller App.Auth.loginCheck() # start navbars - @setupWidget( 'Navigations', 'nav', @el.find('nav') ) + @setupWidget( 'Navigations', 'nav', @el.find('#nav') ) # start widgets - @setupWidget( 'Widgets', 'widget', @el.find('section') ) + @setupWidget( 'Widgets', 'widget', @el ) # start widgets - @setupWidget( 'Footers', 'footer', @el.find('footer') ) + # @setupWidget( 'Footers', 'footer', @el.find('footer') ) # bind to fill selected text into App.ClipBoard.bind( @el ) @@ -47,7 +47,7 @@ class App.Run extends App.Controller App.Event.trigger( event + ':ready') class App.Content extends App.Controller - className: 'content' + className: 'content flex' constructor: -> super diff --git a/app/assets/javascripts/app/views/agent_ticket_create.jst.eco b/app/assets/javascripts/app/views/agent_ticket_create.jst.eco index 2462ec549..f6514f22c 100644 --- a/app/assets/javascripts/app/views/agent_ticket_create.jst.eco +++ b/app/assets/javascripts/app/views/agent_ticket_create.jst.eco @@ -1,4 +1,4 @@ -
+
-
+