Add timezone utility and current branch signal to enhance park detail functionality

This commit is contained in:
pacnpal
2025-02-06 20:38:38 -05:00
parent 9c65df12bb
commit d353f24f9d
3 changed files with 3 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ from decimal import Decimal, ROUND_DOWN, InvalidOperation
from typing import Tuple, Optional, Any, TYPE_CHECKING
from companies.models import Company
from history_tracking.signals import get_current_branch
from media.models import Photo
from history_tracking.models import HistoricalModel
from location.models import Location

View File

@@ -168,7 +168,7 @@
{% for photo in park.photos.all|slice:":4" %}
<li class="aspect-w-1 aspect-h-1">
<img src="{{ photo.image.url }}"
alt="{% if photo.title %}{{ photo.title }} - {% endif %}{{ park.name }}"
alt="{% if photo.title %}{{ photo.title }} at {% endif %}{{ park.name }}"
class="object-cover rounded"
loading="lazy"
decoding="async"