diff --git a/util/useremails.py b/util/useremails.py index 26235b1ee..60ba7d9be 100644 --- a/util/useremails.py +++ b/util/useremails.py @@ -1,12 +1,10 @@ import logging -import traceback import json import features from flask.ext.mail import Message from app import mail, app, get_app_url -from data import model from util.jinjautil import get_template_env logger = logging.getLogger(__name__) @@ -57,9 +55,11 @@ def send_email(recipient, subject, template_file, parameters, action=None): def app_link_handler(url=None): return app_url + '/' + url if url else app_url + app_logo = app.config.get('ENTERPRISE_LOGO_URL', 'https://quay.io/static/img/quay-logo.png') + parameters.update({ 'subject': subject, - 'app_logo': 'https://quay.io/static/img/quay-logo.png', # TODO: make this pull from config + 'app_logo': app_logo, 'app_url': app_url, 'app_title': app_title, 'hosted': features.BILLING,