Skip to content

Commit

Permalink
add an condition for connected_accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi-khandelwal committed Jun 29, 2019
1 parent fd0568f commit 6b1e2dd
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions readthedocs/templates/projects/project_import.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,18 @@
</span>

<h1>{% trans "Import a Repository" %}</h1>
{% block import-repo %}
<div class="import-repo">
<p>
{% blocktrans trimmed %}
Here only public repositories are listed, If you want to find your private
repositories, you can find on <a href="https://readthedocs.com/">readthedocs.com</a>.
{% endblocktrans %}
</p>
</div>
{% endblock %}
{% if has_connected_accounts %}
{% block import-repo %}
<div class="import-repo">
<p>
{% blocktrans trimmed %}
Here only public repositories are listed, If you want to find your private
repositories, you can find them on <a href="https://readthedocs.com/">readthedocs.com</a>.
{% endblocktrans %}
</p>
</div>
{% endblock %}
{% endif %}
<div class="module repository-list">
<div class="module-wrapper">
<div class="module-list">
Expand Down

0 comments on commit 6b1e2dd

Please sign in to comment.