diff options
| Commit | f064acfd6071241f2dc9a3741d713e97aeb84a6e (patch) | |
|---|---|---|
| Author | 2026-10-03 11:19:32 +0300 | |
| Committer | 2026-10-04 12:00:00 +0300 | |
| Files | b64623aa534095b9884089c9e7584195b6e5dd08 | |
| cgit-f064acfd6071241f2dc9a3741d713e97aeb84a6e.tar cgit-f064acfd6071241f2dc9a3741d713e97aeb84a6e.tar.gz cgit-f064acfd6071241f2dc9a3741d713e97aeb84a6e.zip | ||
| Parent | 880351bd0ba746bbf276425341598afa905d552f (diff) | |
ui-repolist: Show logo next to repo
1 files changed, 6 insertions, 0 deletions
| -rw-r--r-- | ui-repolist.c | 6 |
diff --git a/ui-repolist.c b/ui-repolist.c index 1b224cf..87fc40c 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -321,6 +321,12 @@ void cgit_print_repolist(void) } htmlf("<tr><td class='%s'>", !sorted && section ? "sublevel-repo" : "toplevel-repo"); + html("<img src='"); + if (ctx.repo->logo && *ctx.repo->logo) + html_attr(ctx.repo->logo); + else + html_attr(ctx.cfg.logo); + html("' /> "); cgit_summary_link(ctx.repo->name, NULL, NULL, NULL); html("</td><td>"); repourl = cgit_repourl(ctx.repo->url); |
