travis-web/assets/scripts/app/templates/jobs/show.hbs
Piotr Sarnacki 840ce5a47d Revert "Merge pull request #308 from rwjblue/update-ember"
After upgrading ember to 1.8.1 tests pass, but I found a few cases where
things break (for example when navigating between certain routes). I'm
reverting for now.

This reverts commit fa5e9179af, reversing
changes made to 978c887123.
2014-11-12 12:11:53 +01:00

64 lines
2.4 KiB
Handlebars

{{#if job.isLoaded}}
<div {{bind-attr class="view.color"}}>
<div id="new-summary">
<div class="right">
<div class="build-status">
{{#link-to "job" repo job}}#{{job.number}} {{job.state}}{{/link-to}}
</div>
<div class="runtime">
{{#if job.isFinished}}ran{{else}}running{{/if}} for {{formatDuration job.duration}}
</div>
<div class="finished">
{{formatTime job.finishedAt}}
</div>
</div>
<div class="branch" {{bind-attr title="job.commit.branch"}}>
{{job.commit.branch}}
</div>
<div class="subject">
- {{formatMessage job.commit.subject repoBinding=job.repo}}
</div>
<pre class="body">
{{formatMessage job.commit.body repoBinding=job.repo pre=true}}
</pre>
<div class="footer">
<div class="author">
{{#if job.commit.authorName}}
<div class="authored"><img {{bind-attr src="view.urlAuthorGravatarImage"}}/><div class="text">{{job.commit.authorName}} authored{{#if job.commit.authorIsCommitter}} and committed{{/if}}</div></div>
{{/if}}
{{#unless job.commit.authorIsCommitter}}
{{#if job.commit.committerName}}
<div class="committed"><img {{bind-attr src="view.urlCommitterGravatarImage"}}/><div class="text">{{job.commit.committerName}} committed</div></div>
{{/if}}
{{/unless}}
</div>
<div class="commit-changes">
<div class="text"><a class="commit" {{bind-attr href="controller.urlGithubCommit"}}>Commit {{formatSha job.commit.sha}}</a></div><img src="/images/icons/github.svg" height="15"/>
{{#if job.build.pullRequest}}
<div class="text"><a class="compare" {{bind-attr href="job.commit.compareUrl"}} >#{{job.build.pullRequestNumber}}: {{job.build.pullRequestTitle}}</a></div><img src="/images/icons/github.svg"/>
{{else}}
{{#if job.commit.compareUrl}}
<div class="text"><a class="compare" {{bind-attr href="job.commit.compareUrl"}}>Compare {{shortCompareShas job.commit.compareUrl}}</a></div><img src="/images/icons/github.svg"/>
{{/if}}
{{/if}}
</div>
</div>
</div>
{{view Travis.AnnotationsView annotationsBinding="view.annotations"}}
{{view Travis.LogView jobBinding="job"}}
</div>
{{else}}
<div id="job" class="loading">
<span>Loading</span>
</div>
{{/if}}