From 1a66e7f3c15bf8d0d5d1b198c6674911a213779e Mon Sep 17 00:00:00 2001 From: Andy Doan Date: Mon, 12 Sep 2016 22:54:08 -0500 Subject: ui-repolist: Allow sections to be collapsible The index page can be difficult to navigate for really large git servers. This change allows a configuration like: section-collapse=people section-collapse=tests And an index page would only display the "people" and "tests" section headers entries (not their repos) with a hyperlink that can be used to drill down into each section. Additionally the boolean logic around displaying sections in ui-repolist.c was simplified to eliminate an impossible condition. Signed-off-by: Andy Doan Reviewed-by: John Keeping Signed-off-by: John Keeping --- cgitrc.5.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cgitrc.5.txt') diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 9fcf445..2762657 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt @@ -404,6 +404,11 @@ section:: after this option will inherit the current section name. Default value: none. +section-collapse:: + Name of a section to "collapse" and not display on the index page. + Multiple config entries can be specified and each one will be + collapsed. + section-sort:: Flag which, when set to "1", will sort the sections on the repository listing by name. Set this flag to "0" if the order in the cgitrc file should -- cgit v1.2.3-59-g8ed1b