emails: change the app_link_handler to return just a uri
There is no need for an anchor tag any longer.
This commit is contained in:
parent
468160cc3d
commit
5019ef0b6b
1 changed files with 2 additions and 6 deletions
|
@ -53,12 +53,8 @@ def send_email(recipient, subject, template_file, parameters, action=None):
|
|||
app_title = app.config['REGISTRY_TITLE_SHORT']
|
||||
app_url = get_app_url()
|
||||
|
||||
def app_link_handler(url=None, title=None):
|
||||
real_url = app_url + '/' + url if url else app_url
|
||||
if not title:
|
||||
title = real_url if url else app_title
|
||||
|
||||
return '<a href="%s">%s</a>' % (real_url, title)
|
||||
def app_link_handler(url=None):
|
||||
return real_url = app_url + '/' + url if url else app_url
|
||||
|
||||
parameters.update({
|
||||
'subject': subject,
|
||||
|
|
Reference in a new issue