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.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/ui-summary.c b/ui-summary.c
index 5799773..5c1fc33 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -155,3 +155,3 @@ static int cgit_print_archive_cb(const char *refname, const unsigned char *sha1,
if (!header) {
- html("<table>");
+ html("<table id='downloads'>");
html("<tr><th>Downloads</th></tr>");
@@ -195,4 +195,4 @@ void cgit_print_summary()
{
- html("<table class='list nowrap'>");
- html("<tr class='nohover'><td id='summary' colspan='3'>");
+ html("<div id='summary'>");
+ cgit_print_archives();
html("<h2>");
@@ -202,5 +202,7 @@ void cgit_print_summary()
html("</h2>");
- html("</td><td id='archivelist'>");
- cgit_print_archives();
- html("</td></tr>");
+ if (cgit_repo->readme)
+ html_include(cgit_repo->readme);
+ html("</div>");
+
+ html("<table class='list nowrap'>");
cgit_print_branches();