Revision 1523
Added by Jean-Philippe Lang about 17 years ago
trunk/app/views/common/_diff.rhtml | ||
---|---|---|
9 | 9 |
<% prev_line_left, prev_line_right = nil, nil -%> |
10 | 10 |
<% table_file.keys.sort.each do |key| -%> |
11 | 11 |
<% if prev_line_left && prev_line_right && (table_file[key].nb_line_left != prev_line_left+1) && (table_file[key].nb_line_right != prev_line_right+1) -%> |
12 |
<tr class="spacing"><td colspan="4"></td></tr> |
|
12 |
<tr class="spacing"> |
|
13 |
<th class="line-num">...</th><td></td><th class="line-num">...</th><td></td> |
|
13 | 14 |
<% end -%> |
14 | 15 |
<tr> |
15 | 16 |
<th class="line-num"><%= table_file[key].nb_line_left %></th> |
... | ... | |
35 | 36 |
<% prev_line_left, prev_line_right = nil, nil -%> |
36 | 37 |
<% table_file.keys.sort.each do |key, line| %> |
37 | 38 |
<% if prev_line_left && prev_line_right && (table_file[key].nb_line_left != prev_line_left+1) && (table_file[key].nb_line_right != prev_line_right+1) -%> |
38 |
<tr class="spacing"><td colspan="3"></td></tr> |
|
39 |
<tr class="spacing"> |
|
40 |
<th class="line-num">...</th><th class="line-num">...</th><td></td> |
|
41 |
</tr> |
|
39 | 42 |
<% end -%> |
40 | 43 |
<tr> |
41 | 44 |
<th class="line-num"><%= table_file[key].nb_line_left %></th> |
trunk/public/stylesheets/scm.css | ||
---|---|---|
1 | 1 |
|
2 | 2 |
table.filecontent { border: 1px solid #ccc; border-collapse: collapse; width:98%; } |
3 | 3 |
table.filecontent th { border: 1px solid #ccc; background-color: #eee; } |
4 |
table.filecontent th.filename { background-color: #ddc; text-align: left; } |
|
5 |
table.filecontent tr.spacing td { border: 1px solid #d7d7d7; height: 0.4em; } |
|
4 |
table.filecontent th.filename { background-color: #e4e4d4; text-align: left; padding: 0.2em;} |
|
5 |
table.filecontent tr.spacing th { text-align:center; } |
|
6 |
table.filecontent tr.spacing td { height: 0.4em; background: #EAF2F5;} |
|
6 | 7 |
table.filecontent th.line-num { |
7 | 8 |
border: 1px solid #d7d7d7; |
8 | 9 |
font-size: 0.8em; |
9 | 10 |
text-align: right; |
10 | 11 |
width: 2%; |
11 | 12 |
padding-right: 3px; |
13 |
color: #999; |
|
12 | 14 |
} |
13 | 15 |
table.filecontent td.line-code pre { |
14 | 16 |
white-space: pre-wrap; /* CSS2.1 compliant */ |
Also available in: Unified diff
Slight changes to diff view and style.