diff --git a/app/components/no-builds.coffee b/app/components/no-builds.coffee new file mode 100644 index 00000000..38e3b529 --- /dev/null +++ b/app/components/no-builds.coffee @@ -0,0 +1,5 @@ +`import Ember from 'ember'` + +NoBuildsComponent = Ember.Component.extend() + +`export default NoBuildsComponent` diff --git a/app/styles/app.scss b/app/styles/app.scss index 764e55ba..dffd6596 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -57,3 +57,4 @@ @import "app/layouts/caches"; @import "app/layouts/getting-started"; @import "app/layouts/first-sync"; +@import "app/layouts/missing-notice"; diff --git a/app/styles/app/layouts/missing-notice.sass b/app/styles/app/layouts/missing-notice.sass new file mode 100644 index 00000000..d2ec8ed8 --- /dev/null +++ b/app/styles/app/layouts/missing-notice.sass @@ -0,0 +1,27 @@ +.missing-notice + text-align: center + + a + font-size: 14px + +.page-title + color: #434343 + font-size: 36px + font-weight: 200 + line-height: 1 + margin-bottom: .5em + +.page-notice + font-size: $font-size-m + color: #8d8d8d + +.page-graphic + width: 80% + height: auto + max-width: 310px + margin: 5.75rem auto 0 + padding: 0 2em + line-height: 0 + border-bottom: 1px solid #DEDCDB + @media #{$medium-up} + width: 32% diff --git a/app/styles/app/modules/buttons.sass b/app/styles/app/modules/buttons.sass index 4caac525..654b2f20 100644 --- a/app/styles/app/modules/buttons.sass +++ b/app/styles/app/modules/buttons.sass @@ -22,6 +22,7 @@ $button-border-color: #d4d4d4 text-align: center color: $gray-dark-3 white-space: nowrap + border-radius: 2px .button:hover, .button:focus, diff --git a/app/templates/builds.hbs b/app/templates/builds.hbs index ec885c71..e9cd7322 100644 --- a/app/templates/builds.hbs +++ b/app/templates/builds.hbs @@ -2,6 +2,8 @@ {{!-- --}} {{#each controller as |build|}} {{builds-item build=build}} + {{else}} + {{no-builds}} {{/each}} {{#if displayShowMoreButton}}

@@ -11,6 +13,7 @@ {{/if}}

{{/if}} + {{else}} {{loading-indicator}} {{/if}} diff --git a/app/templates/builds/not-found.hbs b/app/templates/builds/not-found.hbs index 7fbeea2e..bd2b8add 100644 --- a/app/templates/builds/not-found.hbs +++ b/app/templates/builds/not-found.hbs @@ -1 +1 @@ -There are no builds for this repository. +{{no-builds}} \ No newline at end of file diff --git a/app/templates/components/no-builds.hbs b/app/templates/components/no-builds.hbs new file mode 100644 index 00000000..35c85ad0 --- /dev/null +++ b/app/templates/components/no-builds.hbs @@ -0,0 +1,63 @@ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

No builds for this repository

+

Want to start testing this project on Travis CI?

+ Read the Docs on Getting Started +
diff --git a/public/images/svg/cones.svg b/public/images/svg/cones.svg new file mode 100644 index 00000000..500ccbef --- /dev/null +++ b/public/images/svg/cones.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/unit/components/no-builds-test.coffee b/tests/unit/components/no-builds-test.coffee new file mode 100644 index 00000000..c792f42a --- /dev/null +++ b/tests/unit/components/no-builds-test.coffee @@ -0,0 +1,17 @@ +`import { test, moduleForComponent } from 'ember-qunit'` + +moduleForComponent 'no-builds', { + # specify the other units that are required for this test + # needs: ['component:foo', 'helper:bar'] +} + +test 'it renders', (assert) -> + assert.expect 2 + + # creates the component instance + component = @subject() + assert.equal component._state, 'preRender' + + # renders the component to the page + @render() + assert.equal component._state, 'inDOM'