List for cgit developers and users
 help / color / mirror / Atom feed
* RFC: Hide/show inactive repos in index
@ 2016-06-03 13:46 mricon
  2016-06-03 15:15 ` Jason
  0 siblings, 1 reply; 2+ messages in thread
From: mricon @ 2016-06-03 13:46 UTC (permalink / raw)


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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RFC: Hide/show inactive repos in index
  2016-06-03 13:46 RFC: Hide/show inactive repos in index mricon
@ 2016-06-03 15:15 ` Jason
  0 siblings, 0 replies; 2+ messages in thread
From: Jason @ 2016-06-03 15:15 UTC (permalink / raw)


I'll try to hook this up to the lua scripting.

On holiday now in Japan, but I'll write more later when back at a real PC.
On Jun 3, 2016 10:46 PM, "Konstantin Ryabitsev" <mricon at kernel.org> wrote:

> 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
>
> _______________________________________________
> CGit mailing list
> CGit at lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/cgit
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20160604/463a2af9/attachment.html>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-03 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-03 13:46 RFC: Hide/show inactive repos in index mricon
2016-06-03 15:15 ` Jason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).