set the scope correctly when checking if a build/job is a PR in the template

This commit is contained in:
Josh Kalderimis 2013-06-08 19:17:40 +02:00
parent 6708412a4d
commit a42e0b092f
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
<div class="right">
<dt>{{t builds.commit}}</dt>
<dd class="commit"><a {{bindAttr href="controller.urlGithubCommit"}}>{{formatCommit this}}</a></dd>
{{#if build.pullRequest}}
{{#if ../build.pullRequest}}
<dt>{{t builds.pull_request}}</dt>
<dd class="pull_request"><a {{bindAttr href="compareUrl"}}>#{{build.pullRequestNumber}} {{build.pullRequestTitle}}</a></dd>
{{else}}

View File

@ -23,7 +23,7 @@
<div class="right">
<dt>{{t jobs.commit}}</dt>
<dd class="commit"><a {{bindAttr href="controller.urlGithubCommit"}}>{{formatCommit this}}</a></dd>
{{#if job.build.pullRequest}}
{{#if ../job.build.pullRequest}}
<dt>{{t builds.pull_request}}</dt>
<dd class="pull_request"><a {{bindAttr href="compareUrl"}}>#{{job.build.pullRequestNumber}} {{job.build.pullRequestTitle}}</a></dd>
{{else}}