[FIX] share: web: fix share icon position for form views

bzr revid: odo@openerp.com-20110412000512-yanrte303scj0ort
This commit is contained in:
Olivier Dony
2011-04-12 02:05:12 +02:00
parent 3b5aa70813
commit 3cd35d5586
+3 -3
View File
@@ -8,9 +8,9 @@ class FormEditor(openobject.templating.TemplateEditor):
def insert_share_button(self, output):
# Insert the share button on the form title H1 line, at the very end,
# but only if the user is a member of the sharing group
share_opener_insertion = output.index(
'</h1>',
output.index(self.MAIN_FORM_BODY)) - 1
share_opener_insertion = output.index('% endif', output.index(
'/view_diagram/process',
output.index(self.MAIN_FORM_BODY))) - 1
return output[:share_opener_insertion] + '''
<%
if 'has_share' not in cp.session: