diff options
author | Andy Doan <andy.doan@linaro.org> | 2016-09-13 03:54:08 +0000 |
---|---|---|
committer | John Keeping <john@keeping.me.uk> | 2016-10-01 10:51:07 +0000 |
commit | 1a66e7f3c15bf8d0d5d1b198c6674911a213779e (patch) | |
tree | 23f5d14af44ad63e1a9ad8c615fe622a0d4b52fe /cgitrc.5.txt | |
parent | 84b158abe04ca37eb6e3038d3b63a9518714b66d (diff) | |
download | cgit-1a66e7f3c15bf8d0d5d1b198c6674911a213779e.tar cgit-1a66e7f3c15bf8d0d5d1b198c6674911a213779e.tar.gz cgit-1a66e7f3c15bf8d0d5d1b198c6674911a213779e.zip |
ui-repolist: Allow sections to be collapsiblejk/collapsible-sections
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 <andy.doan@linaro.org>
Reviewed-by: John Keeping <john@keeping.me.uk>
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'cgitrc.5.txt')
-rw-r--r-- | cgitrc.5.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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 |