commit ad20518bf7b7f5d4bf9238f7e87fe633a76adb74
parent 8969fb6ad55d4ae4ac168b22c272a7228e5f263b
Author: Santtu Lakkala <inz@inz.fi>
Date: Fri, 31 Jan 2025 14:04:19 +0200
Add ids to nav links
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/html.c b/html.c
@@ -900,10 +900,12 @@ static xs_html *html_user_body(snac *user, int read_only)
xs_html_add(top_nav,
xs_html_tag("a",
xs_html_attr("href", rss_url),
+ xs_html_attr("id", "rss"),
xs_html_text(L("RSS"))),
xs_html_text(" - "),
xs_html_tag("a",
xs_html_attr("href", admin_url),
+ xs_html_attr("id", "private"),
xs_html_attr("rel", "nofollow"),
xs_html_text(L("private"))));
}
@@ -940,24 +942,29 @@ static xs_html *html_user_body(snac *user, int read_only)
xs_html_add(top_nav,
xs_html_tag("a",
xs_html_attr("href", user->actor),
+ xs_html_attr("id", "public"),
xs_html_text(L("public"))),
xs_html_text(" - "),
xs_html_tag("a",
xs_html_attr("href", admin_url),
+ xs_html_attr("id", "private"),
xs_html_text(L("private"))),
xs_html_text(" - "),
xs_html_tag("a",
xs_html_attr("href", notify_url),
+ xs_html_attr("id", "notifications"),
xs_html_text(L("notifications"))),
notify_count,
xs_html_text(" - "),
xs_html_tag("a",
xs_html_attr("href", people_url),
+ xs_html_attr("id", "people"),
xs_html_text(L("people"))),
pending_follow_count,
xs_html_text(" - "),
xs_html_tag("a",
xs_html_attr("href", instance_url),
+ xs_html_attr("id", "instance"),
xs_html_text(L("instance"))),
xs_html_text(" "),
xs_html_tag("form",