server ver

This commit is contained in:
2021-04-16 20:41:48 +00:00
parent c9257dc357
commit 1b5088cde7
159 changed files with 3533 additions and 740 deletions

View File

@@ -0,0 +1,14 @@
<div class="panel @if($del = !is_null($comment->deleted_at)) panel-danger @else panel-default @endif">
<div class="panel-body">
@simplemd($comment->content)
</div>
<div class="panel-footer">by <a href="/user/{{$comment->user->username}}">{{$comment->user->username}}</a> <small>{{$comment->created_at->diffForHumans()}}</small>
@if($mod)
@if($del)
<a href="{{url('comment/' . $comment->id . '/restore')}}" class="btn btn-success">Restore</a>
@else
<a data-confirm="Do you really want to delete that comment?" class="btn btn-danger" href="{{url('comment/' . $comment->id . '/delete')}}">Delete</a>
@endif
@endif
</div>
</div>