nci/static/js/app/components/buildLog/index.jade

31 lines
620 B
Plaintext
Raw Normal View History

2015-10-03 14:14:41 +00:00
- var buildId = this.props.params.buildId;
- var total = this.state.data.total;
- var output = this.state.data.output;
div
| build:
span= buildId
div
| lines in total:
span= total
div
| from:
input(type="text", value=this.state.from, onChange=this.onFromChange)
2015-10-03 14:14:41 +00:00
br
.terminal(style="width: 900px; float: left;")
2015-10-03 14:14:41 +00:00
.terminal_code(ref="code")!= output
div.terminal-virtual-scroll(
style="width: 15px; height: 320px; overflow: scroll; float: clear;",
onScroll=this.onVirtualScroll
)
- var height = total * 15;
div(style="height: #{height}px;")
div
| virtual scroll top:
span= this.state.virtualScrollTop