summaryrefslogtreecommitdiffabout
path: root/ui-summary.c
Side-by-side diff
Diffstat (limited to 'ui-summary.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-summary.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui-summary.c b/ui-summary.c
index ff3ed4d..42f4300 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -84,56 +84,58 @@ static int cgit_print_tag_cb(const char *refname, const unsigned char *sha1,
if (!tag || parse_tag(tag) || !(info = cgit_parse_tag(tag)))
return 2;
html("<tr><td>");
url = cgit_pageurl(cgit_query_repo, "view",
fmt("id=%s", sha1_to_hex(sha1)));
html_link_open(url, NULL, NULL);
html_txt(buf);
html_link_close();
html("</td><td>");
if (info->tagger_date > 0)
cgit_print_date(info->tagger_date);
html("</td><td>");
if (info->tagger)
html(info->tagger);
html("</td><td>");
cgit_print_object_ref(tag->tagged);
html("</td></tr>\n");
} else {
html("<tr><td>");
html_txt(buf);
html("</td><td colspan='2'/><td>");
cgit_print_object_ref(obj);
html("</td></tr>\n");
}
return 0;
}
static void cgit_print_branches()
{
html("<tr class='nohover'><th class='left'>Branch</th>"
"<th class='left'>Updated</th>"
"<th class='left'>Author</th>"
"<th class='left'>Head commit</th></tr>\n");
for_each_branch_ref(cgit_print_branch_cb, NULL);
}
static void cgit_print_tags()
{
html("<tr class='nohover'><th class='left'>Tag</th>"
"<th class='left'>Created</th>"
"<th class='left'>Author</th>"
"<th class='left'>Reference</th></tr>\n");
for_each_tag_ref(cgit_print_tag_cb, NULL);
}
void cgit_print_summary()
{
html("<h2>");
- html_txt("Repo summary page");
- html("</h2>");
+ html(cgit_repo->name);
+ html("</h2><h3>");
+ html(cgit_repo->desc);
+ html("</h3>");
html("<table class='list nowrap'>");
cgit_print_branches();
html("<tr class='nohover'><td colspan='4'>&nbsp;</td></tr>");
cgit_print_tags();
html("</table>");
}