summaryrefslogtreecommitdiff
path: root/cgit.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2007-02-17 12:46:18 +0000
committerLars Hjemli <hjemli@gmail.com>2007-02-20 23:24:36 +0000
commit66cacd053ba900c8eb3b7962027370c84a97f990 (patch)
tree9ccd8202204bf556a186ba1520a6c767756855bf /cgit.c
parentac70cb4795c90db02917db63d169b0fadfe9fb99 (diff)
downloadcgit-66cacd053ba900c8eb3b7962027370c84a97f990.tar
cgit-66cacd053ba900c8eb3b7962027370c84a97f990.tar.gz
cgit-66cacd053ba900c8eb3b7962027370c84a97f990.zip
Layout update
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/cgit.c b/cgit.c
index 7b7afba..fedf355 100644
--- a/cgit.c
+++ b/cgit.c
@@ -88,11 +88,20 @@ static void cgit_print_repo_page(struct cacheitem *item)
if (cgit_query_page && !strcmp(cgit_query_page, "log"))
show_search = 1;
+
cgit_print_docstart(title, item);
- cgit_print_pageheader(title, show_search);
+
+
if (!cgit_query_page) {
+ cgit_print_pageheader("summary", show_search);
cgit_print_summary();
- } else if (!strcmp(cgit_query_page, "log")) {
+ cgit_print_docend();
+ return;
+ }
+
+ cgit_print_pageheader(cgit_query_page, show_search);
+
+ if (!strcmp(cgit_query_page, "log")) {
cgit_print_log(cgit_query_head, cgit_query_ofs, 100,
cgit_query_search);
} else if (!strcmp(cgit_query_page, "tree")) {