]> granicus.if.org Git - cgit/commit
ui-repolist: Allow sections to be collapsible jk/collapsible-sections
authorAndy Doan <andy.doan@linaro.org>
Tue, 13 Sep 2016 03:54:08 +0000 (22:54 -0500)
committerJohn Keeping <john@keeping.me.uk>
Sat, 1 Oct 2016 10:51:07 +0000 (11:51 +0100)
commit1a66e7f3c15bf8d0d5d1b198c6674911a213779e
tree23f5d14af44ad63e1a9ad8c615fe622a0d4b52fe
parent84b158abe04ca37eb6e3038d3b63a9518714b66d
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 <andy.doan@linaro.org>
Reviewed-by: John Keeping <john@keeping.me.uk>
Signed-off-by: John Keeping <john@keeping.me.uk>
cgit.c
cgit.h
cgitrc.5.txt
scan-tree.c
shared.c
ui-repolist.c