commit bd4511e
default
·
2024-05-24 10:31:41 +0000 UTC
parent 8ebad8d
Show 'Nothing found for tag' message.
1 files changed,
+2,
-1
M
html.c
M
html.c
+2,
-1
1@@ -2631,7 +2631,8 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2 }
3
4 xs *page = xs_fmt("/admin?q=%%23%s", q + 1);
5- xs *title = xs_fmt(L("Search results for tag %s"), q);
6+ xs *title = xs_fmt(xs_list_len(tl) ?
7+ L("Search results for tag %s") : L("Nothing found for tag %s"), q);
8
9 *body = html_timeline(&snac, tl, 0, skip, show, more, title, page, 0);
10 *b_size = strlen(*body);