explicitly check for pullRequest caches and some style changes
This commit is contained in:
parent
126c767fe1
commit
9e7af7eaad
|
@ -67,3 +67,17 @@
|
||||||
|
|
||||||
%inline-block
|
%inline-block
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
|
||||||
|
%helptext
|
||||||
|
font-size: $font-size-m
|
||||||
|
color: $grey1
|
||||||
|
a
|
||||||
|
color: $grey3
|
||||||
|
text-decoration: none
|
||||||
|
&:hover
|
||||||
|
text-decoration: underline
|
||||||
|
|
||||||
|
%section-title
|
||||||
|
font-size: $font-size-sm
|
||||||
|
color: $grey1
|
||||||
|
font-weight: 400
|
||||||
|
|
|
@ -53,3 +53,14 @@
|
||||||
text-decoration: underline
|
text-decoration: underline
|
||||||
.button--delete
|
.button--delete
|
||||||
float: right
|
float: right
|
||||||
|
|
||||||
|
.caches-helptext
|
||||||
|
@extend %helptext
|
||||||
|
|
||||||
|
.caches-title
|
||||||
|
@extend %helptext
|
||||||
|
@extend %section-title
|
||||||
|
@include clearfix
|
||||||
|
float: left
|
||||||
|
margin: 1em 0 .5em
|
||||||
|
|
||||||
|
|
|
@ -1,25 +1,27 @@
|
||||||
{{#if model.pushes.length}}
|
{{#if model.pushes.length}}
|
||||||
|
|
||||||
<div class="caches-header">
|
<div class="caches-header">
|
||||||
<h1 class="build-title">All caches <small>(<a href="http://docs.travis-ci.com/user/caching/" title="">documentation</a>)</small></h1>
|
<h1 class="caches-title">All caches <small>(<a href="http://docs.travis-ci.com/user/caching/" title="">documentation</a>)</small></h1>
|
||||||
<a href="#" {{action "deleteRepoCache"}} {{bind-attr class="isDeleting:deleting :delete-repo-caches :button--delete"}}>
|
<a href="#" {{action "deleteRepoCache"}} {{bind-attr class="isDeleting:deleting :delete-repo-caches :button--delete"}}>
|
||||||
Delete all repository caches
|
Delete all repository caches
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<h2 class="build-title">Pushes</h2>
|
<h2 class="caches-title">Pushes</h2>
|
||||||
<ul id="caches" class="caches">
|
<ul id="caches" class="caches">
|
||||||
{{#each cache in model.pushes }}
|
{{#each cache in model.pushes }}
|
||||||
{{caches-item cache=cache repo=repo caches=model.pushes}}
|
{{caches-item cache=cache repo=repo caches=model.pushes}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h2 class="build-title">Pull Requests</h2>
|
{{#if model.pullRequests.length}}
|
||||||
|
<h2 class="caches-title">Pull Requests</h2>
|
||||||
<ul class="caches">
|
<ul class="caches">
|
||||||
{{#each cache in model.pullRequests }}
|
{{#each cache in model.pullRequests }}
|
||||||
{{caches-item cache=cache repo=repo caches=model.pullRequests}}
|
{{caches-item cache=cache repo=repo caches=model.pullRequests}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>No caches have been created yet,<br>read more on <a href="http://docs.travis-ci.com/user/caching/" title="">how to setup caching with your build</a>.</p>
|
<p class="caches-helptext">No caches have been created yet,<br>read more on <a href="http://docs.travis-ci.com/user/caching/" title="">how to setup caching with your build</a>.</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user