travis-web/app/templates/components/owner-repo-tile.hbs
Lisa P 79b456e511 dashboard row styles
start row layouting

work on dropup

rearrange markup, make tofu toggle

bäm

use placeholder instead of variable, doh

add border

replace all the icons

adjust icons sizes

use icon classes instead of svg

more icons adjustments

more icon tweaks on caches

update coloring mixins

fix stateMap, update db coloring mixin

cleanup owner page

even more icon fun

popup tweaks

tweak api icon

change to new broadcast icon

change icon path

responsive tweaks

dashboard filter

hack around Safari's not quite standard flexbox behaviour

update row labels and icon spacing

rearrange links in sidebar

make last builds a component, tweak svg stroke-width

more icon tweaks

fiddle around with svg view props

rearrange links in branch-row

tweak request icon

add integration test

more tweaks
2016-03-09 11:05:51 +01:00

53 lines
1.7 KiB
Handlebars

{{!-- {{#if repo.private }}
<div class="tile-lock"><span class="icon icon-lock"></span></div>
{{/if}} --}}
<div class="row-item fade-out">
<div clas="one-line">
<h2 class="repo-title">
{{status-icon status=repo.default_branch.last_build.state}}
{{#link-to "repo" ownerName repoName }}
<span class="label-align">{{repoName}}</span>
{{/link-to}}
</h2>
</div>
</div>
{{#if repo.default_branch.last_build}}
<div class="row-item row-color">
<div class="one-line">
{{#link-to "build" ownerName repoName repo.default_branch.last_build.id}}
<span class="icon-hash">
</span>
<span class="label-align">{{repo.default_branch.last_build.number}}</span>
{{/link-to}}
</div>
</div>
<div class="row-item fade-out">
<div class="one-line">
{{request-icon event=repo.default_branch.last_build.event_type}}
<span class="label-align">{{repo.default_branch.name}}</span>
</div>
</div>
<div class="row-item">
<div class="one-line">
<a href="{{repo.default_branch.last_build.commit.compare_url}}">
<span class="icon-github">
</span>
<span class="label-align">{{format-sha repo.default_branch.last_build.commit.sha}}</span>
</a>
</div>
</div>
<div class="row-item fade-out">
<div class="one-line">
<span class="icon-calendar">
</span>
<span class="build-status label-align">{{repo.default_branch.last_build.state}}</span>
<span class="finished-at label-align">{{format-time repo.default_branch.last_build.finished_at}}</span>
</div>
</div>
{{else}}
<p class="row-item">There is no build on the default branch yet.</p>
{{/if}}