2019-04-05 23:10:26 +09:00
|
|
|
<!-- span -->
|
2019-04-07 20:48:29 +09:00
|
|
|
<div>
|
2019-04-05 23:10:26 +09:00
|
|
|
<h5>
|
2020-01-28 01:36:59 +09:00
|
|
|
<a href="{{ route('user.profile', ['id' => $ejaculation->user->name]) }}" class="text-dark"><img src="{{ $ejaculation->user->getProfileImageUrl(30) }}" srcset="{{ Formatter::profileImageSrcSet($ejaculation->user, 30) }}" width="30" height="30" class="rounded d-inline-block align-bottom"> <bdi>{{ $ejaculation->user->display_name }}</bdi></a>
|
2019-04-05 23:10:26 +09:00
|
|
|
<a href="{{ route('checkin.show', ['id' => $ejaculation->id]) }}" class="text-muted"><small>{{ $ejaculation->ejaculated_date->format('Y/m/d H:i') }}</small></a>
|
|
|
|
</h5>
|
|
|
|
</div>
|
|
|
|
<!-- tags -->
|
2020-05-22 00:07:04 +09:00
|
|
|
@if ($ejaculation->is_private || $ejaculation->source === 'csv' || $ejaculation->tags->isNotEmpty())
|
2019-04-05 23:10:26 +09:00
|
|
|
<p class="mb-2">
|
2019-04-21 02:14:08 +09:00
|
|
|
@if ($ejaculation->is_private)
|
|
|
|
<span class="badge badge-warning"><span class="oi oi-lock-locked"></span> 非公開</span>
|
|
|
|
@endif
|
2020-05-22 00:07:04 +09:00
|
|
|
@if ($ejaculation->source === 'csv')
|
|
|
|
<span class="badge badge-info"><span class="oi oi-cloud-upload"></span> インポート</span>
|
|
|
|
@endif
|
2019-04-05 23:10:26 +09:00
|
|
|
@foreach ($ejaculation->tags as $tag)
|
|
|
|
<a class="badge badge-secondary" href="{{ route('search', ['q' => $tag->name]) }}"><span class="oi oi-tag"></span> {{ $tag->name }}</a>
|
|
|
|
@endforeach
|
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
<!-- okazu link -->
|
|
|
|
@if (!empty($ejaculation->link))
|
|
|
|
<div class="row mx-0">
|
2019-09-07 19:57:44 +09:00
|
|
|
@component('components.link-card', ['link' => $ejaculation->link, 'is_too_sensitive' => $ejaculation->is_too_sensitive])
|
2019-04-05 23:10:26 +09:00
|
|
|
@endcomponent
|
|
|
|
<p class="d-flex align-items-baseline mb-2 col-12 px-0">
|
|
|
|
<span class="oi oi-link-intact mr-1"></span><a class="overflow-hidden" href="{{ $ejaculation->link }}" target="_blank" rel="noopener">{{ $ejaculation->link }}</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<!-- note -->
|
|
|
|
@if (!empty($ejaculation->note))
|
2019-04-07 20:48:29 +09:00
|
|
|
<p class="mb-2 text-break">
|
2019-04-05 23:10:26 +09:00
|
|
|
{!! Formatter::linkify(nl2br(e($ejaculation->note))) !!}
|
|
|
|
</p>
|
2019-04-07 20:48:29 +09:00
|
|
|
@endif
|
2019-04-07 23:27:24 +09:00
|
|
|
<!-- likes -->
|
|
|
|
@if ($ejaculation->likes_count > 0)
|
|
|
|
<div class="my-2 py-1 border-top border-bottom d-flex align-items-center">
|
2019-04-14 00:19:52 +09:00
|
|
|
<div class="ml-2 mr-3 text-secondary flex-shrink-0"><small><strong>{{ $ejaculation->likes_count }}</strong> 件のいいね</small></div>
|
2019-04-07 23:27:24 +09:00
|
|
|
<div class="like-users flex-grow-1 overflow-hidden">
|
|
|
|
@foreach ($ejaculation->likes as $like)
|
|
|
|
@if ($like->user !== null)
|
2020-01-28 01:36:59 +09:00
|
|
|
<a href="{{ route('user.profile', ['name' => $like->user->name]) }}"><img src="{{ $like->user->getProfileImageUrl(30) }}" srcset="{{ Formatter::profileImageSrcSet($like->user, 30) }}" width="30" height="30" class="rounded" data-toggle="tooltip" data-placement="bottom" title="{{ $like->user->display_name }}"></a>
|
2019-04-07 23:27:24 +09:00
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2019-04-07 20:48:29 +09:00
|
|
|
<!-- actions -->
|
|
|
|
<div class="ejaculation-actions">
|
|
|
|
<button type="button" class="btn btn-link text-secondary"
|
|
|
|
data-toggle="tooltip" data-placement="bottom"
|
2019-09-08 16:32:37 +09:00
|
|
|
title="同じオカズでチェックイン" data-href="{{ $ejaculation->makeCheckinURL() }}"><span class="oi oi-reload"></span></button>
|
2019-04-07 20:48:29 +09:00
|
|
|
<button type="button" class="btn btn-link text-secondary like-button"
|
|
|
|
data-toggle="tooltip" data-placement="bottom" data-trigger="hover"
|
|
|
|
title="いいね" data-id="{{ $ejaculation->id }}" data-liked="{{ (bool)$ejaculation->is_liked }}"><span class="oi oi-heart {{ $ejaculation->is_liked ? 'text-danger' : '' }}"></span><span class="like-count">{{ $ejaculation->likes_count ? $ejaculation->likes_count : '' }}</span></button>
|
2019-09-08 16:32:37 +09:00
|
|
|
</div>
|