Commit 9511ec846d39ff57aca6ea2e82da47f04477078c
1 parent
cc1ba255
Exists in
master
and in
4 other branches
improved diff, restyled login page
Showing
5 changed files
with
13 additions
and
4 deletions
Show diff stats
app/assets/stylesheets/commits.css.scss
app/assets/stylesheets/login.scss
app/helpers/commits_helper.rb
... | ... | @@ -65,7 +65,7 @@ module CommitsHelper |
65 | 65 | line_old = line.match(/\-[0-9]*/)[0].to_i.abs rescue 0 |
66 | 66 | line_new = line.match(/\+[0-9]*/)[0].to_i.abs rescue 0 |
67 | 67 | |
68 | - yield(nil, type, nil, nil, nil) | |
68 | + yield(line, type, nil, nil, nil) | |
69 | 69 | next |
70 | 70 | else |
71 | 71 | type = diff_line_class(line) | ... | ... |
app/views/commits/_text_file.html.haml
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | - if type == "match" |
5 | 5 | %td.old_line= "..." |
6 | 6 | %td.new_line= "..." |
7 | - %td.line_content | |
7 | + %td.line_content.matched= line | |
8 | 8 | - else |
9 | 9 | %td.old_line= link_to raw(type == "new" ? " " : line_old), "##{line_code}", :id => line_code |
10 | 10 | %td.new_line= link_to raw(type == "old" ? " " : line_new) , "##{line_code}", :id => line_code | ... | ... |
app/views/commits/show.html.haml