diff --git a/endpoints/common.py b/endpoints/common.py index aaa164d36..c2734031e 100644 --- a/endpoints/common.py +++ b/endpoints/common.py @@ -16,7 +16,7 @@ from flask_principal import identity_changed import endpoints.decorated # Register the various exceptions via decorators. import features -from app import app, oauth_apps, LoginWrappedDBUser, user_analytics +from app import app, oauth_apps, LoginWrappedDBUser, user_analytics, license_validator from auth import scopes from auth.permissions import QuayDeferredPermissionUser from config import frontend_visible_config @@ -230,6 +230,7 @@ def render_page_template(name, route_data=None, **kwargs): hostname=app.config['SERVER_HOSTNAME'], preferred_scheme=app.config['PREFERRED_URL_SCHEME'], version_number=version_number, + license_insufficient=license_validator.insufficient, **kwargs)) resp.headers['X-FRAME-OPTIONS'] = 'DENY' diff --git a/templates/base.html b/templates/base.html index 3dfb32198..a88780f0b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -239,8 +239,16 @@ mixpanel.init("{{ mixpanel_key }}", { track_pageview : false, debug: {{ is_debug {% endif %} + + {% if license_insufficient %} +