switch back to default branch

This commit is contained in:
Lisa P 2015-09-22 17:57:57 +02:00
parent a964272df2
commit ffb635b846

View File

@ -1,7 +1,7 @@
<div class="two-line">
<div class="row-name row-item">
<h3>{{status-icon status=repo.default_branch.last_build.state}} {{repo.owner.login}}</h3>
<h3>{{status-icon status=repo.last_build.state}} {{repo.owner.login}}</h3>
<h2><span class="label-align">{{repo.name}}</span></h2>
</div>
</div>
@ -9,8 +9,8 @@
<div class="one-line">
<div class="row-request">
<div class="row-item">
{{request-icon build=repo.default_branch.last_build}}
<span class="label-align">#{{repo.default_branch.last_build.number}} {{repo.default_branch.last_build.state}} on {{repo.default_branch.name}}</span>
{{request-icon build=repo.last_build}}
<span class="label-align">#{{repo.last_build.number}} {{repo.last_build.state}} on {{repo.name}}</span>
</div>
</div>
</div>
@ -46,7 +46,7 @@
</svg>
</span>
<span class="label-align">
{{format-sha repo.default_branch.last_build.commit.sha}}
{{format-sha repo.last_build.commit.sha}}
</span>
</a>
</div>
@ -55,7 +55,7 @@
<div class="one-line">
<div class="row-calendar">
<div class="row-item" title="{{repo.default_branch.last_build.finished_at}}">
<div class="row-item" title="{{repo.last_build.finished_at}}">
<span class="icon">
<svg viewBox="0 0 20 20">
<g id="Cal">
@ -73,8 +73,8 @@
</svg>
</span>
<span class="label-align">
{{#if repo.default_branch.last_build}}
{{format-time repo.default_branch.last_build.finished_at}}
{{#if repo.last_build}}
{{format-time repo.last_build.finished_at}}
{{else}}
-
{{/if}}</span>