From fcdc00f16546bdd937e764c9e0f446eab8939e7f Mon Sep 17 00:00:00 2001 From: shibafu Date: Fri, 24 Jul 2020 16:31:43 +0900 Subject: [PATCH] =?UTF-8?q?Webhook=E3=81=8B=E3=82=89=E3=81=AE=E3=83=81?= =?UTF-8?q?=E3=82=A7=E3=83=83=E3=82=AF=E3=82=A4=E3=83=B3=E3=81=A7=E3=81=82?= =?UTF-8?q?=E3=82=8B=E3=81=93=E3=81=A8=E3=82=92=E6=98=8E=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/components/ejaculation.blade.php | 13 +++++++++---- resources/views/ejaculation/show.blade.php | 13 +++++++++---- resources/views/user/profile.blade.php | 13 +++++++++---- 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/resources/views/components/ejaculation.blade.php b/resources/views/components/ejaculation.blade.php index c8c6002..6ed473a 100644 --- a/resources/views/components/ejaculation.blade.php +++ b/resources/views/components/ejaculation.blade.php @@ -6,14 +6,19 @@ -@if ($ejaculation->is_private || $ejaculation->source === 'csv' || $ejaculation->tags->isNotEmpty()) +@if ($ejaculation->is_private || $ejaculation->source !== 'web' || $ejaculation->tags->isNotEmpty())

@if ($ejaculation->is_private) 非公開 @endif - @if ($ejaculation->source === 'csv') - インポート - @endif + @switch ($ejaculation->source) + @case ('csv') + インポート + @break + @case ('webhook') + + @break + @endswitch @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 5dea347..a20b917 100644 --- a/resources/views/ejaculation/show.blade.php +++ b/resources/views/ejaculation/show.blade.php @@ -34,14 +34,19 @@

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

@if ($ejaculation->is_private) 非公開 @endif - @if ($ejaculation->source === 'csv') - インポート - @endif + @switch ($ejaculation->source) + @case ('csv') + インポート + @break + @case ('webhook') + + @break + @endswitch @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 d850e6a..2a09b74 100644 --- a/resources/views/user/profile.blade.php +++ b/resources/views/user/profile.blade.php @@ -51,14 +51,19 @@

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

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