Skip to content

Commit

Permalink
feat(styles) creating private components page
Browse files Browse the repository at this point in the history
  • Loading branch information
leohentschker committed Dec 22, 2024
1 parent 17c150f commit ac150fd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cl/simple_pages/templates/components.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "base.html" %}

{% block title %}Components Library - CourtListener.com{% endblock %}

{% block content %}
<h1>Components Library</h1>
{% endblock %}
2 changes: 2 additions & 0 deletions cl/simple_pages/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
advanced_search,
alert_help,
broken_email_help,
components,
contact,
contact_thanks,
contribute,
Expand Down Expand Up @@ -78,6 +79,7 @@
),
path("terms/v/<int: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",
Expand Down
4 changes: 4 additions & 0 deletions cl/simple_pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,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:
Expand Down

0 comments on commit ac150fd

Please sign in to comment.