All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 4m48s
- fetch_fragment_batch() for N+1 avoidance with per-key Redis cache - link-card fragment handlers in blog, market, events, federation (single + batch mode) - link_card.html templates per app with content-specific previews - shared/infrastructure/oembed.py: build_oembed_response, build_og_meta, build_oembed_link_tag - GET /oembed routes on blog, market, events - og_meta + oembed_link rendering in base template <head> - INTERNAL_URL_ARTDAG in docker-compose.yml for cross-stack fragment fetches Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
HTML
<a href="{{ link }}" class="block rounded border border-stone-200 bg-white hover:bg-stone-50 transition-colors no-underline" data-fragment="link-card" data-app="market" data-hx-disable>
|
|
<div class="flex flex-row items-start gap-3 p-3">
|
|
{% if image %}
|
|
<img src="{{ image }}" alt="" class="flex-shrink-0 w-16 h-16 rounded object-cover">
|
|
{% else %}
|
|
<div class="flex-shrink-0 w-16 h-16 rounded bg-stone-100 flex items-center justify-center text-stone-400">
|
|
<i class="fas fa-shopping-bag text-lg"></i>
|
|
</div>
|
|
{% endif %}
|
|
<div class="flex-1 min-w-0">
|
|
<div class="font-medium text-stone-900 text-sm clamp-2">{{ title }}</div>
|
|
{% if brand %}
|
|
<div class="text-xs text-stone-500 mt-0.5">{{ brand }}</div>
|
|
{% endif %}
|
|
{% if description_short %}
|
|
<div class="text-xs text-stone-500 mt-1 clamp-2">{{ description_short }}</div>
|
|
{% endif %}
|
|
<div class="text-xs mt-1">
|
|
{% if special_price %}
|
|
<span class="text-red-600 font-medium">£{{ "%.2f"|format(special_price) }}</span>
|
|
<span class="text-stone-400 line-through ml-1">£{{ "%.2f"|format(regular_price) }}</span>
|
|
{% elif regular_price %}
|
|
<span class="text-stone-700 font-medium">£{{ "%.2f"|format(regular_price) }}</span>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</a>
|