From ff66e9b102d629ec087b542b8fb94949d9435178 Mon Sep 17 00:00:00 2001 From: Christophe Dumez <christophe@nexedi.com> Date: Thu, 22 Jun 2006 14:49:50 +0000 Subject: [PATCH] Diff is now xhtml compliant git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8142 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_svn/BusinessTemplate_doSvnDiff.xml | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml index 67bb85c164..815d091031 100644 --- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml +++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml @@ -74,7 +74,7 @@ modified=context.REQUEST["modified"]\n added=context.REQUEST["added"]\n removed=context.REQUEST["removed"]\n \n -print \'<br/><font color="black">\'\n +print \'<div style="color: black">\'\n tab_Modified=modified.split(\',\')\n tab_Added=added.split(\',\')\n tab_Removed=removed.split(\',\')\n @@ -82,34 +82,34 @@ tab_Removed=removed.split(\',\')\n if modified != \'none\':\n for f in tab_Modified:\n f = context.getPortalObject()["portal_subversion"].relativeToAbsolute(f, context) \n - print "<b><font color=\'black\'>Index: <a href=\'BusinessTemplate_viewSvnShowFile?file="+f+"\'>"+f+"</a>"\n + print "<span style=\'font-weight: bold; color: black;\'>Index: <a href=\'BusinessTemplate_viewSvnShowFile?file="+f+"\'>"+f+"</a>"\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\' border=\'0\'></a>"\n - print \'</font></b><br/><hr/>\'\n + print "<a href=\'"+edit_path+"\'><img src=\'imgs/edit.png\' alt=\'Edit\' style=\'border: 0\' /></a>"\n + print \'</span><br/><hr/>\'\n print context.getPortalObject()["portal_subversion"].diffHTML(f, context)\n \n if added != \'none\':\n for f in tab_Added:\n f = context.getPortalObject()["portal_subversion"].relativeToAbsolute(f, context) \n - print "<b><font color=\'black\'>Index: <a href=\'BusinessTemplate_viewSvnShowFile?file="+f+"\'>"+f+"</a>"\n + print "<span style=\'font-weight: bold; color: black;\'>Index: <a href=\'BusinessTemplate_viewSvnShowFile?file="+f+"\'>"+f+"</a>"\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\' border=\'0\'></a>"\n - print \'</font></b><br/><hr/>\'\n - print \'<font color="green">File Added</font><br/><br/>\'\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 \n if removed != \'none\':\n for f in tab_Removed:\n f = context.getPortalObject()["portal_subversion"].relativeToAbsolute(f, context) \n - print "<b><font color=\'black\'>Index: <a href=\'BusinessTemplate_viewSvnShowFile?file="+f+"\'>"+f+"</a>"\n + print "<span style=\'font-weight: bold; color: black;\'>Index: <a href=\'BusinessTemplate_viewSvnShowFile?file="+f+"\'>"+f+"</a>"\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\' border=\'0\'></a>"\n - print \'</font></b><br/><hr/>\'\n - print "<font color=\'red\'>File Removed</font><br/><br/>"\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 \n -print \'</font>\'\n +print \'</div>\'\n return printed\n -- GitLab