diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 2c8c512..47fbcf7 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -217,7 +217,11 @@ git push -u origin master {% endfor %} -
Source GIT URLs{% if authenticated and repo_admin %} +
Source GIT URLs{% if + (authenticated and repo_admin) or + (config['DOC_APP_URL'] and repo and + repo.settings.get('project_documentation', True)) + %} {%endif%}
@@ -236,10 +240,12 @@ git push -u origin master config.get('GIT_URL_GIT') }}{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git" readonly> - {% if authenticated and repo_admin %} -
- {% if config['DOC_APP_URL'] and repo and repo.settings.get('project_documentation', True) %} +
+ {% if config['DOC_APP_URL'] + and repo + and repo.settings.get('project_documentation', True) %}
Docs GIT URLs
+ {% if authenticated and repo_admin %}
SSH
@@ -247,6 +253,7 @@ git push -u origin master config.get('GIT_URL_SSH') }}docs/{{ repo.fullname }}.git" readonly>
+ {% endif %}
GIT
@@ -255,6 +262,7 @@ git push -u origin master
{%endif%} + {% if authenticated and repo_admin %} {% if config.get('ENABLE_TICKETS', True) %}
Issues GIT URLs
@@ -264,13 +272,6 @@ git push -u origin master config.get('GIT_URL_SSH') }}tickets/{{ repo.fullname }}.git" readonly>
-
-
-
GIT
- -
-
{%endif%}
Pull Requests GIT URLs
@@ -280,15 +281,10 @@ git push -u origin master config.get('GIT_URL_SSH') }}requests/{{ repo.fullname }}.git" readonly>
-
-
-
GIT
- -
-
- {% endif %} + + +