Add download log link at the bottom of the log
This commit is contained in:
parent
e40fa3b26d
commit
98e6503e73
|
@ -1,4 +1,6 @@
|
||||||
@Travis.Urls =
|
@Travis.Urls =
|
||||||
|
plainTextLog: (id) ->
|
||||||
|
"#{Travis.config.api_endpoint}/artifacts/#{id}.txt?deansi=true"
|
||||||
|
|
||||||
githubPullRequest: (slug, pullRequestNumber) ->
|
githubPullRequest: (slug, pullRequestNumber) ->
|
||||||
"http://github.com/#{slug}/pull/#{pullRequestNumber}"
|
"http://github.com/#{slug}/pull/#{pullRequestNumber}"
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<a href='#' class="to-top" {{action toTop target="view"}}>To top</a>
|
<a href='#' class="to-top" {{action toTop target="view"}}>To top</a>
|
||||||
|
<a class="download-log" {{bindAttr href="view.plainTextLogUrl"}}>Download log</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div id="log" class="loading">
|
<div id="log" class="loading">
|
||||||
<span>Loading</span>
|
<span>Loading</span>
|
||||||
|
|
|
@ -42,6 +42,11 @@
|
||||||
templateName: 'jobs/log'
|
templateName: 'jobs/log'
|
||||||
logBinding: 'job.log'
|
logBinding: 'job.log'
|
||||||
|
|
||||||
|
plainTextLogUrl: (->
|
||||||
|
if id = @get('job.log.id')
|
||||||
|
Travis.Urls.plainTextLog(id)
|
||||||
|
).property('job.log')
|
||||||
|
|
||||||
didInsertElement: ->
|
didInsertElement: ->
|
||||||
@_super.apply this, arguments
|
@_super.apply this, arguments
|
||||||
@tryScrollingToHashLineNumber()
|
@tryScrollingToHashLineNumber()
|
||||||
|
|
|
@ -111,12 +111,12 @@ pre#log
|
||||||
float: left
|
float: left
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
color: #999
|
color: #999
|
||||||
.to-top
|
.to-top, .download-log
|
||||||
float: right
|
float: right
|
||||||
margin-right: 2px
|
margin-right: 2px
|
||||||
padding-right: 16px
|
|
||||||
color: #999
|
color: #999
|
||||||
|
.to-top
|
||||||
background: inline-image('ui/to-top.png') no-repeat right 6px
|
background: inline-image('ui/to-top.png') no-repeat right 6px
|
||||||
|
padding-right: 16px
|
||||||
|
.download-log
|
||||||
|
margin-right: 10px
|
||||||
|
|
Loading…
Reference in New Issue
Block a user