Commit 8769231a authored by Christophe Dumez's avatar Christophe Dumez

- fixed diff color


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7533 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 886e1429
...@@ -240,16 +240,16 @@ class DiffFile: ...@@ -240,16 +240,16 @@ class DiffFile:
<td style="background-color: grey"><b><center>%s</center></b></td> <td style="background-color: grey"><b><center>%s</center></b></td>
</tr>''' % (self.old_revision, self.new_revision)) </tr>''' % (self.old_revision, self.new_revision))
header_color = 'grey' header_color = 'grey'
child_html_text = '''<tr height="18px"><td style="background-color: %s"> child_html_text = '''<tr height="18px"><td style="background-color: %(headcolor)s">
&nbsp;</td><td style="background-color: black;" width="2"></td> &nbsp;</td><td style="background-color: black;" width="2"></td>
<td style="background-color: %s">&nbsp;</td></tr><tr height="18px"> <td style="background-color: %(headcolor)s">&nbsp;</td></tr><tr height="18px">
<td style="background-color: rgb(68, 132, 255);"><b>Line %%s</b></td> <td style="background-color: rgb(68, 132, 255);"><b>Line %(oldline)s</b></td>
<td style="background-color: black;" width="2"></td> <td style="background-color: black;" width="2"></td>
<td style="background-color: rgb(68, 132, 255);"><b>Line %%s</b></td> <td style="background-color: rgb(68, 132, 255);"><b>Line %(newline)s</b></td>
</tr>''' % (header_color, header_color) </tr>'''
for child in self.children: for child in self.children:
# Adding line number of the modification # Adding line number of the modification
html_list.append( child_html_text % (child.old_line, child.new_line) ) html_list.append( child_html_text % {'headcolor':header_color, 'oldline':child.old_line, 'newline':child.new_line} )
header_color = 'white' header_color = 'white'
# Adding diff of the modification # Adding diff of the modification
old_code_list = child.getOldCodeList() old_code_list = child.getOldCodeList()
......
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