diff --git a/cl/simple_pages/templates/components.html b/cl/simple_pages/templates/components.html new file mode 100644 index 0000000000..aea8566a00 --- /dev/null +++ b/cl/simple_pages/templates/components.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block title %}Components Library - CourtListener.com{% endblock %} + +{% block content %} +

Components Library

+{% endblock %} diff --git a/cl/simple_pages/urls.py b/cl/simple_pages/urls.py index 609a227274..def2ee6c4c 100644 --- a/cl/simple_pages/urls.py +++ b/cl/simple_pages/urls.py @@ -6,6 +6,7 @@ advanced_search, alert_help, broken_email_help, + components, contact, contact_thanks, contribute, @@ -76,6 +77,7 @@ ), path("terms/v//", old_terms, name="old_terms"), # type: ignore[arg-type] path("terms/", latest_terms, name="terms"), # type: ignore[arg-type] + path("components/", components, name="components"), # type: ignore[arg-type] # Robots path( "robots.txt", diff --git a/cl/simple_pages/views.py b/cl/simple_pages/views.py index 98616a906c..2c5932cb13 100644 --- a/cl/simple_pages/views.py +++ b/cl/simple_pages/views.py @@ -45,7 +45,7 @@ async def about(request: HttpRequest) -> HttpResponse: """Loads the about page""" - return TemplateResponse(request, "about.html", {"private": False}) + return TemplateResponse(request, "about.html", {"private": True}) async def faq(request: HttpRequest) -> HttpResponse: @@ -460,6 +460,10 @@ async def validate_for_wot(request: HttpRequest) -> HttpResponse: return HttpResponse("bcb982d1e23b7091d5cf4e46826c8fc0") +async def components(request: HttpRequest) -> HttpResponse: + return TemplateResponse(request, "components.html", {"private": True}) + + async def ratelimited( request: HttpRequest, exception: Exception ) -> HttpResponse: