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