Reverted back to old Pull Request listing layout
This commit is contained in:
parent
10209bbc26
commit
275b160d7d
|
@ -13,5 +13,4 @@ require 'travis/model'
|
|||
pullRequestTitle: DS.attr('string')
|
||||
pullRequestNumber: DS.attr('number')
|
||||
|
||||
|
||||
build: DS.belongsTo('Travis.Build', key: 'buildId')
|
||||
|
|
|
@ -3,17 +3,18 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>{{t builds.name}}</th>
|
||||
{{#if view.isPullRequestsList}}
|
||||
<th>{{t builds.pr}}</th>
|
||||
{{else}}
|
||||
<th>{{t builds.message}}</th>
|
||||
{{/if}}
|
||||
<th>{{t builds.message}}</th>
|
||||
<th>
|
||||
{{t builds.commit}}
|
||||
</th>
|
||||
<th class="committer">
|
||||
{{t builds.commiter}}
|
||||
</th>
|
||||
{{#if view.isPullRequestsList}}
|
||||
<th>
|
||||
{{t builds.pr}}
|
||||
</th>
|
||||
{{/if}}
|
||||
<th>{{t builds.duration}}</th>
|
||||
<th>{{t builds.finished_at}}</th>
|
||||
</tr>
|
||||
|
@ -30,17 +31,9 @@
|
|||
</a>
|
||||
{{/if}}
|
||||
</td>
|
||||
{{#if view.parentView.isPullRequestsList}}
|
||||
<td class="message">
|
||||
<a {{bindAttr href="view.urlGithubPullRequest"}}>
|
||||
#{{commit.pullRequestNumber}} - {{commit.pullRequestName}}
|
||||
</a>
|
||||
</td>
|
||||
{{else}}
|
||||
<td class="message">
|
||||
{{{ formatMessage commit.message short="true"}}}
|
||||
</td>
|
||||
{{/if}}
|
||||
<td class="message">
|
||||
{{{formatMessage commit.message short="true"}}}
|
||||
</td>
|
||||
<td class="commit">
|
||||
<a {{bindAttr href="view.urlGithubCommit"}}>
|
||||
{{formatCommit commit}}
|
||||
|
@ -49,6 +42,13 @@
|
|||
<td class="committer">
|
||||
{{commit.committerName}}
|
||||
</td>
|
||||
{{#if commit.pullRequestNumber}}
|
||||
<td>
|
||||
<a {{bindAttr href="view.urlGithubPullRequest"}}>
|
||||
#{{commit.pullRequestNumber}}
|
||||
</a>
|
||||
</td>
|
||||
{{/if}}
|
||||
<td class="duration" {{bindAttr title="duration"}}>
|
||||
{{formatDuration duration}}
|
||||
</td>
|
||||
|
@ -64,4 +64,4 @@
|
|||
</p>
|
||||
{{else}}
|
||||
<div class="loading"><span>Loading</span></div>
|
||||
{{/if}}
|
||||
{{/if}}
|
Loading…
Reference in New Issue
Block a user