X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/aee39b4e9a45e1ba507c0017de50bb9dbbae7af8..00ecfaadea2c40cc62b7a43e246384329e6ddb98:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index c50b3e6..baea6f2 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -673,7 +673,7 @@ const struct date_mode *cgit_date_mode(enum date_mode_type type) static void print_rel_date(time_t t, int tz, double value, const char *class, const char *suffix) { - htmlf("%.0f %s", value, suffix); } @@ -770,6 +770,10 @@ static void print_rel_vcs_link(const char *url) static int emit_css_link(struct string_list_item *s, void *arg) { + /* Do not emit anything if css= is specified. */ + if (s && *s->string == '\0') + return 0; + html("