-rw-r--r-- | ui-repolist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 8ade91a..2018dab 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -60,41 +60,39 @@ void cgit_print_repolist(struct cacheitem *item) | |||
60 | "<th class='left'>Name</th>" | 60 | "<th class='left'>Name</th>" |
61 | "<th class='left'>Description</th>" | 61 | "<th class='left'>Description</th>" |
62 | "<th class='left'>Owner</th>" | 62 | "<th class='left'>Owner</th>" |
63 | "<th class='left'>Idle</th>" | 63 | "<th class='left'>Idle</th>" |
64 | "<th>Links</th></tr>\n"); | 64 | "<th>Links</th></tr>\n"); |
65 | 65 | ||
66 | for (i=0; i<cgit_repolist.count; i++) { | 66 | for (i=0; i<cgit_repolist.count; i++) { |
67 | cgit_repo = &cgit_repolist.repos[i]; | 67 | cgit_repo = &cgit_repolist.repos[i]; |
68 | if ((last_group == NULL && cgit_repo->group != NULL) || | 68 | if ((last_group == NULL && cgit_repo->group != NULL) || |
69 | (last_group != NULL && cgit_repo->group == NULL) || | 69 | (last_group != NULL && cgit_repo->group == NULL) || |
70 | (last_group != NULL && cgit_repo->group != NULL && | 70 | (last_group != NULL && cgit_repo->group != NULL && |
71 | strcmp(cgit_repo->group, last_group))) { | 71 | strcmp(cgit_repo->group, last_group))) { |
72 | html("<tr class='nohover'><td colspan='4' class='repogroup'>"); | 72 | html("<tr class='nohover'><td colspan='4' class='repogroup'>"); |
73 | html_txt(cgit_repo->group); | 73 | html_txt(cgit_repo->group); |
74 | html("</td></tr>"); | 74 | html("</td></tr>"); |
75 | last_group = cgit_repo->group; | 75 | last_group = cgit_repo->group; |
76 | } | 76 | } |
77 | htmlf("<tr><td class='%s'>", | 77 | htmlf("<tr><td class='%s'>", |
78 | cgit_repo->group ? "sublevel-repo" : "toplevel-repo"); | 78 | cgit_repo->group ? "sublevel-repo" : "toplevel-repo"); |
79 | html_link_open(cgit_repourl(cgit_repo->url), NULL, NULL); | 79 | html_link_open(cgit_repourl(cgit_repo->url), NULL, NULL); |
80 | html_txt(cgit_repo->name); | 80 | html_txt(cgit_repo->name); |
81 | html_link_close(); | 81 | html_link_close(); |
82 | html("</td><td>"); | 82 | html("</td><td>"); |
83 | html_ntxt(cgit_max_repodesc_len, cgit_repo->desc); | 83 | html_ntxt(cgit_max_repodesc_len, cgit_repo->desc); |
84 | html("</td><td>"); | 84 | html("</td><td>"); |
85 | html_txt(cgit_repo->owner); | 85 | html_txt(cgit_repo->owner); |
86 | html("</td><td>"); | 86 | html("</td><td>"); |
87 | print_modtime(cgit_repo); | 87 | print_modtime(cgit_repo); |
88 | html("</td><td>"); | 88 | html("</td><td>"); |
89 | html_link_open(cgit_repourl(cgit_repo->url), | 89 | html_link_open(cgit_repourl(cgit_repo->url), |
90 | "Summary", "button"); | 90 | "Summary", "button"); |
91 | html("S</a>"); | 91 | html("S</a>"); |
92 | html_link_open(cgit_pageurl(cgit_repo->name, "log", NULL), | 92 | cgit_log_link("L", "Log", "button", NULL, NULL, NULL); |
93 | "Log", "button"); | ||
94 | html("L</a>"); | ||
95 | cgit_tree_link("F", "Files", "button", NULL, NULL, NULL); | 93 | cgit_tree_link("F", "Files", "button", NULL, NULL, NULL); |
96 | html("</td></tr>\n"); | 94 | html("</td></tr>\n"); |
97 | } | 95 | } |
98 | html("</table>"); | 96 | html("</table>"); |
99 | cgit_print_docend(); | 97 | cgit_print_docend(); |
100 | } | 98 | } |