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;