Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions readthedocs/proxito/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ def __init__(self, domain, **kwargs):
super().__init__(**kwargs)


# All the following exceptions use the same template from ext-theme.
# That template uses `not_found_subject` as a heading and copy of the page,
# the rest of the page is exactly the same.
# This can be tested by using `DEBUG = False` in El Proxito.
class ProjectHttp404(ContextualizedHttp404):
"""
Raised if a domain did not resolve to a project.
Expand All @@ -86,7 +90,7 @@ def __init__(self, domain, **kwargs):
class SubprojectHttp404(ContextualizedHttp404):
"""Raised if a subproject was not found."""

template_name = "errors/proxito/404/no_subproject.html"
template_name = "errors/proxito/404/no_project.html"
not_found_subject = pgettext_lazy("Names an object not found in a 404 error", "subproject")

def __init__(self, project, **kwargs):
Expand All @@ -103,7 +107,7 @@ def __init__(self, project, **kwargs):
class ProjectFilenameHttp404(ContextualizedHttp404):
"""Raised if a page inside an existing project was not found."""

template_name = "errors/proxito/404/no_project_page.html"
template_name = "errors/proxito/404/no_project.html"
not_found_subject = pgettext_lazy(_not_found_subject_translation_context, "documentation page")

def __init__(self, project, **kwargs):
Expand All @@ -125,7 +129,7 @@ class ProjectTranslationHttp404(ContextualizedHttp404):
If a page isn't found, raise a ProjectPageHttp404.
"""

template_name = "errors/proxito/404/no_language.html"
template_name = "errors/proxito/404/no_project.html"
not_found_subject = pgettext_lazy("Names an object not found in a 404 error", "translation")

def __init__(self, project, **kwargs):
Expand All @@ -146,7 +150,7 @@ class ProjectVersionHttp404(ContextualizedHttp404):
Note: The containing project can be a subproject.
"""

template_name = "errors/proxito/404/no_version.html"
template_name = "errors/proxito/404/no_project.html"
not_found_subject = pgettext_lazy(
_not_found_subject_translation_context, "documentation version"
)
Expand Down
31 changes: 0 additions & 31 deletions readthedocs/templates/errors/base.html

This file was deleted.

14 changes: 0 additions & 14 deletions readthedocs/templates/errors/dashboard/401.html

This file was deleted.

1 change: 0 additions & 1 deletion readthedocs/templates/errors/dashboard/403.html

This file was deleted.

46 changes: 0 additions & 46 deletions readthedocs/templates/errors/dashboard/404.html

This file was deleted.

19 changes: 0 additions & 19 deletions readthedocs/templates/errors/dashboard/429.html

This file was deleted.

20 changes: 0 additions & 20 deletions readthedocs/templates/errors/dashboard/4xx.html

This file was deleted.

20 changes: 0 additions & 20 deletions readthedocs/templates/errors/dashboard/500.html

This file was deleted.

1 change: 0 additions & 1 deletion readthedocs/templates/errors/dashboard/5xx.html

This file was deleted.

1 change: 0 additions & 1 deletion readthedocs/templates/errors/dashboard/base.html

This file was deleted.

32 changes: 0 additions & 32 deletions readthedocs/templates/errors/dashboard/spam.html

This file was deleted.

1 change: 0 additions & 1 deletion readthedocs/templates/errors/proxito/401.html

This file was deleted.

1 change: 0 additions & 1 deletion readthedocs/templates/errors/proxito/403.html

This file was deleted.

46 changes: 0 additions & 46 deletions readthedocs/templates/errors/proxito/404/base.html

This file was deleted.

33 changes: 0 additions & 33 deletions readthedocs/templates/errors/proxito/404/dns.html

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions readthedocs/templates/errors/proxito/404/include_search.html

This file was deleted.

11 changes: 0 additions & 11 deletions readthedocs/templates/errors/proxito/404/include_tips.html

This file was deleted.

10 changes: 0 additions & 10 deletions readthedocs/templates/errors/proxito/404/no_language.html

This file was deleted.

Loading