From 331329d1ecc88720cae45326785f5c1314ff87d0 Mon Sep 17 00:00:00 2001 From: pac7 <47831526-pac7@users.noreply.replit.com> Date: Mon, 22 Sep 2025 14:53:02 +0000 Subject: [PATCH] Display images on park and ride cards using new card image field Update park and ride card templates to utilize the `card_image` field for displaying images, with fallbacks to existing image fields or placeholders. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 0bdea3fb-49ea-4863-b501-fa6f5af0cbf0 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d6d61dac-164d-45dd-929f-7dcdfd771b64/0bdea3fb-49ea-4863-b501-fa6f5af0cbf0/0NbnR7B --- templates/cotton/park_card.html | 56 ++++++++++++++++++++++----------- templates/cotton/ride_card.html | 8 +++-- 2 files changed, 43 insertions(+), 21 deletions(-) diff --git a/templates/cotton/park_card.html b/templates/cotton/park_card.html index 29e551f7..e09be47b 100644 --- a/templates/cotton/park_card.html +++ b/templates/cotton/park_card.html @@ -124,36 +124,54 @@ Features: {% else %} {# Enhanced Grid View Item #}
- {# Card Header with Gradient #} -
+ {# Park Image #} +
+ {% if park.card_image %} + {{ park.name }} + {% elif park.photos.first %} + {{ park.name }} + {% else %} +
+ + + +
+ {% endif %} + + {# Status Badge Overlay #} +
+ + {{ park.get_status_display }} + +
+
-
-

+
+

{% if park.slug %} + class="text-gray-900 dark:text-white hover:text-blue-600 dark:hover:text-blue-400 transition-all duration-300"> {{ park.name }} {% else %} - + {{ park.name }} {% endif %}

- - {# Status Badge #} - - {{ park.get_status_display }} -
{% if park.operator %} diff --git a/templates/cotton/ride_card.html b/templates/cotton/ride_card.html index ffce1f60..826e60bf 100644 --- a/templates/cotton/ride_card.html +++ b/templates/cotton/ride_card.html @@ -64,8 +64,12 @@ Features:
- {% if ride.image %} - {{ ride.name }} + {% elif ride.photos.first %} + {{ ride.name }} {% else %}