1 /* ui-repolist.c: functions for generating the repolist page
3 * Copyright (C) 2006 Lars Hjemli
5 * Licensed under GNU General Public License v2
6 * (see COPYING for full license text)
11 void cgit_print_repolist(struct cacheitem *item)
13 struct repoinfo *repo;
16 cgit_print_docstart(cgit_root_title, item);
17 cgit_print_pageheader(cgit_root_title, 0);
19 html("<h2>Repositories</h2>\n");
20 html("<table class='list nowrap'>");
21 html("<tr class='nohover'>"
22 "<th class='left'>Name</th>"
23 "<th class='left'>Description</th>"
24 "<th class='left'>Owner</th></tr>\n");
26 for (i=0; i<cgit_repolist.count; i++) {
27 repo = &cgit_repolist.repos[i];
29 html_link_open(cgit_repourl(repo->url), NULL, NULL);
35 html_txt(repo->owner);