♑🛠️
- add show price preference(store in cookies)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% macro property_card(prop) %}
|
||||
{% macro property_card(prop, price_pref="total") %}
|
||||
<div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
|
||||
<a href="/properties/{{ prop.id }}" class="block">
|
||||
<div class="relative h-52 bg-gray-200">
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
<div class="p-5">
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<span class="text-2xl font-bold text-primary">${{ "{:,}".format(prop.price) }}</span>
|
||||
<span class="text-2xl font-bold text-primary">{{ prop.price|price_fmt(price_pref, prop.area_sqft) }}</span>
|
||||
</div>
|
||||
|
||||
<h3 class="text-lg font-semibold text-gray-800 mb-1 truncate">
|
||||
|
||||
Reference in New Issue
Block a user