[Erp5-report] r7192 - /erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 11 13:19:57 CEST 2006


Author: chris
Date: Thu May 11 13:19:55 2006
New Revision: 7192

URL: http://svn.erp5.org?rev=7192&view=rev
Log:
Display file edit icon in diff only if the file is editable

Modified:
    erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml

Modified: erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml?rev=7192&r1=7191&r2=7192&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml (original)
+++ erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml Thu May 11 13:19:55 2006
@@ -81,22 +81,31 @@
 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>  <a href=\'"+context.getPortalObject()["portal_subversion"].editPath(context, f)+"\'><img src=\'imgs/edit.png\' border=\'0\'></a><br>"\n
-    print \'<hr></font></b>\'\n
+    print "<b><font 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 \'<br><hr></font></b>\'\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>  <a href=\'"+context.getPortalObject()["portal_subversion"].editPath(context, f)+"\'><img src=\'imgs/edit.png\' border=\'0\'></a><br>"\n
-    print \'<hr></font></b>\'\n
+    print "<b><font 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 \'<br><hr></font></b>\'\n
     print "<font color=\'green\'>File Added</font><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>  <a href=\'"+context.getPortalObject()["portal_subversion"].editPath(context, f)+"\'><img src=\'imgs/edit.png\' border=\'0\'></a><br>"\n
-    print \'<hr></font></b>\'\n
+    print "<b><font 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 \'<br><hr></font></b>\'\n
     print "<font color=\'red\'>File Removed</font><br><br>"\n
 \n
 print \'</font>\'\n
@@ -156,6 +165,7 @@
                             <string>tab_Removed</string>
                             <string>_getiter_</string>
                             <string>f</string>
+                            <string>edit_path</string>
                           </tuple>
                         </value>
                     </item>




More information about the Erp5-report mailing list