aboutsummaryrefslogtreecommitdiffstats
path: root/ui-repolist.c
diff options
context:
space:
mode:
authorAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-15 11:13:17 +0200
committerAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-15 11:13:17 +0200
commitfc0c82f583075cddd823b61d8dfca0c272e0b0c2 (patch)
treed8d07ee744921986e3001d7132157981453233f2 /ui-repolist.c
parentae880cb54f43744225768c035bf5a97dc859d4c0 (diff)
downloadcgit-fc0c82f583075cddd823b61d8dfca0c272e0b0c2.tar.gz
cgit-fc0c82f583075cddd823b61d8dfca0c272e0b0c2.tar.bz2
cgit-fc0c82f583075cddd823b61d8dfca0c272e0b0c2.zip
Added fixes for the new section description feature
Diffstat (limited to 'ui-repolist.c')
-rw-r--r--ui-repolist.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index 265d450..ed6f12c 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -313,7 +313,11 @@ void cgit_print_repolist(void)
(last_section != NULL && section == NULL) ||
(last_section != NULL && section != NULL &&
strcmp(section, last_section)))) {
- htmlf("<tr class='nohover-highlight'><td colspan='%d' class='reposection'>",
+ if(ctx.repo->section_desc != NULL)
+ htmlf("<tr class='nohover-highlight'><td colspan='%d' class='reposection'>",
+ columns);
+ else
+ htmlf("<tr class='nohover-highlight'><td colspan='%d' class='reposectionsingle'>",
columns);
html_txt(section);
html("</td></tr>");