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
13fbf488
Unverified
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
commits.scss
app/assets/stylesheets/sections/commits.scss
+3
-3
_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