Skip to content

Commit

Permalink
Tweak to the custom tours view to make sure the tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
lukew-cogapp committed Nov 15, 2023
1 parent ff01f1b commit 4cf8a4a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions resources/views/site/customTour.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@

<p>{{ count($custom_tour['artworks']) }} artworks, {{ $unique_artists_count }} artists across {{ $unique_galleries_count }} galleries</p>

@isset($custom_tour['description'])
<p id="description"><em>{{ $custom_tour['description'] }}</em>
@isset($custom_tour['creatorName'])
<br>— {{ $custom_tour['creatorName'] }}
@endisset
</p>
@endisset
@if(array_key_exists('description', $custom_tour) && $custom_tour['description'])
<p id="description">{{ $custom_tour['description'] }}</p>
@endif

<ul>
@foreach ($custom_tour['artworks'] as $artwork)
Expand Down

0 comments on commit 4cf8a4a

Please sign in to comment.