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
b9168b07
Commit
b9168b07
authored
Mar 07, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Affix the build scroll controls
Closes #4709
parent
be1ae2d6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
5 deletions
+36
-5
ci_build.js.coffee
app/assets/javascripts/ci_build.js.coffee
+14
-0
dispatcher.js.coffee
app/assets/javascripts/dispatcher.js.coffee
+2
-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.js.coffee
0 → 100644
View file @
b9168b07
class
@
CiBuild
constructor
:
->
@
initScrollButtonAffix
()
initScrollButtonAffix
:
->
buildScroll
=
$
(
'#js-build-scroll'
)
body
=
$
(
'body'
)
buildTrace
=
$
(
'#build-trace'
)
buildScroll
.
affix
(
offset
:
bottom
:
->
body
.
outerHeight
()
-
(
buildTrace
.
outerHeight
()
+
buildTrace
.
offset
().
top
)
)
app/assets/javascripts/dispatcher.js.coffee
View file @
b9168b07
...
...
@@ -103,6 +103,8 @@ class Dispatcher
new
ProjectFork
()
when
'projects:artifacts:browse'
new
BuildArtifacts
()
when
'projects:builds:show'
new
CiBuild
()
switch
path
.
first
()
when
'admin'
...
...
app/assets/stylesheets/pages/builds.scss
View file @
b9168b07
...
...
@@ -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 @
b9168b07
...
...
@@ -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