From 6b1e2ddb825fa5ce2f48f8f681dca3c738159bcb Mon Sep 17 00:00:00 2001 From: Abhi-khandelwal Date: Sat, 29 Jun 2019 15:33:51 +0530 Subject: [PATCH] add an condition for connected_accounts --- .../templates/projects/project_import.html | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/readthedocs/templates/projects/project_import.html b/readthedocs/templates/projects/project_import.html index dd83cbd52dc..6e85a1846c1 100644 --- a/readthedocs/templates/projects/project_import.html +++ b/readthedocs/templates/projects/project_import.html @@ -70,16 +70,18 @@

{% trans "Import a Repository" %}

- {% block import-repo %} -
-

- {% blocktrans trimmed %} - Here only public repositories are listed, If you want to find your private - repositories, you can find on readthedocs.com. - {% endblocktrans %} -

-
- {% endblock %} + {% if has_connected_accounts %} + {% block import-repo %} +
+

+ {% blocktrans trimmed %} + Here only public repositories are listed, If you want to find your private + repositories, you can find them on readthedocs.com. + {% endblocktrans %} +

+
+ {% endblock %} + {% endif %}