get icon coloring right

This commit is contained in:
Lisa P 2015-09-14 14:56:02 +02:00
parent 5326821990
commit 26fe355e40
5 changed files with 8 additions and 6 deletions

View File

@ -55,6 +55,7 @@ BranchRowComponent = Ember.Component.extend
viewAllBuilds: (branch) -> viewAllBuilds: (branch) ->
console.log('view all builds') console.log('view all builds')
@transitionToRoute('builds')
# updateFilter: (value) -> # updateFilter: (value) ->
# @set('_lastFilterValue', value) # @set('_lastFilterValue', value)
# Ember.run.throttle this, @updateFilter, [], 200, false # Ember.run.throttle this, @updateFilter, [], 200, false

View File

@ -4,7 +4,7 @@ StatusIconComponent = Ember.Component.extend
tagName: 'span' tagName: 'span'
classNames: ['status-icon'] classNames: ['status-icon']
classNameBindings: ['build.last_build.state'] classNameBindings: ['build.last_build.state', 'build.state']
hasPassed: (-> hasPassed: (->
@get('build.last_build.state') == 'passed' || @get('build.last_build.state') == 'passed' ||

View File

@ -1,7 +1,8 @@
@mixin buildTileColors($color, $bg, $status) @mixin buildTileColors($color, $bg, $status)
> .#{$status} > .#{$status}
background-color: $bg background-color: $bg
.icon-request g > * .icon-request g > *,
.status-icon g > *
fill: $color fill: $color
&:hover &:hover
background-color: $color background-color: $color

View File

@ -6,8 +6,8 @@
color: $color color: $color
&:hover &:hover
border-color: $color border-color: $color
.status-icon g > *, .branch-name .status-icon g > *,
.icon-request g > * .branch-request .icon-request g > *
fill: $color fill: $color
.branches .branches

View File

@ -135,7 +135,7 @@
</div> </div>
<div class="dropup--blue"> <div class="dropup--blue">
<ul> <ul>
<li><a href="#"> <li><a {{action 'tiggerBuild'}}>
<span class="icon-trigger"> <span class="icon-trigger">
<svg x="0px" y="0px" viewBox="0 0 20 20" xml:space="preserve"> <svg x="0px" y="0px" viewBox="0 0 20 20" xml:space="preserve">
<g id="Trigger"> <g id="Trigger">
@ -148,7 +148,7 @@
</span> </span>
Trigger a build</a> Trigger a build</a>
</li> </li>
<li><a href="#"> <li><a {{action 'viewAllBuilds'}}>
<span class="icon-eye"> <span class="icon-eye">
<svg x="0px" y="0px" viewBox="0 0 20 20" xml:space="preserve"> <svg x="0px" y="0px" viewBox="0 0 20 20" xml:space="preserve">
<g id="View"> <g id="View">