server ver
This commit is contained in:
37
resources/views/layout7/partials/comments.blade.php
Executable file
37
resources/views/layout7/partials/comments.blade.php
Executable file
@@ -0,0 +1,37 @@
|
||||
@if(null === $banner)
|
||||
@else
|
||||
<div id="motd" class="panel panel-info hidden-xs">
|
||||
<a href="{{ $banner->url }}" target="_blank" rel="noopener">
|
||||
<div style="height: 50px; background-image:url('{{ $banner->image }}')" class="panel-body motd">
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(Auth::check())
|
||||
@if($video->id == '30186')
|
||||
@include('partials.thread_closed')
|
||||
@else
|
||||
@include('partials.commentform')
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<div 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>
|
Reference in New Issue
Block a user