forked from summerblue/larabbs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90e5cc7
commit 10b4594
Showing
11 changed files
with
116 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"/js/app.js": "/js/app.js?id=01f14ce060780bc99e14", | ||
"/css/app.css": "/css/app.css?id=a7473993888feff0b8e5" | ||
"/css/app.css": "/css/app.css?id=4e0ad8f00195f8911365" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,3 +136,16 @@ body { | |
} | ||
} | ||
} | ||
|
||
/* 回复列表 */ | ||
|
||
.topic-reply { | ||
a { | ||
color: inherit; | ||
} | ||
|
||
.meta { | ||
font-size: .9em; | ||
color: #b3b3b3; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<ul class="list-unstyled"> | ||
@foreach ($replies as $index => $reply) | ||
<li class=" media" name="reply{{ $reply->id }}" id="reply{{ $reply->id }}"> | ||
<div class="media-left"> | ||
<a href="{{ route('users.show', [$reply->user_id]) }}"> | ||
<img class="media-object img-thumbnail mr-3" alt="{{ $reply->user->name }}" src="{{ $reply->user->avatar }}" style="width:48px;height:48px;" /> | ||
</a> | ||
</div> | ||
|
||
<div class="media-body"> | ||
<div class="media-heading mt-0 mb-1 text-secondary"> | ||
<a href="{{ route('users.show', [$reply->user_id]) }}" title="{{ $reply->user->name }}"> | ||
{{ $reply->user->name }} | ||
</a> | ||
<span class="text-secondary"> • </span> | ||
<span class="meta text-secondary" title="{{ $reply->created_at }}">{{ $reply->created_at->diffForHumans() }}</span> | ||
|
||
{{-- 回复删除按钮 --}} | ||
<span class="meta float-right "> | ||
<a title="删除回复"> | ||
<i class="far fa-trash-alt"></i> | ||
</a> | ||
</span> | ||
</div> | ||
<div class="reply-content text-secondary"> | ||
{!! $reply->content !!} | ||
</div> | ||
</div> | ||
</li> | ||
|
||
@if ( ! $loop->last) | ||
<hr> | ||
@endif | ||
|
||
@endforeach | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@if (count($replies)) | ||
|
||
<ul class="list-group mt-4 border-0"> | ||
@foreach ($replies as $reply) | ||
<li class="list-group-item pl-2 pr-2 border-right-0 border-left-0 @if($loop->first) border-top-0 @endif"> | ||
<a href="{{ $reply->topic->link(['#reply' . $reply->id]) }}"> | ||
{{ $reply->topic->title }} | ||
</a> | ||
|
||
<div class="reply-content text-secondary mt-2 mb-2"> | ||
{!! $reply->content !!} | ||
</div> | ||
|
||
<div class="text-secondary" style="font-size:0.9em;"> | ||
<i class="far fa-clock"></i> 回复于 {{ $reply->created_at->diffForHumans() }} | ||
</div> | ||
</li> | ||
@endforeach | ||
</ul> | ||
|
||
@else | ||
<div class="empty-block">暂无数据 ~_~ </div> | ||
@endif | ||
|
||
{{-- 分页 --}} | ||
<div class="mt-4 pt-1"> | ||
{!! $replies->appends(Request::except('page'))->render() !!} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters