Show the title of the PR, rather than message in the PR tab

This commit is contained in:
Jason Smale 2013-03-04 11:00:44 +11:00
parent 1e6067f54c
commit 90a1d10d26
2 changed files with 18 additions and 16 deletions

View File

@ -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')

View File

@ -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>