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
f2ea9d9f
Commit
f2ea9d9f
authored
Mar 24, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve sticky headers in diffs
* disable sticky headers in discussion * enable sticky header on mr page with you click changes tab
parent
b9372c99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
diff.js.coffee
app/assets/javascripts/diff.js.coffee
+0
-2
_diffs.html.haml
app/views/projects/diffs/_diffs.html.haml
+7
-5
No files found.
app/assets/javascripts/diff.js.coffee
View file @
f2ea9d9f
...
...
@@ -37,8 +37,6 @@ class @Diff
)
)
$
(
'.diff-header'
).
stick_in_parent
(
recalc_every
:
1
,
offset_top
:
$
(
'.navbar'
).
height
())
lineNumbers
:
(
line
)
->
return
([
0
,
0
])
unless
line
.
children
().
length
lines
=
line
.
children
().
slice
(
0
,
2
)
...
...
app/views/projects/diffs/_diffs.html.haml
View file @
f2ea9d9f
.row.prepend-top-20.append-bottom-10
.col-md-8
=
render
'projects/diffs/stats'
,
diffs:
diffs
.col-md-4
.btn-group.pull-right
.prepend-top-20.append-bottom-20
.pull-right
.btn-group
=
inline_diff_btn
=
parallel_diff_btn
=
render
'projects/diffs/stats'
,
diffs:
diffs
-
if
show_diff_size_warning?
(
diffs
)
=
render
'projects/diffs/warning'
,
diffs:
diffs
...
...
@@ -19,3 +18,6 @@
Failed to collect changes
%p
Maybe diff is really big and operation failed with timeout. Try to get diff locally
:coffeescript
$('.files .diff-header').stick_in_parent(recalc_every: 1, offset_top: $('.navbar').height())
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