- - {{ park.name }} - -
- - {# Status Badge #} - -- {{ park.description|truncatewords:30 }} -
- {% endif %} -From 97bf980e45c5be1061259aa4327eb25a30df2754 Mon Sep 17 00:00:00 2001 From: pac7 <47831526-pac7@users.noreply.replit.com> Date: Mon, 22 Sep 2025 03:30:23 +0000 Subject: [PATCH] Standardize park and ride display cards using django-cotton Replace custom park and ride card templates with django-cotton components, ensuring a consistent UI and enforcing its usage. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 0bdea3fb-49ea-4863-b501-fa6f5af0cbf0 Replit-Commit-Checkpoint-Type: intermediate_checkpoint --- .replit | 2 +- .../parks/partials/park_list_item.html | 136 +--------------- templates/cotton/ride_card.html | 2 +- .../rides/partials/ride_list_results.html | 154 +----------------- 4 files changed, 7 insertions(+), 287 deletions(-) diff --git a/.replit b/.replit index 809f821d..1a513a3c 100644 --- a/.replit +++ b/.replit @@ -55,7 +55,7 @@ localPort = 5000 externalPort = 80 [[ports]] -localPort = 32933 +localPort = 35685 externalPort = 3002 [[ports]] diff --git a/apps/parks/templates/parks/partials/park_list_item.html b/apps/parks/templates/parks/partials/park_list_item.html index ccc89c84..b1007c18 100644 --- a/apps/parks/templates/parks/partials/park_list_item.html +++ b/apps/parks/templates/parks/partials/park_list_item.html @@ -1,4 +1,5 @@ {% load static %} +{% load cotton %} {% if error %}
- {{ park.description|truncatewords:30 }} -
- {% endif %} -- {{ park.description|truncatewords:15 }} -
- {% endif %} - - {# Stats Footer #} - {% if park.ride_count or park.coaster_count %} -