Commit 7644edd8 authored by Jose's avatar Jose

Add partial for the build outputs

parent 43e08b1a
...@@ -32,10 +32,6 @@ export default class Job extends LogOutputBehaviours { ...@@ -32,10 +32,6 @@ export default class Job extends LogOutputBehaviours {
this.$buildTraceOutput = $('.js-build-output'); this.$buildTraceOutput = $('.js-build-output');
this.$topBar = $('.js-top-bar'); this.$topBar = $('.js-top-bar');
// Scroll controllers
this.$scrollTopBtn = $('.js-scroll-up');
this.$scrollBottomBtn = $('.js-scroll-down');
clearTimeout(this.timeout); clearTimeout(this.timeout);
this.initSidebar(); this.initSidebar();
......
...@@ -2,6 +2,9 @@ import $ from 'jquery'; ...@@ -2,6 +2,9 @@ import $ from 'jquery';
export const canScroll = () => $(document).height() > $(window).height(); export const canScroll = () => $(document).height() > $(window).height();
/**
* Checks if the entire page is scrolled down all the way to the bottom
*/
export const isScrolledToBottom = () => { export const isScrolledToBottom = () => {
const $document = $(document); const $document = $(document);
......
...@@ -86,9 +86,7 @@ ...@@ -86,9 +86,7 @@
%button.js-scroll-down.btn-scroll.btn-transparent.btn-blank{ type: 'button', disabled: true } %button.js-scroll-down.btn-scroll.btn-transparent.btn-blank{ type: 'button', disabled: true }
= custom_icon('scroll_down') = custom_icon('scroll_down')
%pre.build-trace#build-trace = render 'shared/builds/build_output'
%code.bash.js-build-output
.build-loader-animation.js-build-refresh
- else - else
= render "empty_states" = render "empty_states"
......
%pre.build-trace#build-trace
%code.bash.js-build-output
.build-loader-animation.js-build-refresh
...@@ -4,7 +4,7 @@ module QA::Page ...@@ -4,7 +4,7 @@ module QA::Page
COMPLETED_STATUSES = %w[passed failed canceled blocked skipped manual].freeze # excludes created, pending, running COMPLETED_STATUSES = %w[passed failed canceled blocked skipped manual].freeze # excludes created, pending, running
PASSED_STATUS = 'passed'.freeze PASSED_STATUS = 'passed'.freeze
view 'app/views/projects/jobs/show.html.haml' do view 'app/views/shared/builds/_build_output.html.haml' do
element :build_output, '.js-build-output' element :build_output, '.js-build-output'
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment