From aaf777ce9de87199abbd08d889cce799b6b7d763 Mon Sep 17 00:00:00 2001 From: Mathias Meyer Date: Tue, 18 Mar 2014 10:40:30 +0100 Subject: [PATCH] Show a message pointint to travis-ci.com. Reduces friction a whee bit in finding your private repositories. --- assets/scripts/app/controllers/profile.coffee | 4 +++- assets/scripts/app/templates/profile/tabs/hooks.hbs | 9 ++++++++- assets/scripts/travis.coffee | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/assets/scripts/app/controllers/profile.coffee b/assets/scripts/app/controllers/profile.coffee index 87150280..1a69c14f 100644 --- a/assets/scripts/app/controllers/profile.coffee +++ b/assets/scripts/app/controllers/profile.coffee @@ -59,4 +59,6 @@ Travis.ProfileController = Travis.Controller.extend @set('params', {}) @set("params.#{key}", params[key]) for key, value of params - + showPrivateReposHint: (-> + Travis.config.show_repos_hint == 'public' + ) .property() diff --git a/assets/scripts/app/templates/profile/tabs/hooks.hbs b/assets/scripts/app/templates/profile/tabs/hooks.hbs index 0c6bb1e1..19e326a8 100644 --- a/assets/scripts/app/templates/profile/tabs/hooks.hbs +++ b/assets/scripts/app/templates/profile/tabs/hooks.hbs @@ -1,3 +1,10 @@ +{{#if showPrivateReposHint}} +

+ We're only showing your public repositories below. + You can find your private projects on travis-ci.com. +

+{{/if}} +

Enable your projects below by flicking the switch, add a .travis.yml to your project, and push a new commit to GitHub. @@ -6,7 +13,7 @@ {{#if allHooks.isLoaded}} {{#if user.isSyncing}}

- Please wait while we sync from GitHub + Please wait while we synchronize your data from GitHub

{{else}}

diff --git a/assets/scripts/travis.coffee b/assets/scripts/travis.coffee index dea8798d..056f248f 100644 --- a/assets/scripts/travis.coffee +++ b/assets/scripts/travis.coffee @@ -82,6 +82,7 @@ $.extend Travis, ga_code: $('meta[name="travis.ga_code"]').attr('value') code_climate: $('meta[name="travis.code_climate"]').attr('value') code_climate_url: $('meta[name="travis.code_climate_url"]').attr('value') + show_repos_hint: 'public' CONFIG_KEYS_MAP: { go: 'Go'