From 54b6ff2282205553c1c32da68f3f37fdfdc45564 Mon Sep 17 00:00:00 2001 From: shibafu Date: Fri, 22 May 2020 00:07:04 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=9D=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=83=90=E3=83=83=E3=82=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/UserController.php | 2 ++ resources/views/components/ejaculation.blade.php | 5 ++++- resources/views/ejaculation/show.blade.php | 5 ++++- resources/views/user/profile.blade.php | 5 ++++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 12c61c1..be151d4 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -32,6 +32,7 @@ note, is_private, is_too_sensitive, link, +source, to_char(lead(ejaculated_date, 1, NULL) OVER (ORDER BY ejaculated_date DESC), 'YYYY/MM/DD HH24:MI') AS before_date, to_char(ejaculated_date - (lead(ejaculated_date, 1, NULL) OVER (ORDER BY ejaculated_date DESC)), 'FMDDD日 FMHH24時間 FMMI分') AS ejaculated_span SQL @@ -154,6 +155,7 @@ note, is_private, is_too_sensitive, link, +source, to_char(lead(ejaculated_date, 1, NULL) OVER (ORDER BY ejaculated_date DESC), 'YYYY/MM/DD HH24:MI') AS before_date, to_char(ejaculated_date - (lead(ejaculated_date, 1, NULL) OVER (ORDER BY ejaculated_date DESC)), 'FMDDD日 FMHH24時間 FMMI分') AS ejaculated_span SQL diff --git a/resources/views/components/ejaculation.blade.php b/resources/views/components/ejaculation.blade.php index 3d17540..067aa9d 100644 --- a/resources/views/components/ejaculation.blade.php +++ b/resources/views/components/ejaculation.blade.php @@ -6,11 +6,14 @@ -@if ($ejaculation->is_private || $ejaculation->tags->isNotEmpty()) +@if ($ejaculation->is_private || $ejaculation->source === 'csv' || $ejaculation->tags->isNotEmpty())

@if ($ejaculation->is_private) 非公開 @endif + @if ($ejaculation->source === 'csv') + インポート + @endif @foreach ($ejaculation->tags as $tag) {{ $tag->name }} @endforeach diff --git a/resources/views/ejaculation/show.blade.php b/resources/views/ejaculation/show.blade.php index 1f7d3d7..5dea347 100644 --- a/resources/views/ejaculation/show.blade.php +++ b/resources/views/ejaculation/show.blade.php @@ -34,11 +34,14 @@

{{ $ejaculatedSpan ?? '精通' }} {{ $ejaculation->before_date }}{{ !empty($ejaculation->before_date) ? ' ~ ' : '' }}{{ $ejaculation->ejaculated_date->format('Y/m/d H:i') }}
- @if ($ejaculation->is_private || $ejaculation->tags->isNotEmpty()) + @if ($ejaculation->is_private || $ejaculation->source === 'csv' || $ejaculation->tags->isNotEmpty())

@if ($ejaculation->is_private) 非公開 @endif + @if ($ejaculation->source === 'csv') + インポート + @endif @foreach ($ejaculation->tags as $tag) {{ $tag->name }} @endforeach diff --git a/resources/views/user/profile.blade.php b/resources/views/user/profile.blade.php index 6a35eec..5823026 100644 --- a/resources/views/user/profile.blade.php +++ b/resources/views/user/profile.blade.php @@ -40,11 +40,14 @@

{{ $ejaculation->ejaculated_span ?? '精通' }} {{ $ejaculation->before_date }}{{ !empty($ejaculation->before_date) ? ' ~ ' : '' }}{{ $ejaculation->ejaculated_date->format('Y/m/d H:i') }}
- @if ($ejaculation->is_private || $ejaculation->tags->isNotEmpty()) + @if ($ejaculation->is_private || $ejaculation->source === 'csv' || $ejaculation->tags->isNotEmpty())

@if ($ejaculation->is_private) 非公開 @endif + @if ($ejaculation->source === 'csv') + インポート + @endif @foreach ($ejaculation->tags as $tag) {{ $tag->name }} @endforeach