diff options
author | Tom Willemse | 2013-05-04 15:38:00 +0200 |
---|---|---|
committer | Tom Willemse | 2013-05-04 15:38:00 +0200 |
commit | 4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38 (patch) | |
tree | 6f4bcd29f656124482c32c94a36b734b1041579f /ui-repolist.c | |
parent | a6a932e198e8b6b564d7a4bb43e78078d8296026 (diff) | |
download | cgit-4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38.tar.gz cgit-4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38.zip |
Start bootstrapping cgit
Diffstat (limited to 'ui-repolist.c')
-rw-r--r-- | ui-repolist.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index dead1bf..cf64460 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -115,7 +115,6 @@ void print_header(int columns) html("<tr class='nohover'>"); print_sort_header("Name", "name"); print_sort_header("Description", "desc"); - print_sort_header("Owner", "owner"); print_sort_header("Idle", "idle"); if (ctx.cfg.enable_index_links) html("<th class='left'>Links</th>"); @@ -217,7 +216,6 @@ struct sortcolumn sortcolumn[] = { {"section", sort_section}, {"name", sort_name}, {"desc", sort_desc}, - {"owner", sort_owner}, {"idle", sort_idle}, {NULL, NULL} }; @@ -260,7 +258,7 @@ void cgit_print_repolist() else if (ctx.cfg.section_sort) sort_repolist("section"); - html("<table summary='repository list' class='list nowrap'>"); + html("<table summary='repository list' class='table table-condensed table-striped table-hover'>"); for (i=0; i<cgit_repolist.count; i++) { ctx.repo = &cgit_repolist.repos[i]; if (!(is_match(ctx.repo) && is_in_url(ctx.repo))) @@ -280,10 +278,10 @@ void cgit_print_repolist() (last_section != NULL && section == NULL) || (last_section != NULL && section != NULL && strcmp(section, last_section)))) { - htmlf("<tr class='nohover'><td colspan='%d' class='reposection'>", + htmlf("<tr class='nohover'><th colspan='%d' class='reposection'>", columns); html_txt(section); - html("</td></tr>"); + html("</th></tr>"); last_section = section; } htmlf("<tr><td class='%s'>", @@ -294,8 +292,6 @@ void cgit_print_repolist() html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc); html_link_close(); html("</td><td>"); - html_txt(ctx.repo->owner); - html("</td><td>"); print_modtime(ctx.repo); html("</td>"); if (ctx.cfg.enable_index_links) { |