File tree 2 files changed +27
-1
lines changed
2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,30 @@ <h1>{% trans "Sign Up" %}</h1>
13
13
< small > {% blocktrans %}Already have an account? Then please < a href ="{{ login_url }} "> sign in</ a > .{% endblocktrans %}</ small >
14
14
</ p >
15
15
16
+ {% if allowed_providers %}
17
+ < p >
18
+ {% if organization %}
19
+ {% blocktrans trimmed with organization.name as organization_name %}
20
+ You have been invited to join
21
+ the organization "{{ organization_name }}"
22
+ at Read the Docs.
23
+ {% endblocktrans %}
24
+ {% else %}
25
+ {% blocktrans trimmed %}
26
+ You have been invited to join
27
+ an organization
28
+ at Read the Docs.
29
+ {% endblocktrans %}
30
+ {% endif %}
31
+ </ p >
32
+ < p >
33
+ {% blocktrans trimmed %}
34
+ Sign up using the following provider.
35
+ If you don't have an account with this provider,
36
+ please contant your organization owner and ask about this.
37
+ {% endblocktrans %}
38
+ </ p >
39
+ {% else %}
16
40
< form class ="signup " id ="signup_form " method ="post " action ="{% url 'account_signup' %} ">
17
41
{% csrf_token %}
18
42
{{ form.as_p }}
@@ -26,11 +50,11 @@ <h1>{% trans "Sign Up" %}</h1>
26
50
</ form >
27
51
28
52
< h3 > {% trans 'Or' %}</ h3 >
53
+ {% endif %}
29
54
30
55
< div class ="clearfix ">
31
56
< ul class ="socialaccount_providers ">
32
57
{% include "socialaccount/snippets/provider_list.html" with process="login" next="" verbiage="Sign up with" %}
33
58
</ ul >
34
59
</ div >
35
-
36
60
{% endblock %}
Original file line number Diff line number Diff line change 19
19
{% endfor %}
20
20
{% endif %}
21
21
{% if provider.id != 'bitbucket' %}
22
+ {% if allowed_providers and provider.id in allowed_providers or not allowed_providers %}
22
23
< li >
23
24
< a title ="{{ provider.name }} "
24
25
class ="socialaccount-provider {{ provider.id }} button "
30
31
</ a >
31
32
</ li >
32
33
{% endif %}
34
+ {% endif %}
33
35
{% endfor %}
You can’t perform that action at this time.
0 commit comments