Show the title of the PR, rather than message in the PR tab
This commit is contained in:
parent
1e6067f54c
commit
90a1d10d26
|
@ -10,6 +10,8 @@ require 'travis/model'
|
||||||
authorEmail: DS.attr('string')
|
authorEmail: DS.attr('string')
|
||||||
committerName: DS.attr('string')
|
committerName: DS.attr('string')
|
||||||
committerEmail: DS.attr('string')
|
committerEmail: DS.attr('string')
|
||||||
|
pullRequestName: DS.attr('string')
|
||||||
pullRequestNumber: DS.attr('number')
|
pullRequestNumber: DS.attr('number')
|
||||||
|
|
||||||
|
|
||||||
build: DS.belongsTo('Travis.Build', key: 'buildId')
|
build: DS.belongsTo('Travis.Build', key: 'buildId')
|
||||||
|
|
|
@ -3,18 +3,17 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{t builds.name}}</th>
|
<th>{{t builds.name}}</th>
|
||||||
|
{{#if view.isPullRequestsList}}
|
||||||
|
<th>{{t builds.pr}}</th>
|
||||||
|
{{else}}
|
||||||
<th>{{t builds.message}}</th>
|
<th>{{t builds.message}}</th>
|
||||||
|
{{/if}}
|
||||||
<th>
|
<th>
|
||||||
{{t builds.commit}}
|
{{t builds.commit}}
|
||||||
</th>
|
</th>
|
||||||
<th class="committer">
|
<th class="committer">
|
||||||
{{t builds.commiter}}
|
{{t builds.commiter}}
|
||||||
</th>
|
</th>
|
||||||
{{#if view.isPullRequestsList}}
|
|
||||||
<th>
|
|
||||||
{{t builds.pr}}
|
|
||||||
</th>
|
|
||||||
{{/if}}
|
|
||||||
<th>{{t builds.duration}}</th>
|
<th>{{t builds.duration}}</th>
|
||||||
<th>{{t builds.finished_at}}</th>
|
<th>{{t builds.finished_at}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -31,9 +30,17 @@
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
|
{{#if view.parentView.isPullRequestsList}}
|
||||||
|
<td class="message">
|
||||||
|
<a {{bindAttr href="view.urlGithubPullRequest"}}>
|
||||||
|
#{{commit.pullRequestNumber}} - {{commit.pullRequestName}}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
{{else}}
|
||||||
<td class="message">
|
<td class="message">
|
||||||
{{{ formatMessage commit.message short="true"}}}
|
{{{ formatMessage commit.message short="true"}}}
|
||||||
</td>
|
</td>
|
||||||
|
{{/if}}
|
||||||
<td class="commit">
|
<td class="commit">
|
||||||
<a {{bindAttr href="view.urlGithubCommit"}}>
|
<a {{bindAttr href="view.urlGithubCommit"}}>
|
||||||
{{formatCommit commit}}
|
{{formatCommit commit}}
|
||||||
|
@ -42,13 +49,6 @@
|
||||||
<td class="committer">
|
<td class="committer">
|
||||||
{{commit.committerName}}
|
{{commit.committerName}}
|
||||||
</td>
|
</td>
|
||||||
{{#if commit.pullRequestNumber}}
|
|
||||||
<td>
|
|
||||||
<a {{bindAttr href="view.urlGithubPullRequest"}}>
|
|
||||||
#{{commit.pullRequestNumber}}
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
{{/if}}
|
|
||||||
<td class="duration" {{bindAttr title="duration"}}>
|
<td class="duration" {{bindAttr title="duration"}}>
|
||||||
{{formatDuration duration}}
|
{{formatDuration duration}}
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user