diff --git a/app/assets/images/sprite.svg b/app/assets/images/sprite.svg index 9596376cd..8ab228012 100644 --- a/app/assets/images/sprite.svg +++ b/app/assets/images/sprite.svg @@ -1,5 +1,5 @@ - + sprite Created with Sketch (http://www.bohemiancoding.com/sketch) @@ -17,5 +17,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 d67467a86..a4b30f5ef 100644 --- a/app/assets/javascripts/app/controllers/navigation.js.coffee +++ b/app/assets/javascripts/app/controllers/navigation.js.coffee @@ -1,6 +1,9 @@ class App.Navigation extends App.Controller className: 'navigation vertical' + events: + 'click .empty-search': 'emptySearch' + constructor: -> super @render() @@ -205,6 +208,8 @@ class App.Navigation extends App.Controller @el.find('#global-search').bind( 'keyup', (e) => @term = @el.find('#global-search').val() + @el.find('.search').toggleClass('filled', !!@term) + return if !@term return if @term is search @delay( searchFunction, 220, 'search' ) @@ -212,6 +217,10 @@ class App.Navigation extends App.Controller @taskbar = new App.TaskbarWidget( el: @el.find('.tasks') ) + emptySearch: (event) => + @el.find('#global-search').val("") + @el.find('.search').removeClass('filled') + getItems: (data) -> navbar = _.values(data.navbar) diff --git a/app/assets/javascripts/app/views/dashboard.jst.eco b/app/assets/javascripts/app/views/dashboard.jst.eco index cd2854c98..d8d804f71 100644 --- a/app/assets/javascripts/app/views/dashboard.jst.eco +++ b/app/assets/javascripts/app/views/dashboard.jst.eco @@ -1,12 +1,122 @@
-