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:
Ben Spoon 2016-08-02 16:10:04 -07:00
parent 468160cc3d
commit 5019ef0b6b

View file

@ -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,