Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4736 (1/2) Create components page to act as a playground for new tailwind components #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
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