Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
13fbf488
Commit
13fbf488
authored
Feb 24, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proper class names for diff files
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
40a8ae5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
app/assets/stylesheets/sections/commits.scss
app/assets/stylesheets/sections/commits.scss
+3
-3
app/views/projects/commits/_diffs.html.haml
app/views/projects/commits/_diffs.html.haml
+3
-3
No files found.
app/assets/stylesheets/sections/commits.scss
View file @
13fbf488
...
@@ -10,11 +10,11 @@
...
@@ -10,11 +10,11 @@
}
}
}
}
.file
{
.
diff-
file
{
border
:
1px
solid
#CCC
;
border
:
1px
solid
#CCC
;
margin-bottom
:
1em
;
margin-bottom
:
1em
;
.header
{
.
diff-
header
{
@extend
.clearfix
;
@extend
.clearfix
;
background
:
#DDD
;
background
:
#DDD
;
border-bottom
:
1px
solid
#CCC
;
border-bottom
:
1px
solid
#CCC
;
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
font-family
:
$monospace_font
;
font-family
:
$monospace_font
;
}
}
}
}
.content
{
.
diff-
content
{
overflow
:
auto
;
overflow
:
auto
;
overflow-y
:
hidden
;
overflow-y
:
hidden
;
background
:
#FFF
;
background
:
#FFF
;
...
...
app/views/projects/commits/_diffs.html.haml
View file @
13fbf488
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
-
file
=
project
.
repository
.
blob_at
(
@commit
.
id
,
diff
.
new_path
)
-
file
=
project
.
repository
.
blob_at
(
@commit
.
id
,
diff
.
new_path
)
-
file
=
project
.
repository
.
blob_at
(
@commit
.
parent_id
,
diff
.
old_path
)
unless
file
-
file
=
project
.
repository
.
blob_at
(
@commit
.
parent_id
,
diff
.
old_path
)
unless
file
-
next
unless
file
-
next
unless
file
.file
{
id:
"diff-#{i}"
}
.
diff-
file
{
id:
"diff-#{i}"
}
.header
.
diff-
header
-
if
diff
.
deleted_file
-
if
diff
.
deleted_file
%span
=
diff
.
old_path
%span
=
diff
.
old_path
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
%span
.commit-short-id
=
@commit
.
short_id
(
6
)
%span
.commit-short-id
=
@commit
.
short_id
(
6
)
.content
.
diff-
content
-# Skipp all non non-supported blobs
-# Skipp all non non-supported blobs
-
next
unless
file
.
respond_to?
(
'text?'
)
-
next
unless
file
.
respond_to?
(
'text?'
)
-
if
file
.
text?
-
if
file
.
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