|
1 | 1 | {% extends "profiles/base_profile_edit.html" %}
|
2 | 2 |
|
3 |
| -{% load i18n %} |
| 3 | +{% load i18n static %} |
4 | 4 |
|
5 | 5 | {% block title %}{% trans "Connected Services" %}{% endblock %}
|
6 | 6 |
|
| 7 | +{% block extra_links %} |
| 8 | + {{ block.super }} |
| 9 | + <link rel="stylesheet" type="text/css" href="{% static "projects/css/admin.css" %}" /> |
| 10 | +{% endblock %} |
| 11 | + |
7 | 12 | {% block edit_content_header %} {% trans "Connected Services" %} {% endblock %}
|
8 | 13 |
|
9 | 14 | {% block profile-admin-social-accounts %}active{% endblock %}
|
|
12 | 17 |
|
13 | 18 | <div class="module connected-services">
|
14 | 19 | <div class="module-wrapper">
|
| 20 | + |
| 21 | + <p class="help_text"> |
| 22 | + {% blocktrans trimmed %} |
| 23 | + On this page, |
| 24 | + you can manage the integration with your Git provider(s) that enables automatic import and configuration of your repositories. |
| 25 | + <a href="https://docs.readthedocs.io/en/stable/connected-accounts.html" target="_blank">Read our documentation page about connecting Git providers.</a> |
| 26 | + {% endblocktrans %} |
| 27 | + </p> |
| 28 | + |
| 29 | + <ul class="socialaccount_providers"> |
| 30 | + {% include "socialaccount/snippets/provider_list.html" with process="connect" next="" %} |
| 31 | + </ul> |
| 32 | + |
| 33 | + </div> |
| 34 | + </div> |
| 35 | + <div class="module connected-services"> |
| 36 | + <div class="module-wrapper"> |
| 37 | + <h3>{% trans "Active connections" %}</h3> |
| 38 | + |
15 | 39 | <p>
|
16 | 40 | {% blocktrans trimmed %}
|
17 | 41 | The following services are currently connected to your account:
|
|
74 | 98 | {% endif %}
|
75 | 99 |
|
76 | 100 | </div>
|
77 |
| - </div> |
78 |
| - </div> |
79 | 101 |
|
80 |
| - <ul class="socialaccount_providers"> |
81 |
| - {% include "socialaccount/snippets/provider_list.html" with process="connect" next="" %} |
82 |
| - </ul> |
| 102 | + {% if form.accounts %} |
| 103 | + <p class="help_text"> |
| 104 | + {% blocktrans trimmed %} |
| 105 | + Note: If you press the <strong>Disconnect</strong> button to disconnect a service, |
| 106 | + you should also visit your Git Provider in order to |
| 107 | + delete the OAuth connection of Read the Docs. |
| 108 | + On GitHub, this is located in <code>Settings > Applications > Authorized OAuth Apps</code>. |
| 109 | + {% endblocktrans %} |
| 110 | + </p> |
| 111 | + {% endif %} |
| 112 | + |
| 113 | + {% include "socialaccount/snippets/login_extra.html" %} |
83 | 114 |
|
84 |
| - {% include "socialaccount/snippets/login_extra.html" %} |
| 115 | + </div> |
| 116 | + |
| 117 | + </div> |
85 | 118 |
|
86 | 119 | {% endblock %}
|
0 commit comments