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:
parent
8ffd466e9f
commit
fed3adaa88
|
@ -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}}
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue
Block a user