mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
user page: implement checkpoint
This commit is contained in:
@@ -51,13 +51,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card border-0 rounded-5 bg-body-tertiary p-4 mb-4">
|
||||
<div class="card border-0 rounded-5 bg-body-tertiary p-4 mb-4" id="checkpoint">
|
||||
<h2 class="h4 fw-bold mb-3">Category</h2>
|
||||
<div class="d-flex flex-wrap">
|
||||
{{- baseURL := "/users/" + .User.ID + "/" }}
|
||||
{{- paths := slice("", "illustrations", "manga", "novels", "bookmarks") }}
|
||||
{{- paths := slice("" + "#checkpoint", "illustrations" + "#checkpoint", "manga" + "#checkpoint", "novels" + "#checkpoint", "bookmarks" + "#checkpoint") }}
|
||||
{{- names := slice("All", "Illustrations", "Mangas", "Novels", "Bookmarks") }}
|
||||
{{- yield Switcher(baseURL=baseURL, paths=paths, names=names, activeState=.Category) }}
|
||||
{{- yield Switcher(baseURL=baseURL, paths=paths, names=names, activeState=.Category + "#checkpoint") }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user