diff options
| author | Thibault Delavallée <tde@odoo.com> | 2016-09-16 09:34:30 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2016-09-23 10:01:41 +0200 |
| commit | fcb51faa9f5a65bac313963673549cf5c10767c9 (patch) | |
| tree | c9b385a4f802ed69e7c27591dacb680bc5860c67 /addons/mail/data/mail_data.xml | |
| parent | a9bd9ab16087142e27076c63ef60a0467f0bcfad (diff) | |
[FIX] mail: fix display of actions button in notification email
Diffstat (limited to 'addons/mail/data/mail_data.xml')
| -rw-r--r-- | addons/mail/data/mail_data.xml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index 3645ba2e337..6dda90ccdd4 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -77,30 +77,30 @@ </div> % endif % if not ctx['is_discussion'] or not len(ctx['actions']) == 0 or ctx.get('button_access'): -<div summary="o_mail_notification"> -<table cellspacing="0" cellpadding="0" border="0" style="width: 100%; margin-top: 5px;"> +<div summary="o_mail_notification" style="padding: 0px; width:600px;"> +<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin-top: 5px;"> <tbody><tr> <td valign="center"> - % if ctx.get('button_access') or ctx.get('button_follow') or ctx.get('button_unfollow'): - <a href="${ctx['button_access']['url']}" style="padding: 8px 12px; font-size: 12px; text-decoration: none; color: #FFFFFF; text-decoration:none !important; font-weight: 400; background-color: #a24689; border: 0px solid #a24689; border-radius:3px">${ctx['button_access']['title']}</a> + % if ctx.get('button_access'): + <a href="${ctx['button_access']['url']}" style="padding: 8px 12px; font-size: 12px; color: #FFFFFF; text-decoration: none !important; font-weight: 400; background-color: #a24689; border: 0px solid #a24689; border-radius:3px">${ctx['button_access']['title']}</a> % endif % if ctx.get('button_follow'): - % if ctx.get('actions'): + % if ctx.get('button_access'): | % endif - <a href="${ctx['button_follow']['url']}" style="text-decoration:none; color: #a24689; text-decoration:none !important;">${ctx['button_follow']['title']}</a> + <a href="${ctx['button_follow']['url']}" style="color: #a24689; text-decoration: none !important;">${ctx['button_follow']['title']}</a> % elif ctx.get('button_unfollow'): - % if ctx.get('actions'): + % if ctx.get('button_access'): | % endif - <a href="${ctx['button_unfollow']['url']}" style="text-decoration:none; color: #a24689; text-decoration:none !important;">${ctx['button_unfollow']['title']}</a> + <a href="${ctx['button_unfollow']['url']}" style="color: #a24689; text-decoration: none !important;">${ctx['button_unfollow']['title']}</a> % endif % if ctx.get('actions'): % for action in ctx['actions']: | - <a href="${action['url']}" style="text-decoration:none; color: #a24689; text-decoration:none !important;">${action['title']}</a> + <a href="${action['url']}" style="color: #a24689; text-decoration:none !important;">${action['title']}</a> % endfor % endif </td> |
