diff --git a/app/controllers/builds.coffee b/app/controllers/builds.coffee
index 582307ad..956c9dbb 100644
--- a/app/controllers/builds.coffee
+++ b/app/controllers/builds.coffee
@@ -31,7 +31,17 @@ Controller = Ember.ArrayController.extend
false
).property('tab', 'repo.builds', 'repo.pullRequests')
- things: (->
+ displayBranches: (->
+ if @get('tab') == 'branches'
+ if Ember.isEmpty(@get('repo.branches.content.content'))
+ true
+ else
+ false
+ else
+ false
+ ).property('tab', 'repo.builds', 'repo.branches')
+
+ noticeData: (->
return {
repo: @get('repo'),
auth: @auth.token()
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..86b77799 100644
--- a/app/templates/builds.hbs
+++ b/app/templates/builds.hbs
@@ -1,9 +1,8 @@
{{#if content.isLoaded}}
-{{!--
--}}
{{#each controller as |build|}}
{{builds-item build=build}}
{{else}}
- {{no-builds repo=things isPR=displayPullRequests}}
+ {{no-builds repo=noticeData 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}}
-
No builds for this repository
- 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}}
+ No pull request builds for this repositiory
{{else}}
- No Pull Request builds for this repositiory
- {{/unless}}
-
+ {{#if isBranch}}
+ No other branches for this repositiory
+ {{else}}
+ No builds for this repository
+ 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..fd055090 100644
--- a/app/templates/components/not-active.hbs
+++ b/app/templates/components/not-active.hbs
@@ -63,5 +63,7 @@
This is not an active repository
Want to start testing this project on Travis CI?
Read the Docs on Getting Started
-
+ {{#if user.pushPermissions.length}}
+ If this repository is already in active use,
make sure it’s activated on {{#link-to "account" repo.owner}}your profile{{/link-to}}.
+ {{/if}}
diff --git a/app/templates/repo.hbs b/app/templates/repo.hbs
index 5a5082fb..090a8e79 100644
--- a/app/templates/repo.hbs
+++ b/app/templates/repo.hbs
@@ -26,7 +26,11 @@
{{#if repo.active}}
{{outlet}}
{{else}}
- {{not-active}}
+ {{#if repo.lastBuildId}}
+ {{outlet}}
+ {{else}}
+ {{not-active user=currentUser repo=repo}}
+ {{/if}}
{{/if}}