-rw-r--r-- | ui-repolist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index eeeaf3d..9eba222 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -57,33 +57,33 @@ void cgit_print_repolist() | |||
57 | cgit_print_docstart(&ctx); | 57 | cgit_print_docstart(&ctx); |
58 | cgit_print_pageheader(&ctx); | 58 | cgit_print_pageheader(&ctx); |
59 | 59 | ||
60 | html("<table summary='repository list' class='list nowrap'>"); | 60 | html("<table summary='repository list' class='list nowrap'>"); |
61 | if (ctx.cfg.index_header) { | 61 | if (ctx.cfg.index_header) { |
62 | htmlf("<tr class='nohover'><td colspan='%d' class='include-block'>", | 62 | htmlf("<tr class='nohover'><td colspan='%d' class='include-block'>", |
63 | columns); | 63 | columns); |
64 | html_include(ctx.cfg.index_header); | 64 | html_include(ctx.cfg.index_header); |
65 | html("</td></tr>"); | 65 | html("</td></tr>"); |
66 | } | 66 | } |
67 | html("<tr class='nohover'>" | 67 | html("<tr class='nohover'>" |
68 | "<th class='left'>Name</th>" | 68 | "<th class='left'>Name</th>" |
69 | "<th class='left'>Description</th>" | 69 | "<th class='left'>Description</th>" |
70 | "<th class='left'>Owner</th>" | 70 | "<th class='left'>Owner</th>" |
71 | "<th class='left'>Idle</th>"); | 71 | "<th class='left'>Idle</th>"); |
72 | if (ctx.cfg.enable_index_links) | 72 | if (ctx.cfg.enable_index_links) |
73 | html("<th>Links</th>"); | 73 | html("<th class='left'>Links</th>"); |
74 | html("</tr>\n"); | 74 | html("</tr>\n"); |
75 | 75 | ||
76 | for (i=0; i<cgit_repolist.count; i++) { | 76 | for (i=0; i<cgit_repolist.count; i++) { |
77 | ctx.repo = &cgit_repolist.repos[i]; | 77 | ctx.repo = &cgit_repolist.repos[i]; |
78 | if ((last_group == NULL && ctx.repo->group != NULL) || | 78 | if ((last_group == NULL && ctx.repo->group != NULL) || |
79 | (last_group != NULL && ctx.repo->group == NULL) || | 79 | (last_group != NULL && ctx.repo->group == NULL) || |
80 | (last_group != NULL && ctx.repo->group != NULL && | 80 | (last_group != NULL && ctx.repo->group != NULL && |
81 | strcmp(ctx.repo->group, last_group))) { | 81 | strcmp(ctx.repo->group, last_group))) { |
82 | htmlf("<tr class='nohover'><td colspan='%d' class='repogroup'>", | 82 | htmlf("<tr class='nohover'><td colspan='%d' class='repogroup'>", |
83 | columns); | 83 | columns); |
84 | html_txt(ctx.repo->group); | 84 | html_txt(ctx.repo->group); |
85 | html("</td></tr>"); | 85 | html("</td></tr>"); |
86 | last_group = ctx.repo->group; | 86 | last_group = ctx.repo->group; |
87 | } | 87 | } |
88 | htmlf("<tr><td class='%s'>", | 88 | htmlf("<tr><td class='%s'>", |
89 | ctx.repo->group ? "sublevel-repo" : "toplevel-repo"); | 89 | ctx.repo->group ? "sublevel-repo" : "toplevel-repo"); |