diff options
| author | 2024-05-31 11:24:39 +0200 | |
|---|---|---|
| committer | 2024-05-31 11:24:39 +0200 | |
| commit | affab3ab3c6120cb08cc3c649cc1f16698cea679 (patch) | |
| tree | eff571d9370d41461fc0745a4176fe8ea7725265 /html.c | |
| parent | Merge branch 'master' of grunfink-codeberg:grunfink/snac2 (diff) | |
| download | penes-snac2-affab3ab3c6120cb08cc3c649cc1f16698cea679.tar.gz penes-snac2-affab3ab3c6120cb08cc3c649cc1f16698cea679.tar.xz penes-snac2-affab3ab3c6120cb08cc3c649cc1f16698cea679.zip | |
Minor tweaks.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -795,12 +795,14 @@ static xs_html *html_user_body(snac *user, int read_only) | |||
| 795 | 795 | ||
| 796 | const t_announcement *an = announcement(la); | 796 | const t_announcement *an = announcement(la); |
| 797 | if (an != NULL && (an->text != NULL)) { | 797 | if (an != NULL && (an->text != NULL)) { |
| 798 | xs *s = xs_fmt("?da=%.0f", an->timestamp); | ||
| 799 | |||
| 798 | xs_html_add(top_user, xs_html_tag("div", | 800 | xs_html_add(top_user, xs_html_tag("div", |
| 799 | xs_html_attr("class", "snac-announcement"), | 801 | xs_html_attr("class", "snac-announcement"), |
| 800 | xs_html_text(an->text), | 802 | xs_html_text(an->text), |
| 801 | xs_html_text(" "), | 803 | xs_html_text(" "), |
| 802 | xs_html_sctag("a", | 804 | xs_html_sctag("a", |
| 803 | xs_html_attr("href", xs_dup(xs_fmt("?da=%.0f", an->timestamp)))), | 805 | xs_html_attr("href", s)), |
| 804 | xs_html_text("Dismiss"))); | 806 | xs_html_text("Dismiss"))); |
| 805 | } | 807 | } |
| 806 | 808 | ||