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 768a54d commit 4e272c7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
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 @@ -76,6 +77,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
6 changes: 5 additions & 1 deletion cl/simple_pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4e272c7

Please sign in to comment.