59 lines
2.0 KiB
Handlebars
59 lines
2.0 KiB
Handlebars
{{#if loading}}
|
|
<span>Loading</span>
|
|
{{else}}
|
|
<dl id="summary">
|
|
<div class="left">
|
|
<dt>Build</dt>
|
|
<dd class="number">
|
|
<span class="status"></span>
|
|
{{#if build.id}}
|
|
{{#if build.repo.slug}}
|
|
{{#link-to "build" repo build}}{{build.number}}{{/link-to}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</dd>
|
|
<dt>State</dt>
|
|
<dd class="state">{{capitalize build.state}}</dd>
|
|
<dt class="finished_at_label">Finished</dt>
|
|
<dd class="finished_at timeago" {{bind-attr title="build.formattedFinishedAt"}}>{{formatTime build.finishedAt}}</dd>
|
|
<dt>Duration</dt>
|
|
<dd class="duration" {{bind-attr title="startedAt"}}>{{formatDuration build.duration}}</dd>
|
|
</div>
|
|
|
|
{{#with build}}
|
|
<div class="right">
|
|
<dt>Commit</dt>
|
|
<dd class="commit"><a {{bind-attr href="controller.urlGithubCommit"}}>{{formatCommit commit}}</a></dd>
|
|
{{#if pullRequest}}
|
|
<dt></dt>
|
|
<dd class="pull_request"><a {{bind-attr href="commit.compareUrl"}}>#{{pullRequestNumber}} {{pullRequestTitle}}</a></dd>
|
|
{{else}}
|
|
{{#if commit.compareUrl}}
|
|
<dt>Compare</dt>
|
|
<dd class="compare"><a {{bind-attr href="commit.compareUrl"}}>{{pathFrom commit.compareUrl}}</a></dd>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{#if commit.authorName}}
|
|
<dt>Author</dt>
|
|
<dd class="author">{{commit.authorName}}</dd>
|
|
{{/if}}
|
|
{{#if commit.committerName}}
|
|
<dt>Committer</dt>
|
|
<dd class="committer">{{commit.committerName}}</dd>
|
|
{{/if}}
|
|
</div>
|
|
{{/with}}
|
|
|
|
|
|
<dt>Message</dt>
|
|
<dd class="message">{{formatMessage build.commit.message repoBinding=build.repo}}</dd>
|
|
</dl>
|
|
|
|
{{#if build.isMatrix}}
|
|
{{view Travis.JobsView jobsBinding="build.requiredJobs" required="true"}}
|
|
{{view Travis.JobsView jobsBinding="build.allowedFailureJobs"}}
|
|
{{else}}
|
|
{{view Travis.LogView jobBinding="build.jobs.firstObject"}}
|
|
{{/if}}
|
|
{{/if}}
|