From b67416689f9f985d4903e327b01ade5d6d4e0b64 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Dec 03 2018 13:21:30 +0000 Subject: hide extra GIT URLs behind a collapseable element This hides by default the extra git repos (docs, issues, etc) from the dropdown for viewing the clone URLs. A simple link is added at the bottom of the dropdown to show the extra URLs Fixes: #4078 --- diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html index a89c34e..cda1cb7 100644 --- a/pagure/templates/repo_master.html +++ b/pagure/templates/repo_master.html @@ -196,40 +196,53 @@ config.get('GIT_URL_GIT') }}{{ repo.path }}" readonly> - - {% if config['DOC_APP_URL'] - and repo - and repo.settings.get('project_documentation', True) %} -
Documentation
- {% if g.authenticated and g.repo_committer %} - {{ print_ssh_url(repo, "docs/", g.fas_user.username) }} - {% endif %} -
-
-
GIT
- + {% if (config['DOC_APP_URL'] + and repo + and repo.settings.get('project_documentation', True) + ) + or + (g.authenticated and g.repo_committer) %} + + - {% endif %} + {% endif %} - {% if g.authenticated and g.repo_committer %} - {% if config.get('ENABLE_TICKETS', True) - and repo.settings.get('issue_tracker', True) %} -
Issues
- {{ print_ssh_url(repo, "tickets/", g.fas_user.username) }} + {% if g.authenticated and g.repo_committer %} + {% if config.get('ENABLE_TICKETS', True) + and repo.settings.get('issue_tracker', True) %} +
Issues
+ {{ print_ssh_url(repo, "tickets/", g.fas_user.username) }} + {% endif %} +
Pull Requests
+ {{ print_ssh_url(repo, "requests/", g.fas_user.username) }} {% endif %} -
Pull Requests
- {{ print_ssh_url(repo, "requests/", g.fas_user.username) }} - {% endif %} -
-

- - Learn more about these different git repos. +


+

+ + Learn more about these different git repos. + +

+
+

+ + Other Git URLs

- + {% endif %}
@@ -419,7 +432,11 @@ window.addEventListener("load", function(event) {