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 @@
@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 @@
@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