39 lines
1.7 KiB
PHP
39 lines
1.7 KiB
PHP
<div class="media">
|
|
<img width="64px" height="64px" class="align-self-start mr-3" src="/thumbs/beta/{{str_replace(".webm","",$video->file)}}.png">
|
|
<div class="media-body">
|
|
@if($video->videotitle)<h5>{{$video->videotitle}}</h5>@endif
|
|
@if($video->interpret) <div class="artist">
|
|
<strong>Artist:</strong> {{$video->interpret}}
|
|
</div>@endif
|
|
@if($video->songtitle) <div class="songtitle">
|
|
<strong>Songtitle:</strong> {{$video->songtitle}}
|
|
</div> @endif
|
|
@if($video->imgsource) <div class="source">
|
|
<strong>Video Source:</strong> {{$video->imgsource}}
|
|
</div> @endif
|
|
<div class="category">
|
|
<strong>Category:</strong> <a class="text-light" href="/{{$video->category->shortname}}">{{$video->category->name}}</a>
|
|
</div>
|
|
<div class="uploader">
|
|
<strong>Uploader:</strong> <a class="text-light" href="{{ url("user/" . $video->user->username) }}">{!! $video->user->displayName() !!} (ID: {{$video->user->id}} )</a>
|
|
</div>
|
|
<div class="added">
|
|
<strong>Added</strong> <a id="timestamp" title="{{$video->created_at->toIso8601String()}}">{{$video->created_at->diffForHumans()}}</a> <time class="timeago" data-toggle="tooltip" datetime="{{$video->created_at->toIso8601String()}}" title="{{$video->created_at->toIso8601String()}}"></time>
|
|
</div>
|
|
<div class="tags">
|
|
@if(count($video->tags))
|
|
@foreach($video->tags as $tag)
|
|
@if($tag == 'sfw')
|
|
|
|
@elseif($tag == 'nsfw')
|
|
|
|
@else
|
|
<a href="/index?q={{$tag->normalized}}" class="badge badge-dark">{{$tag->name}}</a>
|
|
@endif
|
|
@endforeach
|
|
@else
|
|
No tags yet ...
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div> |