fix: removing broken links to unpublished episodes
This commit is contained in:
parent
06e5101199
commit
c46664492d
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user