X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/237ef7b06d461ddf27b21cd13bfcb50befa4a916..1a63cfcc3d83919e790e7e279eb35fc75adb0e3c:/ui-summary.c diff --git a/ui-summary.c b/ui-summary.c index 5799773..15e8aec 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -153,18 +153,18 @@ static int cgit_print_archive_cb(const char *refname, const unsigned char *sha1, hashcpy(fileid, sha1); } if (!header) { - html(""); + html("
"); html(""); header = 1; } html(""); + html(""); return 0; } @@ -193,16 +193,18 @@ static void cgit_print_archives() void cgit_print_summary() { - html("
Downloads
"); url = cgit_pageurl(cgit_query_repo, "blob", - fmt("id=%s&path=%s", sha1_to_hex(fileid), + fmt("id=%s&path=%s", sha1_to_hex(fileid), buf)); html_link_open(url, NULL, NULL); html_txt(buf); html_link_close(); - html("
"); - html(""); + if (cgit_repo->readme) + html_include(cgit_repo->readme); + html(""); + + html("
"); + html("
"); + cgit_print_archives(); html("

"); html_txt(cgit_repo->name); html(" - "); html_txt(cgit_repo->desc); html("

"); - html("
"); - cgit_print_archives(); - html("
"); cgit_print_branches(); html(""); cgit_print_tags();