Skip to content

Commit

Permalink
Simplify render logic of text in exhibition status label [WEB-2705]
Browse files Browse the repository at this point in the history
  • Loading branch information
web-dev-trev committed Dec 20, 2023
1 parent 566cf7c commit 75416d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/views/site/blocks/feature_block.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@
@if ($item->type === 'exhibition' && ($item->is_now_open || $item->is_closing_soon || $item->is_ongoing))
<div class="m-feature-block-listing__label__overlay">
<span class="{{$item->is_now_open ? 'label-open' : ''}} {{$item->is_closing_soon ? 'label-closing' : ''}}">
{{$item->is_now_open ? 'Now Open' : ''}}
{{$item->is_closing_soon ? 'Closing Soon' : ''}}
{{ $item->is_now_open ? 'Now Open' : ($item->is_closing_soon ? 'Closing Soon' : '') }}
</span>
</div>
@endif
Expand Down

0 comments on commit 75416d8

Please sign in to comment.