diff --git a/pagure/flask_app.py b/pagure/flask_app.py index b6dbcd3..8c31e08 100644 --- a/pagure/flask_app.py +++ b/pagure/flask_app.py @@ -241,6 +241,7 @@ def set_request(): flask.current_app.config["DB_URL"] ) + flask.g.main_app = flask.current_app flask.g.version = pagure.__version__ flask.g.confirmationform = pagure.forms.ConfirmationForm() diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index 5c93c25..24ee38d 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -104,7 +104,7 @@ href="#deleteproject-tab" role="tab" aria-controls="deleteproject">Delete Project {% endif %} - {% for blueprint in main_app.blueprints %} + {% for blueprint in g.main_app.blueprints %} {% if blueprint | hasattr('settings') %} Releases - {% if 'distgit_ns' in main_app.blueprints and not repo.is_fork %} + {% if 'distgit_ns' in g.main_app.blueprints and not repo.is_fork %}
Monitoring status: