filter for default branch
This commit is contained in:
parent
ceba450eb2
commit
df59484afb
|
@ -6,14 +6,15 @@ BranchesController = Ember.Controller.extend
|
||||||
|
|
||||||
defaultBranch: (->
|
defaultBranch: (->
|
||||||
repos = @get('model')
|
repos = @get('model')
|
||||||
console.log(repos[0])
|
output = repos.filter (item, index) ->
|
||||||
repos[0]
|
item if item.repository.default_branch.name == undefined
|
||||||
|
output[0]
|
||||||
).property('model')
|
).property('model')
|
||||||
|
|
||||||
activeBranches: (->
|
activeBranches: (->
|
||||||
repos = @get('model')
|
repos = @get('model')
|
||||||
repos = repos.filter (item, index) ->
|
repos = repos.filter (item, index) ->
|
||||||
item if item.exists_on_github == true
|
item if item.exists_on_github == true && item.repository.default_branch.name != undefined
|
||||||
.sort (a, b) ->
|
.sort (a, b) ->
|
||||||
# if a.last_build && b.last_build
|
# if a.last_build && b.last_build
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
right: 0
|
right: 0
|
||||||
bottom: 0
|
bottom: 0
|
||||||
left: 0
|
left: 0
|
||||||
width: 2rem !important
|
width: 2.5rem !important
|
||||||
height: 2rem !important
|
height: 2.5rem !important
|
||||||
margin: auto !important
|
margin: auto !important
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
.is-rotating
|
.is-rotating
|
||||||
|
@ -47,6 +47,7 @@
|
||||||
.circle
|
.circle
|
||||||
width: 8px
|
width: 8px
|
||||||
height: 8px
|
height: 8px
|
||||||
|
border-width: 2px
|
||||||
a
|
a
|
||||||
display: block
|
display: block
|
||||||
height: 100%
|
height: 100%
|
||||||
|
|
|
@ -180,6 +180,8 @@
|
||||||
.dropup--status
|
.dropup--status
|
||||||
@extend %dropup
|
@extend %dropup
|
||||||
display: none
|
display: none
|
||||||
|
&:after
|
||||||
|
bottom: -5px
|
||||||
@media #{$medium-up}
|
@media #{$medium-up}
|
||||||
top: -3em
|
top: -3em
|
||||||
padding: .2em .3em
|
padding: .2em .3em
|
||||||
|
@ -208,7 +210,7 @@
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
width: 5px
|
width: 5px
|
||||||
height: 5px
|
height: 5px
|
||||||
border: solid 2px #e5db29
|
border: solid 1px #e5db29
|
||||||
border-radius: 50%
|
border-radius: 50%
|
||||||
transform-origin: center center
|
transform-origin: center center
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user