diff --git a/app/controllers/builds.coffee b/app/controllers/builds.coffee index 582307ad..681799df 100644 --- a/app/controllers/builds.coffee +++ b/app/controllers/builds.coffee @@ -31,6 +31,16 @@ Controller = Ember.ArrayController.extend false ).property('tab', 'repo.builds', 'repo.pullRequests') + displayBranches: (-> + if @get('tab') == 'branches' + if Ember.isEmpty(@get('repo.branches.content.content')) + true + else + false + else + false + ).property('tab', 'repo.builds', 'repo.branches') + things: (-> return { repo: @get('repo'), diff --git a/app/styles/app/layouts/missing-notice.sass b/app/styles/app/layouts/missing-notice.sass index d2ec8ed8..a88d555f 100644 --- a/app/styles/app/layouts/missing-notice.sass +++ b/app/styles/app/layouts/missing-notice.sass @@ -1,9 +1,14 @@ .missing-notice text-align: center - a + p a + color: $grey-dark + text-decoration: underline + + a.button font-size: 14px + .page-title color: #434343 font-size: 36px diff --git a/app/templates/builds.hbs b/app/templates/builds.hbs index be1ab124..c44c859e 100644 --- a/app/templates/builds.hbs +++ b/app/templates/builds.hbs @@ -3,7 +3,7 @@ {{#each controller as |build|}} {{builds-item build=build}} {{else}} - {{no-builds repo=things isPR=displayPullRequests}} + {{no-builds repo=things isPR=displayPullRequests isBranch=displayBranches}} {{/each}} {{#if displayShowMoreButton}}
diff --git a/app/templates/components/no-builds.hbs b/app/templates/components/no-builds.hbs index 2d5f5168..e7ca6d7c 100644 --- a/app/templates/components/no-builds.hbs +++ b/app/templates/components/no-builds.hbs @@ -62,17 +62,20 @@ - {{#unless isPR}} -
Want to start testing this project on Travis CI?
- Read the Docs on Getting Started - {{!-- {{#if isLoading}} - {{loading-indicator}} - {{else}} - Trigger the first build - {{/if}} --}} + {{#if isPR}} +Want to start testing this project on Travis CI?
+ Read the Docs on Getting Started + {{!-- {{#if isLoading}} + {{loading-indicator}} + {{else}} + Trigger the first build + {{/if}} --}} + {{/if}} + {{/if}} diff --git a/app/templates/components/not-active.hbs b/app/templates/components/not-active.hbs index 58d44bf2..77db3a1c 100644 --- a/app/templates/components/not-active.hbs +++ b/app/templates/components/not-active.hbs @@ -63,5 +63,5 @@Want to start testing this project on Travis CI?
Read the Docs on Getting Started - +If this repository is already in active use,
make sure it’s activated on {{#link-to "profile"}}your profile{{/link-to}}.