Unidiff1 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) |
88 | |
88 | |
89 | if (cgit_query_page && !strcmp(cgit_query_page, "log")) |
89 | if (cgit_query_page && !strcmp(cgit_query_page, "log")) |
90 | show_search = 1; |
90 | show_search = 1; |
| |
91 | |
91 | cgit_print_docstart(title, item); |
92 | cgit_print_docstart(title, item); |
92 | cgit_print_pageheader(title, show_search); |
93 | |
| |
94 | |
93 | if (!cgit_query_page) { |
95 | if (!cgit_query_page) { |
| |
96 | cgit_print_pageheader("summary", show_search); |
94 | cgit_print_summary(); |
97 | cgit_print_summary(); |
95 | } else if (!strcmp(cgit_query_page, "log")) { |
98 | cgit_print_docend(); |
| |
99 | return; |
| |
100 | } |
| |
101 | |
| |
102 | cgit_print_pageheader(cgit_query_page, show_search); |
| |
103 | |
| |
104 | if (!strcmp(cgit_query_page, "log")) { |
96 | cgit_print_log(cgit_query_head, cgit_query_ofs, 100, |
105 | cgit_print_log(cgit_query_head, cgit_query_ofs, 100, |
97 | cgit_query_search); |
106 | cgit_query_search); |
98 | } else if (!strcmp(cgit_query_page, "tree")) { |
107 | } else if (!strcmp(cgit_query_page, "tree")) { |
|