diff --git a/app/controllers/builds.coffee b/app/controllers/builds.coffee index 7bd25ad8..5a179af5 100644 --- a/app/controllers/builds.coffee +++ b/app/controllers/builds.coffee @@ -21,6 +21,14 @@ Controller = Ember.ArrayController.extend @get('tab') != 'branches' and parseInt(@get('lastObject.number')) > 1 ).property('tab', 'lastObject.number') + displayPullRequests: (-> + if @get('tab') == 'pull_requests' + return true + else + return false + + ).property('tab', 'lastObject.number') + olderThanNumber: (id, number, type) -> options = { repository_id: id, after_number: number } if type? diff --git a/app/templates/builds.hbs b/app/templates/builds.hbs index e9cd7322..932d2453 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}} + {{no-builds isPR=displayPullRequests}} {{/each}} {{#if displayShowMoreButton}}
diff --git a/app/templates/components/no-builds.hbs b/app/templates/components/no-builds.hbs
index 35c85ad0..6f41699e 100644
--- a/app/templates/components/no-builds.hbs
+++ b/app/templates/components/no-builds.hbs
@@ -2,62 +2,72 @@
Want to start testing this project on Travis CI?
- Read the Docs on Getting Started + {{#unless isPR}} +Want to start testing this project on Travis CI?
+ Read the Docs on Getting Started + {{else}} +