For now, Frolfr only supports U.S. courses diff --git a/app/templates/joint-rounds.hbs b/app/templates/joint-rounds.hbs index b9885a8..c3bcad2 100644 --- a/app/templates/joint-rounds.hbs +++ b/app/templates/joint-rounds.hbs @@ -16,7 +16,7 @@
- {{#each round in model}} + {{#each model as |round|}} {{#link-to "round" round.id tagName="tr" classNames="u-pointer"}}@@ -24,4 +24,4 @@ - \ No newline at end of file + diff --git a/app/templates/profile/settings.hbs b/app/templates/profile/settings.hbs index 7ec0864..399c8db 100644 --- a/app/templates/profile/settings.hbs +++ b/app/templates/profile/settings.hbs @@ -9,28 +9,28 @@ - {{input value=firstName type="text" id="firstName" required=true classNames="form-control"}} + {{input value=model.firstName type="text" id="firstName" required=true classNames="form-control"}}
diff --git a/app/templates/public-round.hbs b/app/templates/public-round.hbs deleted file mode 100644 index cb41ae5..0000000 --- a/app/templates/public-round.hbs +++ /dev/null @@ -1,8 +0,0 @@ -
{{review.post}}
- {{#if review.canUpdate}} -{{link-to 'Edit My Review' 'review.edit' review}}
- {{/if}} -There are no current reviews. {{link-to "Wanna add one?" 'reviews.new'}}
-{{/if}} diff --git a/app/templates/reviews/new.hbs b/app/templates/reviews/new.hbs deleted file mode 100644 index b8d9cc4..0000000 --- a/app/templates/reviews/new.hbs +++ /dev/null @@ -1,12 +0,0 @@ -Can't see the course you're looking for? Why not @@ -50,7 +55,7 @@ {{currentUser.fullName}} - {{#each players as |player|}} + {{#each model.players as |player|}}
diff --git a/bower.json b/bower.json index 9e3c641..fc906b0 100644 --- a/bower.json +++ b/bower.json @@ -15,7 +15,6 @@ "moment": "~2.9.0", "highcharts": "~4.1.1", "ember-uploader": "~0.3.4", - "emblem": "~0.3.18", "jquery-cookie": "~1.4.1", "bootstrap-sass-official": "~3.3.3", "typeahead.js": "~0.10.5", diff --git a/ember-cli-build.js b/ember-cli-build.js index 93a33d2..67601d9 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -4,9 +4,7 @@ var EmberApp = require('ember-cli/lib/broccoli/ember-app'); module.exports = function(defaults) { var app = new EmberApp(defaults, { - fingerprint: { - prepend: "http://s3.amazonaws.com/frolfr-assets/" - } + // }); var pickFiles = require('broccoli-static-compiler'); diff --git a/package.json b/package.json index 5c54f96..f251a0a 100644 --- a/package.json +++ b/package.json @@ -32,17 +32,15 @@ "ember-cli-ic-ajax": "0.2.4", "ember-cli-inject-live-reload": "^1.3.1", "ember-cli-mirage": "0.2.1", - "ember-cli-pagination": "^0.6.6", + "ember-cli-pagination": "0.9.0", "ember-cli-qunit": "^1.0.4", "ember-cli-release": "0.2.8", "ember-cli-sri": "^1.2.0", "ember-cli-uglify": "^1.2.0", "ember-data": "1.13.15", - "ember-deploy": "^0.3.1", - "ember-deploy-s3": "0.0.3", - "ember-deploy-s3-index": "^0.2.0", "ember-disable-proxy-controllers": "^1.0.1", "ember-export-application-global": "^1.0.4", + "emberx-select": "2.2.1", "express": "^4.8.5", "glob": "^4.0.5" } diff --git a/tests/.jshintrc b/tests/.jshintrc index 2a171aa..0ab53df 100644 --- a/tests/.jshintrc +++ b/tests/.jshintrc @@ -13,6 +13,7 @@ "exists", "fillIn", "click", + "select", "keyEvent", "triggerEvent", "find", diff --git a/tests/test-helper.js b/tests/test-helper.js index e6cfb70..35461bf 100644 --- a/tests/test-helper.js +++ b/tests/test-helper.js @@ -1,4 +1,6 @@ import resolver from './helpers/resolver'; +import registerSelectHelper from './helpers/register-select-helper'; +registerSelectHelper(); import { setResolver } from 'ember-qunit'; diff --git a/tests/unit/helpers/formatted-address-test.js b/tests/unit/helpers/formatted-address-test.js deleted file mode 100644 index 43950c8..0000000 --- a/tests/unit/helpers/formatted-address-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { - formattedAddress -} from '../../../helpers/formatted-address'; -import { module, test } from 'qunit'; - -module('FormattedAddressHelper'); - -// Replace this with your real tests. -test('it works', function(assert) { - var result = formattedAddress(42); - assert.ok(result); -}); diff --git a/tests/unit/models/course-test.js b/tests/unit/models/course-test.js index e769c95..44e8338 100644 --- a/tests/unit/models/course-test.js +++ b/tests/unit/models/course-test.js @@ -6,7 +6,7 @@ import Ember from 'ember'; moduleForModel('course', { // Specify the other units that are required for this test. - needs: ['model:scorecard', 'model:hole', 'model:review', 'model:photo', 'model:round', 'model:user', 'model:turn'] + needs: ['model:scorecard', 'model:hole', 'model:photo', 'model:round', 'model:user', 'model:turn'] }); test('isApproved correctly checks status', function(assert) { @@ -32,14 +32,6 @@ test('holes relationship', function(assert) { assert.equal(relationship.kind, 'hasMany'); }); -test('reviews relationship', function(assert) { - var model = this.store().modelFor('course'); - var relationship = Ember.get(model, 'relationshipsByName').get('reviews'); - - assert.equal(relationship.key, 'reviews'); - assert.equal(relationship.kind, 'hasMany'); -}); - test('photos relationship', function(assert) { var model = this.store().modelFor('course'); var relationship = Ember.get(model, 'relationshipsByName').get('photos');