Commit b8984496 authored by Christophe Dumez's avatar Christophe Dumez

- added a function to display history file title


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7196 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f51b786c
...@@ -497,6 +497,14 @@ class SubversionTool(BaseTool, UniqueObject, Folder): ...@@ -497,6 +497,14 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
if target_realm == realm: if target_realm == realm:
return user, password return user, password
return None, None return None, None
def getHeader(self, bt, file):
file = self.relativeToAbsolute(file, bt)
header = "<b><a href='BusinessTemplate_viewSvnShowFile?file="+file+"'>" + file + "</a></b>"
edit_path = self.editPath(bt, file)
if edit_path != '#':
header += "&nbsp;&nbsp;<a href='"+self.editPath(bt, file)+"'><img src='imgs/edit.png' border='0'></a>"
return header
def _encodeSSLTrust(self, trust_dict, permanent=False): def _encodeSSLTrust(self, trust_dict, permanent=False):
# Encode login information. # Encode login information.
......
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