BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0c5b92cb
Commit
0c5b92cb
authored
Mar 11, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'build-scroll-controls-position' into 'master'
Affix the build scroll controls Closes #4709 See merge request !3109
parents
f7da99ae
732b6b55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
5 deletions
+33
-5
build.coffee
app/assets/javascripts/ci/build.coffee
+13
-0
builds.scss
app/assets/stylesheets/pages/builds.scss
+19
-4
show.html.haml
app/views/projects/builds/show.html.haml
+1
-1
No files found.
app/assets/javascripts/ci/build.coffee
View file @
0c5b92cb
...
...
@@ -4,6 +4,8 @@ class CiBuild
constructor
:
(
build_url
,
build_status
)
->
clearInterval
(
CiBuild
.
interval
)
@
initScrollButtonAffix
()
if
build_status
==
"running"
||
build_status
==
"pending"
#
# Bind autoscroll button to follow build output
...
...
@@ -38,4 +40,15 @@ class CiBuild
checkAutoscroll
:
->
$
(
"html,body"
).
scrollTop
$
(
"#build-trace"
).
height
()
if
"enabled"
is
$
(
"#autoscroll-button"
).
data
(
"state"
)
initScrollButtonAffix
:
->
$buildScroll
=
$
(
'#js-build-scroll'
)
$body
=
$
(
'body'
)
$buildTrace
=
$
(
'#build-trace'
)
$buildScroll
.
affix
(
offset
:
bottom
:
->
$body
.
outerHeight
()
-
(
$buildTrace
.
outerHeight
()
+
$buildTrace
.
offset
().
top
)
)
@
CiBuild
=
CiBuild
app/assets/stylesheets/pages/builds.scss
View file @
0c5b92cb
...
...
@@ -27,10 +27,25 @@
}
.scroll-controls
{
position
:
fixed
;
bottom
:
10px
;
left
:
250px
;
z-index
:
100
;
&
.affix-top
{
position
:
absolute
;
top
:
10px
;
right
:
25px
;
}
&
.affix-bottom
{
position
:
absolute
;
right
:
25px
;
}
&
.affix
{
right
:
30px
;
bottom
:
15px
;
@media
(
min-width
:
$screen-md-min
)
{
right
:
26%
;
}
}
a
{
display
:
block
;
...
...
app/views/projects/builds/show.html.haml
View file @
0c5b92cb
...
...
@@ -70,7 +70,7 @@
.autoscroll-container
%button
.btn.btn-success.btn-sm
#autoscroll-button
{
:type
=>
"button"
,
:data
=>
{
:state
=>
'disabled'
}}
enable autoscroll
.clearfix
.scroll-controls
#js-build-scroll
.scroll-controls
=
link_to
'#up-build-trace'
,
class:
'btn'
do
%i
.fa.fa-angle-up
=
link_to
'#down-build-trace'
,
class:
'btn'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment