Change media embed links to use Laravel URL generation
This means that they should work in email digests now.
This commit is contained in:
parent
fb707a1d6e
commit
b0908035a7
1 changed files with 4 additions and 4 deletions
|
@ -9,13 +9,13 @@
|
||||||
@if(preg_match("/\[\[([^\]]+)\]\]/", $checkin->note, $filepath))
|
@if(preg_match("/\[\[([^\]]+)\]\]/", $checkin->note, $filepath))
|
||||||
@if(preg_match("/\.webm/", $filepath[1]))
|
@if(preg_match("/\.webm/", $filepath[1]))
|
||||||
<video class="popup__video" controls>
|
<video class="popup__video" controls>
|
||||||
<source src="/videos/{{ $filepath[1] }}" type="video/webm">
|
<source src="{{ url("/videos/$filepath[1]") }}" type="video/webm">
|
||||||
<p>Your browser doesn't support HTML video. Here is a <a href="/{{ $filepath[1] }}">link to the video</a> instead.</p>
|
<p>Your browser doesn't support HTML video. Here is a <a href="{{ url("/videos/$filepath[1]") }}">link to the video</a> instead.</p>
|
||||||
</video>
|
</video>
|
||||||
@elseif(preg_match("/\.ogg/", $filepath[1]))
|
@elseif(preg_match("/\.ogg/", $filepath[1]))
|
||||||
<audio class="popup__audio" controls>
|
<audio class="popup__audio" controls>
|
||||||
<source src="/audio/{{ $filepath[1] }}" type="audio/ogg">
|
<source src="{{ url("/audio/$filepath[1]") }}" type="audio/ogg">
|
||||||
<p>Download <a href="/{{ $filepath[1] }}">OGG</a> audio.</p>
|
<p>Download <a href="{{ url("/audio/$filepath[1]") }}">OGG</a> audio.</p>
|
||||||
</audio>
|
</audio>
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
|
|
Loading…
Reference in a new issue