emails: only show quay footer if coming from hosted

This commit is contained in:
Ben Spoon 2016-08-04 11:48:53 -07:00
parent 46a720285a
commit 004b834c72
3 changed files with 6 additions and 1 deletions

View file

@ -61,6 +61,7 @@ def send_email(recipient, subject, template_file, parameters, action=None):
'app_logo': 'https://quay.io/static/img/quay-logo.png', # TODO: make this pull from config
'app_url': app_url,
'app_title': app_title,
'hosted': 'Quay' in app_title,
'app_link': app_link_handler,
'action_metadata': json.dumps(action.metadata) if action else None
})