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