diff --git a/assets/scripts/app/controllers/account_index.coffee b/assets/scripts/app/controllers/account_index.coffee index 0b721c8b..eff1101f 100644 --- a/assets/scripts/app/controllers/account_index.coffee +++ b/assets/scripts/app/controllers/account_index.coffee @@ -2,7 +2,7 @@ Travis.AccountIndexController = Em.Controller.extend needs: ['profile', 'currentUser'] hooksBinding: 'controllers.profile.hooks' allHooksBinding: 'controllers.profile.allHooks' - unAdminisetableHooksBinding: 'controllers.profile.unAdminisetableHooks' + hooksWithoutAdminBinding: 'controllers.profile.hooksWithoutAdmin' userBinding: 'controllers.currentUser' sync: -> diff --git a/assets/scripts/app/controllers/profile.coffee b/assets/scripts/app/controllers/profile.coffee index 2415d05a..87150280 100644 --- a/assets/scripts/app/controllers/profile.coffee +++ b/assets/scripts/app/controllers/profile.coffee @@ -43,7 +43,7 @@ Travis.ProfileController = Travis.Controller.extend @get('allHooks').filter (hook) -> hook.get('admin') ).property('allHooks.length', 'allHooks') - unAdminisetableHooks: (-> + hooksWithoutAdmin: (-> @reloadHooks() unless hooks = @get('allHooks') @get('allHooks').filter (hook) -> !hook.get('admin') ).property('allHooks.length', 'allHooks') diff --git a/assets/scripts/app/templates/profile/tabs/hooks.hbs b/assets/scripts/app/templates/profile/tabs/hooks.hbs index 5166f168..5662f9d4 100644 --- a/assets/scripts/app/templates/profile/tabs/hooks.hbs +++ b/assets/scripts/app/templates/profile/tabs/hooks.hbs @@ -1,5 +1,6 @@
- Flick the switches below to turn on the Travis service hook for your projects, then push to GitHub. + Enable your projects below by flicking the switch, add a .travis.yml to your project, and push a new commit to + GitHub.
{{#if allHooks.isLoaded}} @@ -29,25 +30,25 @@ {{else}}- These are the repositories, which we synced, but you do not seem to have admin access for them. + You only have pull or push access to the repositories below.
{{hook.description}}