mirror of https://github.com/logos-co/open-law.git
issue First item of breadcrumbs to `username` instead of `user-library` #97
This commit is contained in:
parent
76f6fb7837
commit
802cf752e8
|
@ -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,
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue