From b8de023f27fbd8decb2d24060d6e579006ec0285 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Thu, 2 Mar 2023 23:19:13 -0500 Subject: [PATCH] Only show fallback in emails --- resources/views/emails/digest.blade.php | 2 +- resources/views/partials/checkins-list.blade.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/resources/views/emails/digest.blade.php b/resources/views/emails/digest.blade.php index 4158149..f004ee8 100644 --- a/resources/views/emails/digest.blade.php +++ b/resources/views/emails/digest.blade.php @@ -50,7 +50,7 @@

Checkins

@if($checkinsList)
    - @include('partials.checkins-list') + @include('partials.checkins-list', array('email'=>true))
@else

No new checkins

diff --git a/resources/views/partials/checkins-list.blade.php b/resources/views/partials/checkins-list.blade.php index 49c6a48..5c5b3a3 100644 --- a/resources/views/partials/checkins-list.blade.php +++ b/resources/views/partials/checkins-list.blade.php @@ -11,7 +11,9 @@ $embed .= ''; $embed .= '

Your client doesn\'t support HTML video. Here is a link to the video instead.

'; $embed .= ''; - $embed .= '

If your email client doesn\'t support video embeds, here is a link to the file instead.

'; + if ($email) { + $embed .= '

If your email client doesn\'t support video embeds, here is a link to the file instead.

'; + } } else { $embed = '

[The video \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]

'; $embedMissing = true; @@ -23,7 +25,9 @@ $embed .= ''; $embed .= '

Download OGG audio.

'; $embed .= ''; - $embed .= '

If your email client doesn\' support audio embeds, here is a link to the file instead.

'; + if ($email) { + $embed .= '

If your email client doesn\' support audio embeds, here is a link to the file instead.

'; + } } else { $embed = '

[The recording \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]

'; $embedMissing = true;