fix: removing broken links to unpublished episodes

This commit is contained in:
Paul Couture 2023-12-21 15:17:18 -06:00
parent 06e5101199
commit c46664492d

View File

@ -56,9 +56,9 @@ class="avatar" data-bs-toggle="tooltip"
<strong>{{ $thisPodcast->name }}</strong>
@endif
<br>
@if ($thisPodcast->published)
<a href="/podcast/{{ $thisPodcast->slug }}/episode/{{ $thisEpisode->slug }}">Episode {{ number_format($thisEpisode->episode_number + 0) }}<br><em>
{{ $thisEpisode->episode_date->format('D, M j') }}<sup>{{ $thisEpisode->episode_date->format('S') }}</sup>{{ $thisEpisode->episode_date->format(', Y') }}</em></a>
@if ($thisEpisode->published)
<a href="/podcast/{{ $thisPodcast->slug }}/episode/{{ $thisEpisode->slug }}">Episode {{ number_format($thisEpisode->episode_number + 0) }}<br>
<em>{{ $thisEpisode->episode_date->format('D, M j') }}<sup>{{ $thisEpisode->episode_date->format('S') }}</sup>{{ $thisEpisode->episode_date->format(', Y') }}</em></a>
@else
Episode {{ number_format($thisEpisode->episode_number + 0) }}<br>
<em>{{ $thisEpisode->episode_date->format('D, M j') }}<sup>{{ $thisEpisode->episode_date->format('S') }}</sup>{{ $thisEpisode->episode_date->format(', Y') }}</em>