add pr icon
This commit is contained in:
parent
a78e226de1
commit
203fbcea8a
|
@ -25,6 +25,10 @@ Route = TravisRoute.extend
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
for branch, caches of groups
|
for branch, caches of groups
|
||||||
|
if /PR./.test(branch)
|
||||||
|
caches.set('type', 'pull_request')
|
||||||
|
else
|
||||||
|
caches.set('type', 'push')
|
||||||
result.push caches
|
result.push caches
|
||||||
|
|
||||||
result
|
result
|
||||||
|
|
|
@ -7,9 +7,19 @@
|
||||||
.tile-xs
|
.tile-xs
|
||||||
padding-left: 0
|
padding-left: 0
|
||||||
|
|
||||||
.icon.push
|
|
||||||
width: 1.2em;
|
.push
|
||||||
height: 0.8em;
|
.icon--grey
|
||||||
|
@extend .icon--grey.push
|
||||||
|
width: 1.2em;
|
||||||
|
height: 0.8em;
|
||||||
|
.pull_request
|
||||||
|
.icon--grey
|
||||||
|
@extend .icon--grey.pull_request
|
||||||
|
width: 1em;
|
||||||
|
height: 1.5em;
|
||||||
|
|
||||||
|
.icon--grey
|
||||||
margin-right: .3em
|
margin-right: .3em
|
||||||
|
|
||||||
.button--delete
|
.button--delete
|
||||||
|
|
|
@ -8,11 +8,10 @@
|
||||||
{{!-- <h2 class="build-title">Pushes</h2> --}}
|
{{!-- <h2 class="build-title">Pushes</h2> --}}
|
||||||
<ul id="caches" class="caches">
|
<ul id="caches" class="caches">
|
||||||
{{#each controller itemController="cachesByBranch"}}
|
{{#each controller itemController="cachesByBranch"}}
|
||||||
{{#each cache in caches itemController="cachesItem"}}
|
<li {{bind-attr class=":tile :tile--xs :tile :row controller.type" }}>
|
||||||
<li {{bind-attr class=":tile :tile--xs :tile :row" }}>
|
{{#each cache in caches itemController="cachesItem"}}
|
||||||
|
|
||||||
<p class="tile-item caches-branch column">
|
<p class="tile-item caches-branch column">
|
||||||
<span {{bind-attr class=":icon :icon--grey :push"}}></span>
|
<span {{bind-attr class=":icon :icon--grey"}}></span>
|
||||||
{{cache.branch}}
|
{{cache.branch}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -25,8 +24,8 @@
|
||||||
Delete
|
Delete
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
{{/each}}
|
||||||
{{/each}}
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user