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
94af965
commit cece852
Showing
4 changed files
with
56 additions
and
12 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
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,25 @@ | ||
@if (count($topics)) | ||
|
||
<ul class="list-group mt-4 border-0"> | ||
@foreach ($topics as $topic) | ||
<li class="list-group-item pl-2 pr-2 border-right-0 border-left-0 @if($loop->first) border-top-0 @endif"> | ||
<a class="text-decoration-none" href="{{ route('topics.show', $topic->id) }}"> | ||
{{ $topic->title }} | ||
</a> | ||
<span class="meta float-right text-secondary"> | ||
{{ $topic->reply_count }} 回复 | ||
<span> ⋅ </span> | ||
{{ $topic->created_at->diffForHumans() }} | ||
</span> | ||
</li> | ||
@endforeach | ||
</ul> | ||
|
||
@else | ||
<div class="empty-block">暂无数据 ~_~ </div> | ||
@endif | ||
|
||
{{-- 分页 --}} | ||
<div class="mt-4 pt-1"> | ||
{!! $topics->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