# HG changeset patch # User nowmad@nowmads-macbook-pro.local # Date 1449836101 -3600 # Node ID 87b6a104de8e8c9d3af0611aeaf78524b484d682 # Parent 70dff07a76ff07bf369747f4bc310ae7577586bb add tags to results template and remove the unused controller (the partial template uses the application controller) diff -r 70dff07a76ff -r 87b6a104de8e cms/app-client/app/controllers/results.js --- 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; - } - }) -}); diff -r 70dff07a76ff -r 87b6a104de8e cms/app-client/app/templates/results.hbs --- 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 @@
+ Tags: {{location}} {{langue}} +
+ {{#each filteredSounds as |item| }}{{ item.name }}