aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cgit.css17
-rw-r--r--ui-repolist.c6
2 files changed, 21 insertions, 2 deletions
diff --git a/cgit.css b/cgit.css
index c638d15..6d166d5 100644
--- a/cgit.css
+++ b/cgit.css
@@ -641,10 +641,25 @@ div#cgit table.list td.reposection {
font-style: italic;
color: #dc1aed;
padding-top: 1em;
- padding-bottom: 0.5em;
background-color: #222;
}
+div#cgit table.list td.reposectionsingle {
+ font-style: italic;
+ color: #dc1aed;
+ padding-top: 1em;
+ padding-bottom: 1rem;
+ background-color: #222;
+}
+
+div#cgit table.list td.reposectiondesc {
+ color: #777;
+ padding-left: 1rem;
+ padding-bottom: 1rem;
+ background-color: #222;
+ font-size: 85%;
+}
+
div#cgit a.button {
font-size: 80%;
padding: 0em 0.5em;
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>");