Commit c9311353 authored by Christophe Dumez's avatar Christophe Dumez

Do not display edit icon in file history if file is not editable

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7197 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b8984496
......@@ -279,11 +279,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
python: "<b><a href=\'BusinessTemplate_viewSvnShowFile?file="+here.getPortalObject().portal_preferences.getPreference(\'subversion_working_copy\')+\'/\'+str(here.REQUEST[\'file\'])+"\'>"+here.getPortalObject().portal_preferences.getPreference(\'subversion_working_copy\')+\'/\'+str(here.REQUEST[\'file\'])+"</a></b>&nbsp;&nbsp;<a href=\'"+here.getPortalObject()["portal_subversion"].editPath(here, here.getPortalObject().portal_preferences.getPreference(\'subversion_working_copy\')+\'/\'+str(here.REQUEST[\'file\']))+"\'><img src=\'imgs/edit.png\' border=\'0\'></a>"
]]></string> </value>
<value> <string>python: here.getPortalObject()["portal_subversion"].getHeader(here, here.REQUEST[\'file\'])</string> </value>
</item>
</dictionary>
</pickle>
......
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