diff --git a/media/css/core.css b/media/css/core.css index 5338130cf59..7d40d19b3dc 100644 --- a/media/css/core.css +++ b/media/css/core.css @@ -835,18 +835,25 @@ div.project-import-remote button.remote-sync:before { content: "\f021"; } -a.socialaccount-provider.github:before { +button.socialaccount-provider { + padding: 6px 10px 6px 10px; + font-size: 16px; + margin: 10px 5px 10px 0px; + line-height: 24px; +} + +button.socialaccount-provider.github:before { font-family: FontAwesome; content: "\f09b"; } -a.socialaccount-provider.gitlab:before { +button.socialaccount-provider.gitlab:before { font-family: FontAwesome; content: "\f296"; } -a.socialaccount-provider.bitbucket:before, -a.socialaccount-provider.bitbucket_oauth2:before { +button.socialaccount-provider.bitbucket:before, +button.socialaccount-provider.bitbucket_oauth2:before { font-family: FontAwesome; content: "\f171"; } diff --git a/readthedocs/projects/static-src/projects/css/import.less b/readthedocs/projects/static-src/projects/css/import.less index e25d166e66a..fbad24f1a2a 100644 --- a/readthedocs/projects/static-src/projects/css/import.less +++ b/readthedocs/projects/static-src/projects/css/import.less @@ -71,7 +71,7 @@ div.project-import-remote { overflow: auto; text-align: center; - a.socialaccount-provider { + button.socialaccount-provider { float: none; display: inline-block; margin-bottom: 0.5em; diff --git a/readthedocs/projects/static/projects/css/import.css b/readthedocs/projects/static/projects/css/import.css index 090e00b94cc..78471ad9a2d 100644 --- a/readthedocs/projects/static/projects/css/import.css +++ b/readthedocs/projects/static/projects/css/import.css @@ -60,7 +60,7 @@ div.project-import-remote ul.socialaccount_providers li { overflow: auto; text-align: center; } -div.project-import-remote ul.socialaccount_providers li a.socialaccount-provider { +div.project-import-remote ul.socialaccount_providers li button.socialaccount-provider { float: none; display: inline-block; margin-bottom: 0.5em; diff --git a/readthedocs/settings/base.py b/readthedocs/settings/base.py index c6ba5aedb1f..cd5dd5aa723 100644 --- a/readthedocs/settings/base.py +++ b/readthedocs/settings/base.py @@ -637,6 +637,7 @@ def DOCKER_LIMITS(self): ACCOUNT_AUTHENTICATION_METHOD = 'username_email' ACCOUNT_ACTIVATION_DAYS = 7 SOCIALACCOUNT_AUTO_SIGNUP = False + SOCIALACCOUNT_STORE_TOKENS = True SOCIALACCOUNT_PROVIDERS = { 'github': { 'SCOPE': [ diff --git a/readthedocs/templates/429.html b/readthedocs/templates/429.html new file mode 100644 index 00000000000..b7c79fd8c16 --- /dev/null +++ b/readthedocs/templates/429.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% load core_tags %} +{% load i18n %} + +{% block title %} + {% trans "Too many requests" %} +{% endblock %} + +{% block header-wrapper %} + {% include "error_header.html" %} +{% endblock %} + +{% block notify %}{% endblock %} + +{# Hide the language select form so we don't set a CSRF cookie #} +{% block language-select-form %}{% endblock %} + +{% block content %} +
+ .--~~,__ + :-....,-------`~~'._.' + `-,,, ,_ ;'~U' + _,-' ,'`-__; '--. + (_/'~~ ''''(; + + Too many requests! Try again in a bit. ++{% endblock %} diff --git a/readthedocs/templates/account/base.html b/readthedocs/templates/account/base.html new file mode 100644 index 00000000000..94d9808cc76 --- /dev/null +++ b/readthedocs/templates/account/base.html @@ -0,0 +1 @@ +{% extends "base.html" %} diff --git a/readthedocs/templates/socialaccount/snippets/provider_list.html b/readthedocs/templates/socialaccount/snippets/provider_list.html index 7299538d04a..9839171a2e9 100644 --- a/readthedocs/templates/socialaccount/snippets/provider_list.html +++ b/readthedocs/templates/socialaccount/snippets/provider_list.html @@ -7,28 +7,30 @@ {% if provider.id == "openid" %} {% for brand in provider.get_brands %}