mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
More HTML simplification.
This commit is contained in:
parent
2322de4900
commit
fa8b401927
1 changed files with 3 additions and 10 deletions
13
html.c
13
html.c
|
@ -509,7 +509,7 @@ xs_html *html_instance_head(void)
|
|||
}
|
||||
|
||||
|
||||
static xs_html *html_instance_body(char *title)
|
||||
static xs_html *html_instance_body(void)
|
||||
{
|
||||
char *host = xs_dict_get(srv_config, "host");
|
||||
char *sdesc = xs_dict_get(srv_config, "short_description");
|
||||
|
@ -560,13 +560,6 @@ static xs_html *html_instance_body(char *title)
|
|||
xs_html_text(handle)))));
|
||||
}
|
||||
|
||||
if (title != NULL) {
|
||||
xs_html_add(body,
|
||||
xs_html_tag("h2",
|
||||
xs_html_attr("class", "snac-header"),
|
||||
xs_html_text(title)));
|
||||
}
|
||||
|
||||
return body;
|
||||
}
|
||||
|
||||
|
@ -2023,7 +2016,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
|
|||
}
|
||||
else {
|
||||
head = html_instance_head();
|
||||
body = html_instance_body(title);
|
||||
body = html_instance_body();
|
||||
}
|
||||
|
||||
xs_html *html = xs_html_tag("html",
|
||||
|
@ -2034,7 +2027,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
|
|||
xs_html_add(body,
|
||||
html_top_controls(user));
|
||||
|
||||
if (user && title) {
|
||||
if (title) {
|
||||
xs_html_add(body,
|
||||
xs_html_tag("h2",
|
||||
xs_html_attr("class", "snac-header"),
|
||||
|
|
Loading…
Reference in a new issue