Fix download log link after log changes

This commit is contained in:
Piotr Sarnacki 2013-01-30 02:15:11 +01:00
parent 9df79d6944
commit ead17606b5
2 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
@Travis.Urls =
plainTextLog: (id) ->
"#{Travis.config.api_endpoint}/artifacts/#{id}.txt?deansi=true"
"#{Travis.config.api_endpoint}/jobs/#{id}/log.txt?deansi=true"
githubPullRequest: (slug, pullRequestNumber) ->
"http://github.com/#{slug}/pull/#{pullRequestNumber}"

View File

@ -146,18 +146,18 @@
).property('isJobTab', 'job.isFinished', 'hasPermissions')
showDownloadLog: (->
@get('logId')
).property('logId')
@get('jobIdForLog')
).property('jobIdForLog')
logId: (->
@get('job.log.id') ||
(@get('build.jobs.length') == 1 && @get('build.jobs.firstObject.log.id'))
).property('job.log.id', 'build.jobs.firstObject.log.id', 'build.jobs.length')
jobIdForLog: (->
@get('job.id') ||
(@get('build.jobs.length') == 1 && @get('build.jobs.firstObject.id'))
).property('job.id', 'build.jobs.firstObject.id', 'build.jobs.length')
plainTextLogUrl: (->
if id = @get('logId')
if id = @get('jobIdForLog')
Travis.Urls.plainTextLog(id)
).property('logId')
).property('jobIdForLog')
canCancelBuild: (->
# @get('isBuildTab') && @get('build.canCancel') && @get('hasPermission')