Commit 13fbf488 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Proper class names for diff files

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 40a8ae5e
...@@ -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;
......
...@@ -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?
......
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