commit 94b13846d90c02041f56b21111709da91cd40726 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Oct 22 15:51:47 2017 +0100 Remove un-needed use statement commit c370d83766fb10a100f780124bdcfc2694208140 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Oct 22 15:44:50 2017 +0100 use fillable instead of guarded, drop dates transform commit dcf620c168f75d6c9860f5149adebfaceb9d772f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Oct 22 15:42:41 2017 +0100 Given we are adding a property for contacts, we need to invoke Laravel’s own model __construct() method. commit 0cba9301c3175e60bf1c3b0ada36c79a3c33c72c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Oct 22 15:37:19 2017 +0100 Given change in mass-assignment protection, change how we populate database commit 7d09d174153ca99c0975d70fbccdc340d437227c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Oct 22 10:38:51 2017 +0100 Use a property to hold parsed contact info commit 25b05f8592ee282da5d82227b9873b523e9955d3 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Oct 20 17:19:44 2017 +0100 First attempts at reducing eloquent calls
56 lines
2.5 KiB
PHP
56 lines
2.5 KiB
PHP
@extends('master')
|
||
|
||
@section('title')
|
||
{{ strip_tags($note->getOriginal('note')) }} « Notes «
|
||
@stop
|
||
|
||
@section('content')
|
||
<div class="h-entry">
|
||
@include('templates.note', ['note' => $note])
|
||
@foreach($note->webmentions->filter(function ($webmention) {
|
||
return ($webmention->type == 'in-reply-to');
|
||
}) as $reply)
|
||
<div class="u-comment h-cite">
|
||
<a class="u-author h-card mini-h-card" href="{{ $reply['author']['properties']['url'][0] }}">
|
||
<img src="{{ $reply['author']['properties']['photo'][0] }}" alt="" class="photo u-photo logo"> <span class="fn">{{ $reply['author']['properties']['name'][0] }}</span>
|
||
</a> said at <a class="dt-published u-url" href="{{ $reply['source'] }}">{{ $reply['published'] }}</a>
|
||
<div class="e-content p-name">
|
||
{!! $reply['reply'] !!}
|
||
</div>
|
||
</div>
|
||
@endforeach
|
||
@if($note->webmentions->filter(function ($webmention) {
|
||
return ($webmention->type == 'like-of');
|
||
})->count() > 0)<h1 class="notes-subtitle">Likes</h1>
|
||
@foreach($note->webmentions->filter(function ($webmention) {
|
||
return ($webmention->type == 'like-of');
|
||
}) as $like)
|
||
<a href="{{ $like['author']['properties']['url'][0] }}"><img src="{{ $like['author']['properties']['photo'][0] }}" alt="profile picture of {{ $like['author']['properties']['name'][0] }}" class="like-photo"></a>
|
||
@endforeach
|
||
@endif
|
||
@if($note->webmentions->filter(function ($webmention) {
|
||
return ($webmention->type == 'repost-of');
|
||
})->count() > 0)<h1 class="notes-subtitle">Reposts</h1>
|
||
@foreach($note->webmentions->filter(function ($webmention) {
|
||
return ($webmention->type == 'repost-of');
|
||
}) as $repost)
|
||
<p><a class="h-card vcard mini-h-card p-author" href="{{ $repost['author']['properties']['url'][0] }}">
|
||
<img src="{{ $repost['author']['properties']['photo'][0] }}" alt="profile picture of {{ $repost['author']['properties']['name'][0] }}" class="photo u-photo logo"> <span class="fn">{{ $repost['author']['properties']['name'][0] }}</span>
|
||
</a> reposted this at <a href="{{ $repost['source'] }}">{{ $repost['published'] }}</a>.</p>
|
||
@endforeach
|
||
@endif
|
||
<!-- these empty tags are for https://brid.gy’s publishing service -->
|
||
<a href="https://brid.gy/publish/twitter"></a>
|
||
<a href="https://brid.gy/publish/facebook"></a>
|
||
</div>
|
||
@stop
|
||
|
||
@section('scripts')
|
||
|
||
<script defer src="/assets/js/links.js"></script>
|
||
<link rel="stylesheet" href="/assets/frontend/mapbox-gl.css">
|
||
<script defer src="/assets/js/maps.js"></script>
|
||
|
||
<script src="/assets/prism/prism.js"></script>
|
||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||
@stop
|