RFC: Hide/show inactive repos in index

Konstantin Ryabitsev mricon at kernel.org
Fri Jun 3 15:46:30 CEST 2016


Hi, all:

It would be handy to have a way to hide inactive repositories from the
main index -- say, the ones that haven't seen any activity in a few
years.

One solution is not to put older repositories into the projects.list,
but that would make them completely unfindable unless someone knows the
full path.

Another solution is to rig up some kind of jquery magic that would hide
the rows containing <span class='age-years' title='[date > 3years
ago]'>, but that sounds really hurky and would be fragile.

Maybe have a way to give a row a class "inactive" from a setting in the
repo's git config (or from a repo.foo cgitrc setting), and have a button
to "show/hide inactive projects" on the index page?

Thoughts?

Best,
-- 
Konstantin Ryabitsev
Linux Foundation Collab Projects
Montréal, Québec
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20160603/f4971eba/attachment.asc>


More information about the CGit mailing list