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')
|
||||
committerName: DS.attr('string')
|
||||
committerEmail: DS.attr('string')
|
||||
pullRequestName: DS.attr('string')
|
||||
pullRequestNumber: DS.attr('number')
|
||||
|
||||
|
||||
build: DS.belongsTo('Travis.Build', key: 'buildId')
|
||||
|
|
|
@ -3,18 +3,17 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>{{t builds.name}}</th>
|
||||
<th>{{t builds.message}}</th>
|
||||
{{#if view.isPullRequestsList}}
|
||||
<th>{{t builds.pr}}</th>
|
||||
{{else}}
|
||||
<th>{{t builds.message}}</th>
|
||||
{{/if}}
|
||||
<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>
|
||||
|
@ -31,9 +30,17 @@
|
|||
</a>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td class="message">
|
||||
{{{formatMessage commit.message short="true"}}}
|
||||
</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="commit">
|
||||
<a {{bindAttr href="view.urlGithubCommit"}}>
|
||||
{{formatCommit commit}}
|
||||
|
@ -42,13 +49,6 @@
|
|||
<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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user