issue First item of breadcrumbs to `username` instead of `user-library` #97

This commit is contained in:
Kostiantyn Stoliarskyi 2023-05-31 15:47:59 +03:00
parent 76f6fb7837
commit 802cf752e8
1 changed files with 4 additions and 4 deletions

View File

@ -41,8 +41,8 @@ def create_breadcrumbs(
crumples += [
s.BreadCrumb(
type=s.BreadCrumbType.MyBookList,
url=url_for("book.my_library"),
label="My Books",
url=url_for("user.profile", user_id=current_user.id),
label="Me",
)
]
else:
@ -50,8 +50,8 @@ def create_breadcrumbs(
crumples += [
s.BreadCrumb(
type=s.BreadCrumbType.AuthorBookList,
url="",
label=book.owner.username + "'s books",
url=url_for("user.profile", user_id=book.owner.id),
label=book.owner.username,
)
]