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
e31ba687
Commit
e31ba687
authored
Sep 10, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wrap_by_default_for_parallel' into 'master'
Wrap by default for parallel Fixes #1566 See merge request !1080
parents
e1bd883c
11eec88d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
_file.html.haml
app/views/projects/diffs/_file.html.haml
+4
-3
_parallel_view.html.haml
app/views/projects/diffs/_parallel_view.html.haml
+1
-1
No files found.
app/views/projects/diffs/_file.html.haml
View file @
e31ba687
...
...
@@ -15,9 +15,10 @@
%span
.file-mode
=
"
#{
diff
.
a_mode
}
→
#{
diff
.
b_mode
}
"
.diff-btn-group
%label
=
check_box_tag
nil
,
1
,
false
,
class:
"js-toggle-diff-line-wrap"
Wrap text
-
unless
params
[
:view
]
==
'parallel'
%label
=
check_box_tag
nil
,
1
,
false
,
class:
"js-toggle-diff-line-wrap"
Wrap text
=
link_to
"#"
,
class:
"js-toggle-diff-comments btn btn-small"
do
%i
.icon-chevron-down
...
...
app/views/projects/diffs/_parallel_view.html.haml
View file @
e31ba687
/ Side-by-side diff view
%div
.text-file
%div
.text-file
.diff-wrap-lines
%table
-
parallel_diff
(
diff_file
,
index
).
each
do
|
line
|
-
type_left
=
line
[
0
]
...
...
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