Have email read the enterprise logo

This commit is contained in:
Joseph Schorr 2016-08-09 12:18:35 -04:00
parent b0e34692cf
commit afc2705b1c

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,