jonnybarnes.uk/resources/views/templates/note.blade.php
Jonny Barnes a546f90314 Squashed commit of the following:
commit 7b73d1f1b677ac33e03f3dead77fcb4495372883
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Thu Nov 3 23:37:00 2016 +0000

    output of gulp compress

commit 7acbd37c0941474d8981fe671c5865488711e726
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Thu Nov 3 23:36:05 2016 +0000

    Use an icon for replies

commit a01cf13b3ad149cefff8eca3d328c60721b7cda0
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Thu Nov 3 23:35:14 2016 +0000

    Get gulp sass working with updated node

commit d7b08067d2f0a85abd51b9e58eb3f86ba63d8c15
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Thu Nov 3 23:18:54 2016 +0000

    We don’t need to fill the svg icons all the same colour
2016-11-03 23:38:01 +00:00

27 lines
1.7 KiB
PHP

@if ($note->twitter)
{!! $note->twitter->html !!}
@elseif ($note->in_reply_to)
<div class="p-in-reply-to h-cite reply-to">
In reply to <a href="{{ $note->reply_to }}" class="u-url">{{ $note->in_reply_to }}</a>
</div>
@endif
<div class="note">
<div class="e-content p-name">
{!! $note->note !!}
@if(count($note->photoURLs) > 0)
@foreach($note->photoURLs as $photoURL)
<img src="{{ $photoURL }}" alt="" class="note-photo u-photo">
@endforeach
@endif
</div>
<div class="note-metadata">
<a class="u-url" href="/notes/{{ $note->nb60id }}"><time class="dt-published" datetime="{{ $note->iso8601_time }}">{{ $note->human_time }}</time></a>@if($note->client_name) via <a class="client" href="{{ $note->client_id }}">{{ $note->client_name }}</a>@endif
@if($note->placeLink)in <span class="p-location h-card"><a class="p-name u-url" href="{{ $note->placeLink }}">{{ $note->address }}</a><data class="p-latitude" value="{{ $note->latitude }}"></data><data class="p-longitude" value="{{ $note->longitude }}"></data></span>
@elseif($note->address)in <span class="p-location h-adr">{!! $note->address !!}<data class="p-latitude" value="{{ $note->latitude }}"></data><data class="p-longitude" value="{{ $note->longitude }}"></data></span>@endif
@if($note->replies > 0) @include('templates.replies-icon'): {{ $note->replies }}@endif
@if($note->tweet_id || $note->facebook_url)@include('templates.social-links', ['tweet_id' => $note->tweet_id, 'facebook_url' => $note->facebook_url])@endif
@if ($note->placeLink)
<div class="map" data-latitude="{{ $note->latitude }}" data-longitude="{{ $note->longitude }}"></div>
@endif
</div>
</div>