|
@@ -89,12 +89,14 @@ class GetUser(Endpoint):
|
|
def html(self, slug: str):
|
|
def html(self, slug: str):
|
|
u = m.User.by_slug(slug)
|
|
u = m.User.by_slug(slug)
|
|
pg = int(flask.request.args.get("page", 1))
|
|
pg = int(flask.request.args.get("page", 1))
|
|
|
|
+ tags = u.get_tags()
|
|
links, pages = u.get_links(as_user=self.user, page=pg)
|
|
links, pages = u.get_links(as_user=self.user, page=pg)
|
|
|
|
+ linklist = v.LinkList(links=links, pages=pages, tags=tags)
|
|
return render(
|
|
return render(
|
|
"main",
|
|
"main",
|
|
v.Page(
|
|
v.Page(
|
|
title=f"user {u.name}",
|
|
title=f"user {u.name}",
|
|
- content=render("linklist", v.LinkList(links=links, pages=pages)),
|
|
|
|
|
|
+ content=render("linklist", linklist),
|
|
user=self.user,
|
|
user=self.user,
|
|
),
|
|
),
|
|
)
|
|
)
|