Add anchor link to "Created Content" on the "View Profile"

Add 3 anchor link to "Created Content" on the "View Profile" page and click to jump to the page section
This commit is contained in:
qianmengnet
2018-11-26 08:47:49 +08:00
parent 302b53562d
commit b7915cc7b0

View File

@ -37,21 +37,27 @@
</div> </div>
<div class="col-md-5 text-bigger" id="content-counts"> <div class="col-md-5 text-bigger" id="content-counts">
<div class="text-muted">{{ trans('entities.profile_created_content') }}</div> <div class="text-muted">{{ trans('entities.profile_created_content') }}</div>
<a href="#book">
<div class="text-book"> <div class="text-book">
@icon('book') {{ trans_choice('entities.x_books', $assetCounts['books']) }} @icon('book') {{ trans_choice('entities.x_books', $assetCounts['books']) }}
</div> </div>
</a>
<a href="#chapter">
<div class="text-chapter"> <div class="text-chapter">
@icon('chapter') {{ trans_choice('entities.x_chapters', $assetCounts['chapters']) }} @icon('chapter') {{ trans_choice('entities.x_chapters', $assetCounts['chapters']) }}
</div> </div>
</a>
<a href="#page">
<div class="text-page"> <div class="text-page">
@icon('page') {{ trans_choice('entities.x_pages', $assetCounts['pages']) }} @icon('page') {{ trans_choice('entities.x_pages', $assetCounts['pages']) }}
</div> </div>
</a>
</div> </div>
</div> </div>
<hr class="even"> <hr class="even">
<a name="page"></a>
<h3>{{ trans('entities.recently_created_pages') }}</h3> <h3>{{ trans('entities.recently_created_pages') }}</h3>
@if (count($recentlyCreated['pages']) > 0) @if (count($recentlyCreated['pages']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['pages']]) @include('partials/entity-list', ['entities' => $recentlyCreated['pages']])
@ -60,7 +66,7 @@
@endif @endif
<hr class="even"> <hr class="even">
<a name="chapter"></a>
<h3>{{ trans('entities.recently_created_chapters') }}</h3> <h3>{{ trans('entities.recently_created_chapters') }}</h3>
@if (count($recentlyCreated['chapters']) > 0) @if (count($recentlyCreated['chapters']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['chapters']]) @include('partials/entity-list', ['entities' => $recentlyCreated['chapters']])
@ -69,7 +75,7 @@
@endif @endif
<hr class="even"> <hr class="even">
<a name="book"></a>
<h3>{{ trans('entities.recently_created_books') }}</h3> <h3>{{ trans('entities.recently_created_books') }}</h3>
@if (count($recentlyCreated['books']) > 0) @if (count($recentlyCreated['books']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['books']]) @include('partials/entity-list', ['entities' => $recentlyCreated['books']])