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
2cd6cc7f
Commit
2cd6cc7f
authored
Mar 24, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve-diff-header' into 'master'
Fix file mode going to next line in diff header See merge request !432
parents
17192d1b
61700f61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
diff.scss
app/assets/stylesheets/pages/diff.scss
+5
-5
_file.html.haml
app/views/projects/diffs/_file.html.haml
+7
-6
No files found.
app/assets/stylesheets/pages/diff.scss
View file @
2cd6cc7f
...
...
@@ -15,6 +15,11 @@
word-break
:
break-all
;
margin-right
:
200px
;
display
:
block
;
.file-mode
{
margin-left
:
10px
;
color
:
#777
;
}
}
.diff-btn-group
{
...
...
@@ -34,11 +39,6 @@
font-family
:
$monospace_font
;
font-size
:
smaller
;
}
.file-mode
{
font-family
:
$monospace_font
;
margin-left
:
10px
;
}
}
.diff-content
{
overflow
:
auto
;
...
...
app/views/projects/diffs/_file.html.haml
View file @
2cd6cc7f
...
...
@@ -13,12 +13,13 @@
-
submodule_item
=
project
.
repository
.
blob_at
(
@commit
.
id
,
diff_file
.
file_path
)
=
submodule_link
(
submodule_item
,
@commit
.
id
)
-
else
-
if
diff_file
.
renamed_file
%span
=
"
#{
diff_file
.
old_path
}
renamed to
#{
diff_file
.
new_path
}
"
-
else
%span
=
diff_file
.
new_path
-
if
diff_file
.
mode_changed?
%span
.file-mode
=
"
#{
diff_file
.
diff
.
a_mode
}
→
#{
diff_file
.
diff
.
b_mode
}
"
%span
-
if
diff_file
.
renamed_file
=
"
#{
diff_file
.
old_path
}
renamed to
#{
diff_file
.
new_path
}
"
-
else
=
diff_file
.
new_path
-
if
diff_file
.
mode_changed?
%span
.file-mode
=
"
#{
diff_file
.
diff
.
a_mode
}
→
#{
diff_file
.
diff
.
b_mode
}
"
.diff-btn-group
-
if
blob
.
text?
...
...
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