diff --git a/pagure/default_config.py b/pagure/default_config.py index 38ad853..11ba951 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -37,6 +37,9 @@ APP_URL = 'https://pagure.org/' # Enables / Disables tickets for project for the entire pagure instance ENABLE_TICKETS = True +# Enables / Disables creating projects on this pagure instance +ENABLE_NEW_PROJECTS = True + # The URL to use to clone the git repositories. GIT_URL_SSH = 'ssh://git@pagure.org/' GIT_URL_GIT = 'git://pagure.org/' diff --git a/pagure/templates/master.html b/pagure/templates/master.html index 48f83cb..9cc7754 100644 --- a/pagure/templates/master.html +++ b/pagure/templates/master.html @@ -41,11 +41,13 @@ Admin {% endif %} + {% if config.get('ENABLE_NEW_PROJECTS', True) %}