Skip to content

Commit b657dd5

Browse files
authored
Merge pull request #6650 from readthedocs/humitos/skip-contact-support
Point users to support email instead asking to open an issue
2 parents 009789b + c36898b commit b657dd5

File tree

4 files changed

+3
-18
lines changed

4 files changed

+3
-18
lines changed

readthedocs/core/context_processors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ def readthedocs_processor(request):
1717
'TEMPLATE_ROOT': settings.TEMPLATE_ROOT + '/',
1818
'DO_NOT_TRACK_ENABLED': settings.DO_NOT_TRACK_ENABLED,
1919
'USE_PROMOS': settings.USE_PROMOS,
20+
'SUPPORT_EMAIL': settings.SUPPORT_EMAIL,
2021
}
2122
return exports

readthedocs/core/views/__init__.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,6 @@ def get_context_data(self, **kwargs):
4545
return context
4646

4747

48-
class SupportView(TemplateView):
49-
template_name = 'support.html'
50-
51-
def get_context_data(self, **kwargs):
52-
context = super().get_context_data(**kwargs)
53-
support_email = settings.SUPPORT_EMAIL
54-
if not support_email:
55-
support_email = 'support@{domain}'.format(
56-
domain=settings.PRODUCTION_DOMAIN
57-
)
58-
59-
context['support_email'] = support_email
60-
return context
61-
62-
6348
def wipe_version(request, project_slug, version_slug):
6449
version = get_object_or_404(
6550
Version.internal.all(),

readthedocs/templates/core/project_bar_base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1>
3131
{% blocktrans trimmed %}
3232
Your project is currently disabled for abuse of the system.
3333
Please make sure it isn't using unreasonable amounts of resources or triggering lots of builds in a short amount of time.
34-
Please <a href="https://github.com/rtfd/readthedocs.org/issues">file a ticket</a> to get your project re-enabled.
34+
Please <a href="mailto:{{ SUPPORT_EMAIL }}">contact support</a> to get your project re-enabled.
3535
{% endblocktrans %}
3636
</p>
3737
<br>

readthedocs/urls.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from readthedocs.core.urls import core_urls, docs_urls
1313
from readthedocs.core.views import (
1414
HomepageView,
15-
SupportView,
1615
do_not_track,
1716
server_error_404,
1817
server_error_500,
@@ -28,7 +27,7 @@
2827

2928
basic_urls = [
3029
url(r'^$', HomepageView.as_view(), name='homepage'),
31-
url(r'^support/', SupportView.as_view(), name='support'),
30+
url(r'^support/', TemplateView.as_view(template_name='support.html'), name='support'),
3231
url(r'^security/', TemplateView.as_view(template_name='security.html')),
3332
url(
3433
r'^\.well-known/security.txt$',

0 commit comments

Comments
 (0)