BigW Consortium Gitlab

Proper class names for diff files

parent 40a8ae5e
......@@ -10,11 +10,11 @@
}
}
.file {
.diff-file {
border: 1px solid #CCC;
margin-bottom: 1em;
.header {
.diff-header {
@extend .clearfix;
background: #DDD;
border-bottom: 1px solid #CCC;
......@@ -46,7 +46,7 @@
font-family: $monospace_font;
}
}
.content {
.diff-content {
overflow: auto;
overflow-y: hidden;
background: #FFF;
......
......@@ -44,8 +44,8 @@
- file = project.repository.blob_at(@commit.id, diff.new_path)
- file = project.repository.blob_at(@commit.parent_id, diff.old_path) unless file
- next unless file
.file{id: "diff-#{i}"}
.header
.diff-file{id: "diff-#{i}"}
.diff-header
- if diff.deleted_file
%span= diff.old_path
......@@ -70,7 +70,7 @@
%span.commit-short-id= @commit.short_id(6)
.content
.diff-content
-# Skipp all non non-supported blobs
- next unless file.respond_to?('text?')
- if file.text?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment