aboutsummaryrefslogtreecommitdiffstats
path: root/cgitrc.5.txt
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2016-09-12 22:54:08 -0500
committerJohn Keeping <john@keeping.me.uk>2016-10-01 11:51:07 +0100
commit1a66e7f3c15bf8d0d5d1b198c6674911a213779e (patch)
tree23f5d14af44ad63e1a9ad8c615fe622a0d4b52fe /cgitrc.5.txt
parentui-repolist: provide hyperlinks on section names (diff)
downloadcgit-1a66e7f3c15bf8d0d5d1b198c6674911a213779e.tar.xz
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 '')
-rw-r--r--cgitrc.5.txt5
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