Commit af81fe33 authored by Christophe Dumez's avatar Christophe Dumez

- html diff: now different files are separated by an <hr> tag (asked by sebastien)

- html diff: Fixed a typo that caused "added file" not to be displayed

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8402 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 24053c29
......@@ -86,8 +86,9 @@ if modified != \'none\':\n
edit_path = context.getPortalObject()["portal_subversion"].editPath(context, f)\n
if(edit_path != \'#\'):\n
print "<a href=\'"+edit_path+"\'><img src=\'imgs/edit.png\' alt=\'Edit\' style=\'border: 0\' /></a>"\n
print \'</span><br/><hr/>\'\n
print \'</span><br/>\'\n
print context.getPortalObject()["portal_subversion"].diffHTML(f, context)\n
print \'<hr/><br/>\'\n
\n
if added != \'none\':\n
for f in tab_Added:\n
......@@ -96,8 +97,8 @@ if added != \'none\':\n
edit_path = context.getPortalObject()["portal_subversion"].editPath(context, f)\n
if(edit_path != \'#\'):\n
print "<a href=\'"+edit_path+"\'><img src=\'imgs/edit.png\' alt=\'Edit\' style=\'border: 0\' /></a>"\n
print \'</span><br/><hr/>\'\n
print "<span style=\'color: green;\'><File Added</span><br/><br/>"\n
print \'</span><br/>\'\n
print "<span style=\'color: green;\'>File Added</span><br/><br/><hr/><br/>"\n
\n
if removed != \'none\':\n
for f in tab_Removed:\n
......@@ -106,8 +107,8 @@ if removed != \'none\':\n
edit_path = context.getPortalObject()["portal_subversion"].editPath(context, f)\n
if(edit_path != \'#\'):\n
print "<a href=\'"+edit_path+"\'><img src=\'imgs/edit.png\' alt=\'Edit\' style=\'border: 0\' /></a>"\n
print \'</span><br/><hr/>\'\n
print "<span style=\'color: red;\'>File Removed</span><br/><br/>"\n
print \'</span><br/>\'\n
print "<span style=\'color: red;\'>File Removed</span><br/><br/><hr/><br/>"\n
\n
print \'</div>\'\n
return printed\n
......
48
\ No newline at end of file
50
\ No newline at end of file
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