70 lines
1.9 KiB
PHP
70 lines
1.9 KiB
PHP
<!--<div id="motd" class="panel panel-info hidden-xs">
|
|
@if(null === $banner)
|
|
<div class="panel-body motd">
|
|
<span style="color:red;">f0ck you!</span>
|
|
<iframe style="width: 342px; height: 50px; border: 0!important;display: flex;"src="/0x40"></iframe>
|
|
</div>
|
|
@else
|
|
<a href="{{ $banner->url }}" target="_blank" rel="noopener">
|
|
<div style="height: 50px; background-image:url('{{ $banner->image }}')" class="panel-body motd">
|
|
</div>
|
|
</a>
|
|
@endif
|
|
</div>-->
|
|
|
|
{{-- hier kann theoretisch notification angezeigt--}}
|
|
|
|
@if(Auth::check())
|
|
@if($video->id == '30186')
|
|
@include('partials.thread_closed')
|
|
@else
|
|
@include('partials.commentform')
|
|
@endif
|
|
@else
|
|
@endif
|
|
|
|
@if(Auth::check())
|
|
<div id="comment_container_scrollable" class="comments hidden-xs">
|
|
<div class="commentwrapper">
|
|
<?php
|
|
if($mod = (Auth::check() && Auth::user()->can('delete_comment'))) $comments = $video->comments()->withTrashed()->get();
|
|
else $comments = $video->comments;
|
|
?>
|
|
@if(count($comments) > 0)
|
|
@foreach($comments as $comment)
|
|
@include('partials.comment', ['comment' => $comment, 'mod' => $mod])
|
|
@endforeach
|
|
@else
|
|
<div class="panel panel-default nocomments">
|
|
<div class="panel-body">
|
|
No comments yet …<br />
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@else
|
|
<style>
|
|
#sidebar {
|
|
height: unset !important;
|
|
position: absolute;
|
|
bottom: 0;
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.vertical-align {
|
|
min-height: calc(90vh - 50px);
|
|
}
|
|
</style>
|
|
<!-- <div class="comments hidden-xs">
|
|
<div class="commentwrapper">
|
|
<div class="panel panel-default ">
|
|
<div class="panel-body">
|
|
<p class="comment"><i>Please log in to view comments</i></p>
|
|
</div>
|
|
<div class="panel-footer">by w0bm ∞</div>
|
|
</div>
|
|
</div>
|
|
</div> -->
|
|
@endif
|