From afc2705b1c2109603614ed6d62321f4823d24ce9 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 9 Aug 2016 12:18:35 -0400 Subject: [PATCH] Have email read the enterprise logo --- util/useremails.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,