Merge pull request #1692 from coreos-inc/email-logo

Have email read the enterprise logo
This commit is contained in:
josephschorr 2016-08-09 12:19:10 -04:00 committed by GitHub
commit 19d718066b

View file

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