add tags to results template and remove the unused controller (the partial template uses the application controller)
authornowmad@nowmads-macbook-pro.local
Fri, 11 Dec 2015 13:15:01 +0100
changeset 52 87b6a104de8e
parent 51 70dff07a76ff
child 53 30e7ac1ff04a
add tags to results template and remove the unused controller (the partial template uses the application controller)
cms/app-client/app/controllers/results.js
cms/app-client/app/templates/results.hbs
--- 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>