Permalink
Browse files

fix the worker's job url

  • Loading branch information...
1 parent 059a025 commit c59ac1fed9361ad6c5d8b6cd0f200ec1059a3855 Sven Fuchs committed Dec 13, 2011
@@ -35,8 +35,8 @@ Travis.Worker = Travis.Record.extend({
return name + ': ' + state;
}.property('state'),
- buildUrl: function() {
- return '#!/' + this.getPath('payload.repository.slug') + '/builds/' + this.getPath('payload.build.id');
+ urlJob: function() {
+ return '#!/' + this.getPath('payload.repository.slug') + '/job/' + this.getPath('payload.build.id');
}.property('state', 'payload')
});
@@ -4,7 +4,7 @@
{{#collection tagName="ul" itemClass="worker" itemClassBinding="content.state" contentBinding="content.workers"}}
<div class="icon"></div>
{{#if content.isTesting}}
- <a {{bindAttr href="content.buildUrl"}} {{bindAttr title="content.last_seen_at"}}>{{content.display}}</a>
+ <a {{bindAttr href="content.urlJob"}} {{bindAttr title="content.last_seen_at"}}>{{content.display}}</a>
{{else}}
<span {{bindAttr title="content.last_seen_at"}}>{{content.display}}</span>
{{/if}}

0 comments on commit c59ac1f

Please sign in to comment.