diff options
| author | 2024-05-24 12:31:41 +0200 | |
|---|---|---|
| committer | 2024-05-24 12:31:41 +0200 | |
| commit | bd4511e7c50cc92739d2762cd9d69ebc8d0b8e94 (patch) | |
| tree | 6a6a2bce7edb142cea8cfada11e1f9ee121f7a1d /html.c | |
| parent | Minor list show tweaks. (diff) | |
| download | penes-snac2-bd4511e7c50cc92739d2762cd9d69ebc8d0b8e94.tar.gz penes-snac2-bd4511e7c50cc92739d2762cd9d69ebc8d0b8e94.tar.xz penes-snac2-bd4511e7c50cc92739d2762cd9d69ebc8d0b8e94.zip | |
Show 'Nothing found for tag' message.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -2631,7 +2631,8 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 2631 | } | 2631 | } |
| 2632 | 2632 | ||
| 2633 | xs *page = xs_fmt("/admin?q=%%23%s", q + 1); | 2633 | xs *page = xs_fmt("/admin?q=%%23%s", q + 1); |
| 2634 | xs *title = xs_fmt(L("Search results for tag %s"), q); | 2634 | xs *title = xs_fmt(xs_list_len(tl) ? |
| 2635 | L("Search results for tag %s") : L("Nothing found for tag %s"), q); | ||
| 2635 | 2636 | ||
| 2636 | *body = html_timeline(&snac, tl, 0, skip, show, more, title, page, 0); | 2637 | *body = html_timeline(&snac, tl, 0, skip, show, more, title, page, 0); |
| 2637 | *b_size = strlen(*body); | 2638 | *b_size = strlen(*body); |