Fix job links on queues list

For some weird reason action was using the view as target by default,
set it explicitly to router.
This commit is contained in:
Piotr Sarnacki 2012-09-28 17:52:16 +02:00
parent 8ffd466e9f
commit fed3adaa88
3 changed files with 8 additions and 9 deletions

View File

@ -5,14 +5,12 @@
<ul {{bindAttr id="queue.id"}}>
{{#each job in queue}}
{{#view Travis.QueueItemView jobBinding="job"}}
<li>
<a {{action showJob job.repository job href=true}}>
<span class="slug">
{{job.repository.slug}}
</span>
#{{job.number}}
</a>
</li>
<a {{action showJob job.repository job target="Travis.app.router" href=true}}>
<span class="slug">
{{job.repository.slug}}
</span>
#{{job.number}}
</a>
{{/view}}
{{else}}
{{t no_job}}

View File

@ -77,6 +77,7 @@
QueueItemView: Travis.View.extend
tagName: 'li'
urlJob: (->
Travis.Urls.job(@get('job.repository.slug'), @get('job.id'))
).property('job.repository.slug', 'job.id')

File diff suppressed because one or more lines are too long