diff --git a/app/components/branch-row.coffee b/app/components/branch-row.coffee index 17de95df..b6efcfce 100644 --- a/app/components/branch-row.coffee +++ b/app/components/branch-row.coffee @@ -5,7 +5,7 @@ `import config from 'travis/config/environment'` BranchRowComponent = Ember.Component.extend - + routing: Ember.inject.service('-routing') tagName: 'li' classNameBindings: ['build.last_build.state'] classNames: ['branch-row'] @@ -86,6 +86,6 @@ BranchRowComponent = Ember.Component.extend @triggerBuild() viewAllBuilds: (branch) -> - console.log('view all builds') + @get('routing').transitionTo('builds') `export default BranchRowComponent` diff --git a/app/components/status-icon.coffee b/app/components/status-icon.coffee index 2668845e..5ba1a048 100644 --- a/app/components/status-icon.coffee +++ b/app/components/status-icon.coffee @@ -31,10 +31,13 @@ StatusIconComponent = Ember.Component.extend ).property('status') isEmpty: (-> - if @get('status') == null || @get('status') == '' + unless @get('status') true else - false + if @get('status') == '' + true + else + false ).property('status') diff --git a/app/styles/app/layouts/branches.sass b/app/styles/app/layouts/branches.sass index 8080d1b6..be4d68fe 100644 --- a/app/styles/app/layouts/branches.sass +++ b/app/styles/app/layouts/branches.sass @@ -179,7 +179,7 @@ @media #{$medium-up} width: 10em left: 0 - padding: .3em + padding: .4em transform: translate(-42%, -170%) border: 1px solid $teal-dark li