add tags to results template and remove the unused controller (the partial template uses the application controller)
--- a/cms/app-client/app/controllers/results.js Fri Dec 11 13:13:47 2015 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-import Ember from 'ember';
-
-export default Ember.Controller.extend({
- queryParams: ['location'],
- location: null,
- filteredSounds: Ember.computed('location', 'model', function() {
- var location = this.get('location');
- console.log("model ? ", this.get('model'));
- var sounds = this.get('model');
-
- if (location) {
- return sounds.filterBy('location', location);
- } else {
- return sounds;
- }
- })
-});
--- a/cms/app-client/app/templates/results.hbs Fri Dec 11 13:13:47 2015 +0100
+++ b/cms/app-client/app/templates/results.hbs Fri Dec 11 13:15:01 2015 +0100
@@ -1,7 +1,10 @@
<h2>This is the results</h2>
<div class="corpus-app-content">
RESULTS
- {{#each model as |item| }}
+ <p>
+ Tags: {{location}} {{langue}}
+ </p>
+ {{#each filteredSounds as |item| }}
<p>
<strong>{{ item.name }}</strong>
</p>