From de69ce020c4ccd7146d6ac72bbd8f417088e8c03 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sat, 19 May 2007 00:00:25 +0200 Subject: Teach cgit howto include an external file on index page. The new parameter index-header can be used to name an external file which will be included verbatim at the top of the index page. Signed-off-by: Lars Hjemli --- ui-repolist.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui-repolist.c') diff --git a/ui-repolist.c b/ui-repolist.c index d7311e4..8e367a2 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -17,6 +17,11 @@ void cgit_print_repolist(struct cacheitem *item) cgit_print_pageheader(cgit_root_title, 0); html(""); + if (cgit_index_header) { + html(""); + } html("" "" "" -- cgit v1.2.3-70-g09d2
"); + html_include(cgit_index_header); + html("
NameDescription