padding:0px;
border:none;
&.new {
- background: #DFD;
+ background: #CFD;
}
&.old {
background: #FDD;
}
+ &.matched {
+ color:#ccc;
+ background:#fafafa;
+ }
}
}
/* Login Page */
-body.login-page{ padding-top: 10%}
+body.login-page{
+ padding-top: 10%;
+ background:$style_color;
+}
.login-box{
width: 304px;
line_old = line.match(/\-[0-9]*/)[0].to_i.abs rescue 0
line_new = line.match(/\+[0-9]*/)[0].to_i.abs rescue 0
- yield(nil, type, nil, nil, nil)
+ yield(line, type, nil, nil, nil)
next
else
type = diff_line_class(line)
- if type == "match"
%td.old_line= "..."
%td.new_line= "..."
- %td.line_content
+ %td.line_content.matched= line
- else
%td.old_line= link_to raw(type == "new" ? " " : line_old), "##{line_code}", :id => line_code
%td.new_line= link_to raw(type == "old" ? " " : line_new) , "##{line_code}", :id => line_code
.clear
%br
+%p.cgray
+ Showing #{pluralize(@commit.diffs.count, "changed file")}
= render "commits/diffs", :diffs => @commit.diffs
= render "notes/notes"
= render "notes/per_line_form"