diff --git a/public/css/app.css b/public/css/app.css index a21d377..d9af480 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -351,3 +351,11 @@ body { margin-top: 1em; } } + +.checkin-icon { + color: black; +} + +.checkin-icon--missing { + opacity: 0.4; +} diff --git a/resources/views/partials/checkins-list.blade.php b/resources/views/partials/checkins-list.blade.php index 69bb147..f18d5f3 100644 --- a/resources/views/partials/checkins-list.blade.php +++ b/resources/views/partials/checkins-list.blade.php @@ -1,35 +1,52 @@ @foreach($checkinsList as $checkin)
[The video \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]
'; + $embedMissing = true; + } + } elseif (preg_match("/\.ogg/", $filepath[1])) { + $hasEmbed = 'audio'; + if (file_exists(public_path() . "/audio/" . $filepath[1])) { + $embed = ''; + } else { + $embed = '[The recording \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]
'; + $embedMissing = true; + } + } + $checkin->note = preg_replace("/\[\[[^\]]+\]\]/", $embed, $checkin->note); + } + @endphp[The video \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]
'; - } - } elseif (preg_match("/\.ogg/", $filepath[1])) { - if (file_exists(public_path() . "/audio/" . $filepath[1])) { - $embed = ''; - } else { - $embed = '[The recording \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]
'; - } - } - $checkin->note = preg_replace("/\[\[[^\]]+\]\]/", $embed, $checkin->note); - } - @endphp @if($checkin->id === 3930) @include('partials.abolition-checkin')