Browse Source

themes/srcfpo: show navigation buttons, anitya integration and orphan taking button only when namespace is not test

Julen Landa Alustiza 4 years ago
parent
commit
4c32b29525

+ 2 - 0
pagure/themes/srcfpo/templates/repo_info.html

@@ -312,6 +312,7 @@
               </div>
             </div>
 
+            {% if repo.namespace != 'tests' %}
             <div class="row text-center mb-4">
               <div class="col">
 
@@ -367,6 +368,7 @@
 
               </div>
             </div>
+            {% endif %}
 
             {% if g.authenticated and g.repo_committer and not repo.is_fork
               and not repo.settings.get('pull_requests', True) and not readme %}

+ 1 - 1
pagure/themes/srcfpo/templates/repo_master_sidebar.html

@@ -65,7 +65,7 @@
     <i class="fa fa-tags text-muted fa-fw"></i>&nbsp;Releases
   </a>
 
-  {% if 'distgit_ns' in g.main_app.blueprints and not repo.is_fork %}
+  {% if 'distgit_ns' in g.main_app.blueprints and not repo.is_fork and repo.namespace != 'tests'%}
   <div class="col-xs-2 line-height-1"></div>
   <p>Monitoring status:</p>
   <div class="btn-group">