-rw-r--r-- | ui-repolist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 8724589..33e3e7f 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -9,24 +9,29 @@ | |||
9 | #include "cgit.h" | 9 | #include "cgit.h" |
10 | 10 | ||
11 | void cgit_print_repolist(struct cacheitem *item) | 11 | void cgit_print_repolist(struct cacheitem *item) |
12 | { | 12 | { |
13 | struct repoinfo *repo; | 13 | struct repoinfo *repo; |
14 | int i; | 14 | int i; |
15 | char *last_group = NULL; | 15 | char *last_group = NULL; |
16 | 16 | ||
17 | cgit_print_docstart(cgit_root_title, item); | 17 | cgit_print_docstart(cgit_root_title, item); |
18 | cgit_print_pageheader(cgit_root_title, 0); | 18 | cgit_print_pageheader(cgit_root_title, 0); |
19 | 19 | ||
20 | html("<table class='list nowrap'>"); | 20 | html("<table class='list nowrap'>"); |
21 | if (cgit_index_header) { | ||
22 | html("<tr class='nohover'><td colspan='4' class='include-block'>"); | ||
23 | html_include(cgit_index_header); | ||
24 | html("</td></tr>"); | ||
25 | } | ||
21 | html("<tr class='nohover'>" | 26 | html("<tr class='nohover'>" |
22 | "<th class='left'>Name</th>" | 27 | "<th class='left'>Name</th>" |
23 | "<th class='left'>Description</th>" | 28 | "<th class='left'>Description</th>" |
24 | "<th class='left'>Owner</th>" | 29 | "<th class='left'>Owner</th>" |
25 | "<th class='left'>Links</th></tr>\n"); | 30 | "<th class='left'>Links</th></tr>\n"); |
26 | 31 | ||
27 | for (i=0; i<cgit_repolist.count; i++) { | 32 | for (i=0; i<cgit_repolist.count; i++) { |
28 | repo = &cgit_repolist.repos[i]; | 33 | repo = &cgit_repolist.repos[i]; |
29 | if ((last_group == NULL && repo->group != NULL) || | 34 | if ((last_group == NULL && repo->group != NULL) || |
30 | (last_group != NULL && repo->group == NULL) || | 35 | (last_group != NULL && repo->group == NULL) || |
31 | (last_group != NULL && repo->group!= NULL && | 36 | (last_group != NULL && repo->group!= NULL && |
32 | strcmp(repo->group, last_group))) { | 37 | strcmp(repo->group, last_group))) { |