From 672761701f5400fb2b129f4a25f0bc2a83d0fa60 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 24 2018 18:42:02 +0000 Subject: Only show the repoSpanner tab if pagure is configured for it Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index 85499eb..b4ed4e5 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -82,8 +82,10 @@ href="#giveproject-tab" role="tab" aria-controls="giveproject">Give Project {% endif %} + {% if config.get('REPOSPANNER_REGIONS') %} repoSpanner state + {% endif %} {% if (not repo.is_fork and config.get('ENABLE_DEL_PROJECTS', True)) or @@ -1160,9 +1162,11 @@ {% endif %} + {% if config.get('REPOSPANNER_REGIONS') %}
{% include 'settings_repospanner.html' %}
+ {% endif %} {% if (not repo.is_fork and config.get('ENABLE_DEL_PROJECTS', True))