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

@ -27,6 +27,7 @@ app.jinja_env.filters['admin_reference'] = admin_reference
app.jinja_env.filters['repository_reference'] = repository_reference
app.jinja_env.filters['team_reference'] = team_reference
app_title = 'Quay.io (local)'
def app_link_handler(url=None, title=None):
""" Just because it is in the original email tempaltes """
@ -37,7 +38,8 @@ def render_with_options(template=None):
return render_template(template, username="exampleuser", user_reference="testing",
app_logo="https://quay.io/static/img/quay-horizontal-color.svg", token="sdf8SdfKGRME9dse_dfdf",
app_link=app_link_handler, namespace="booboo", repository="foobar", organization="buynlarge",
admin_usernames=["lazercat", "booboocoreos"], teamname="creators", inviter="devtable")
admin_usernames=["lazercat", "booboocoreos"], teamname="creators", inviter="devtable",
hosted = "Quay" in app_title, app_title = app_title)
def get_templates():
""" Return a list of the available templates """