From b8891fc65f2894925c394d93fc31bf5510aea60c Mon Sep 17 00:00:00 2001 From: pac7 <47831526-pac7@users.noreply.replit.com> Date: Mon, 22 Sep 2025 15:03:15 +0000 Subject: [PATCH] Add binding to card components to display data correctly Update various HTML templates to use Vue.js binding syntax (':') for passing data to custom components like `c-park_card` and `c-ride_card`, resolving issues with data not being displayed. 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/DkyJkDK --- templates/cotton/park_card.html | 2 +- templates/cotton/ride_card.html | 2 +- templates/home.html | 8 ++++---- templates/parks/park_detail.html | 2 +- templates/partials/homepage/featured_parks.html | 2 +- templates/partials/homepage/featured_rides.html | 2 +- templates/rides/partials/ride_list_results.html | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/cotton/park_card.html b/templates/cotton/park_card.html index e09be47b..c17a397f 100644 --- a/templates/cotton/park_card.html +++ b/templates/cotton/park_card.html @@ -41,7 +41,7 @@ Features: {% endcomment %} diff --git a/templates/cotton/ride_card.html b/templates/cotton/ride_card.html index 826e60bf..c56edf62 100644 --- a/templates/cotton/ride_card.html +++ b/templates/cotton/ride_card.html @@ -54,7 +54,7 @@ Features: {% endcomment %}
{% for park in popular_parks %} - + {% empty %}
🎢
@@ -90,7 +90,7 @@
{% for ride in popular_rides %} - + {% empty %}
🎠
@@ -110,10 +110,10 @@ {% for item in highest_rated %} {% if item.park %} - + {% else %} - + {% endif %} {% empty %}
diff --git a/templates/parks/park_detail.html b/templates/parks/park_detail.html index 96086821..1883cc64 100644 --- a/templates/parks/park_detail.html +++ b/templates/parks/park_detail.html @@ -171,7 +171,7 @@ {% if park.rides.exists %}
{% for ride in park.rides.all|slice:":6" %} - + {% endfor %}
{% else %} diff --git a/templates/partials/homepage/featured_parks.html b/templates/partials/homepage/featured_parks.html index 5a7a87b6..d3a2110c 100644 --- a/templates/partials/homepage/featured_parks.html +++ b/templates/partials/homepage/featured_parks.html @@ -2,7 +2,7 @@ {% for park in featured_parks %} - + {% empty %}
diff --git a/templates/partials/homepage/featured_rides.html b/templates/partials/homepage/featured_rides.html index 7235341e..f447e213 100644 --- a/templates/partials/homepage/featured_rides.html +++ b/templates/partials/homepage/featured_rides.html @@ -2,7 +2,7 @@ {% for ride in featured_rides %} - + {% empty %}
diff --git a/templates/rides/partials/ride_list_results.html b/templates/rides/partials/ride_list_results.html index f7265b21..ddea572e 100644 --- a/templates/rides/partials/ride_list_results.html +++ b/templates/rides/partials/ride_list_results.html @@ -85,7 +85,7 @@ {% if rides %}
{% for ride in rides %} - + {% endfor %}