##// END OF EJS Templates
Slight changes to diff view and style....
Jean-Philippe Lang -
r1509:53b570398132
parent child
Show More
@@ -9,7 +9,8
9 <% prev_line_left, prev_line_right = nil, nil -%>
9 <% prev_line_left, prev_line_right = nil, nil -%>
10 <% table_file.keys.sort.each do |key| -%>
10 <% table_file.keys.sort.each do |key| -%>
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) -%>
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 <% end -%>
14 <% end -%>
14 <tr>
15 <tr>
15 <th class="line-num"><%= table_file[key].nb_line_left %></th>
16 <th class="line-num"><%= table_file[key].nb_line_left %></th>
@@ -35,7 +36,9
35 <% prev_line_left, prev_line_right = nil, nil -%>
36 <% prev_line_left, prev_line_right = nil, nil -%>
36 <% table_file.keys.sort.each do |key, line| %>
37 <% table_file.keys.sort.each do |key, line| %>
37 <% 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 <% 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 <% end -%>
42 <% end -%>
40 <tr>
43 <tr>
41 <th class="line-num"><%= table_file[key].nb_line_left %></th>
44 <th class="line-num"><%= table_file[key].nb_line_left %></th>
@@ -1,14 +1,16
1
1
2 table.filecontent { border: 1px solid #ccc; border-collapse: collapse; width:98%; }
2 table.filecontent { border: 1px solid #ccc; border-collapse: collapse; width:98%; }
3 table.filecontent th { border: 1px solid #ccc; background-color: #eee; }
3 table.filecontent th { border: 1px solid #ccc; background-color: #eee; }
4 table.filecontent th.filename { background-color: #ddc; text-align: left; }
4 table.filecontent th.filename { background-color: #e4e4d4; text-align: left; padding: 0.2em;}
5 table.filecontent tr.spacing td { border: 1px solid #d7d7d7; height: 0.4em; }
5 table.filecontent tr.spacing th { text-align:center; }
6 table.filecontent tr.spacing td { height: 0.4em; background: #EAF2F5;}
6 table.filecontent th.line-num {
7 table.filecontent th.line-num {
7 border: 1px solid #d7d7d7;
8 border: 1px solid #d7d7d7;
8 font-size: 0.8em;
9 font-size: 0.8em;
9 text-align: right;
10 text-align: right;
10 width: 2%;
11 width: 2%;
11 padding-right: 3px;
12 padding-right: 3px;
13 color: #999;
12 }
14 }
13 table.filecontent td.line-code pre {
15 table.filecontent td.line-code pre {
14 white-space: pre-wrap; /* CSS2.1 compliant */
16 white-space: pre-wrap; /* CSS2.1 compliant */
General Comments 0
You need to be logged in to leave comments. Login now