forked from DockYard/ember-router-scroll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request DockYard#33 from emberobserver/kg-refactor-search
Move search up to the application template
- Loading branch information
Showing
25 changed files
with
47 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import Ember from 'ember'; | ||
import ControllerWithSearch from '../mixins/controller-with-search'; | ||
|
||
export default Ember.Controller.extend(ControllerWithSearch, { | ||
export default Ember.Controller.extend({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
import Ember from 'ember'; | ||
import ControllerWithSearch from '../mixins/controller-with-search'; | ||
|
||
export default Ember.Controller.extend({ | ||
export default Ember.Controller.extend(ControllerWithSearch, { | ||
shouldShowCategories: Ember.computed('currentRouteName', function() { | ||
return this.get('currentRouteName') !== 'addons.show'; | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import Ember from 'ember'; | ||
import ControllerWithSearch from '../mixins/controller-with-search'; | ||
|
||
export default Ember.Controller.extend(ControllerWithSearch, { | ||
export default Ember.Controller.extend({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import Ember from 'ember'; | ||
import ControllerWithSearch from '../mixins/controller-with-search'; | ||
|
||
export default Ember.Controller.extend(ControllerWithSearch, { | ||
export default Ember.Controller.extend({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import Ember from 'ember'; | ||
import ControllerWithSearch from '../mixins/controller-with-search'; | ||
|
||
export default Ember.Controller.extend(ControllerWithSearch, { | ||
export default Ember.Controller.extend({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import Ember from 'ember'; | ||
import ControllerWithSearch from '../mixins/controller-with-search'; | ||
|
||
export default Ember.Controller.extend(ControllerWithSearch, { | ||
export default Ember.Controller.extend({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import Ember from 'ember'; | ||
import ControllerWithSearch from '../mixins/controller-with-search'; | ||
|
||
export default Ember.Controller.extend(ControllerWithSearch, { | ||
export default Ember.Controller.extend({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import Ember from 'ember'; | ||
import ControllerWithSearch from '../mixins/controller-with-search'; | ||
|
||
export default Ember.Controller.extend(ControllerWithSearch, { | ||
export default Ember.Controller.extend({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import Ember from 'ember'; | ||
import scrollFix from '../mixins/scroll-fix'; | ||
import RouteWithSearch from '../mixins/route-with-search'; | ||
|
||
export default Ember.Route.extend(scrollFix, RouteWithSearch, { | ||
export default Ember.Route.extend(scrollFix, { | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import Ember from 'ember'; | ||
import scrollFix from '../mixins/scroll-fix'; | ||
import RouteWithSearch from '../mixins/route-with-search'; | ||
|
||
export default Ember.Route.extend(scrollFix, RouteWithSearch, { | ||
export default Ember.Route.extend(scrollFix, { | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import Ember from 'ember'; | ||
import scrollFix from '../mixins/scroll-fix'; | ||
import RouteWithSearch from '../mixins/route-with-search'; | ||
|
||
export default Ember.Route.extend(scrollFix, RouteWithSearch, { | ||
export default Ember.Route.extend(scrollFix, { | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import Ember from 'ember'; | ||
import scrollFix from '../mixins/scroll-fix'; | ||
import RouteWithSearch from '../mixins/route-with-search'; | ||
|
||
export default Ember.Route.extend(scrollFix, RouteWithSearch, { | ||
export default Ember.Route.extend(scrollFix, { | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import Ember from 'ember'; | ||
import scrollFix from '../mixins/scroll-fix'; | ||
import RouteWithSearch from '../mixins/route-with-search'; | ||
|
||
export default Ember.Route.extend(scrollFix, RouteWithSearch, { | ||
export default Ember.Route.extend(scrollFix, { | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import Ember from 'ember'; | ||
import scrollFix from '../mixins/scroll-fix'; | ||
import RouteWithSearch from '../mixins/route-with-search'; | ||
|
||
export default Ember.Route.extend(scrollFix, RouteWithSearch, { | ||
export default Ember.Route.extend(scrollFix, { | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import Ember from 'ember'; | ||
import scrollFix from '../mixins/scroll-fix'; | ||
import RouteWithSearch from '../mixins/route-with-search'; | ||
|
||
export default Ember.Route.extend(scrollFix, RouteWithSearch, { | ||
export default Ember.Route.extend(scrollFix, { | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{{#page-layout-with-search query=query showCategories=false}} | ||
{{outlet}} | ||
{{/page-layout-with-search}} | ||
{{outlet}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{{#page-layout-with-search query=query}} | ||
{{outlet}} | ||
{{/page-layout-with-search}} | ||
{{outlet}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{{#page-layout-with-search query=query}} | ||
{{route-index class="route-index"}} | ||
{{/page-layout-with-search}} | ||
{{route-index class="route-index"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{{#page-layout-with-search query=query}} | ||
{{outlet}} | ||
{{/page-layout-with-search}} | ||
{{outlet}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{{#page-layout-with-search query=query}} | ||
{{outlet}} | ||
{{/page-layout-with-search}} | ||
{{outlet}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{{#page-layout-with-search query=query}} | ||
<div class="not-found test-not-found"> | ||
<h1>Oops! We can't find what you were looking for. Try searching above?</h1> | ||
</div> | ||
{{/page-layout-with-search}} | ||
<div class="not-found test-not-found"> | ||
<h1>Oops! We can't find what you were looking for. Try searching above?</h1> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{{#page-layout-with-search query=query}} | ||
<div class="not-found test-not-found"> | ||
<h1>Oops! We can't find what you were looking for. Try searching above?</h1> | ||
</div> | ||
{{/page-layout-with-search}} | ||
<div class="not-found test-not-found"> | ||
<h1>Oops! We can't find what you were looking for. Try searching above?</h1> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters