From 1ea56eaa72cc7073a34ea3d92b6202fe2de1824f Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sat, 29 Oct 2022 23:59:23 +0000 Subject: [PATCH] Tweak checkin rendering --- resources/views/tracker.blade.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/resources/views/tracker.blade.php b/resources/views/tracker.blade.php index 1a074b8..c8e0f69 100644 --- a/resources/views/tracker.blade.php +++ b/resources/views/tracker.blade.php @@ -42,13 +42,15 @@
  • -

    {{ $checkin->title ?? "[No title]" }}

    +

    {!! $checkin->title ?? "Untitled" !!}

    {!! render_date_difference($checkin->date) !!}

    - {{ $checkin->note ?? "[No note]" }} - @if($checkin->image_url) - - @endif + @if($checkin->note) + {!! $checkin->note !!} + @endif + @if($checkin->image_url) + + @endif
  • @endforeach @@ -90,8 +92,8 @@ @foreach($trip->checkins as $checkin) marker = L.marker([{{ $checkin->location->latitude }}, {{ $checkin->location->longitude }}]).addTo(map); - popupMarkup = ''; - popupMarkup += ``; + popupMarkup = ``; + popupMarkup += ``; popupMarkup += ''; marker.bindPopup(popupMarkup).openPopup();