[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: Re: RFC: Hide/show inactive repos in index
From: "Jason A. Donenfeld" <Jason () zx2c4 ! com>
Date: 2016-06-03 15:15:16
Message-ID: CAHmME9oK7Jg1jPUzPRuX1rYosBmgaFEP7+dK5B_op123CMidZQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@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@lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/cgit
>
>
[Attachment #5 (text/html)]
<p dir="ltr">I'll try to hook this up to the lua scripting.</p>
<p dir="ltr">On holiday now in Japan, but I'll write more later when back at a \
real PC.</p> <div class="gmail_quote">On Jun 3, 2016 10:46 PM, "Konstantin \
Ryabitsev" <<a href="mailto:mricon@kernel.org">mricon@kernel.org</a>> \
wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, all:<br> <br>
It would be handy to have a way to hide inactive repositories from the<br>
main index -- say, the ones that haven't seen any activity in a few<br>
years.<br>
<br>
One solution is not to put older repositories into the projects.list,<br>
but that would make them completely unfindable unless someone knows the<br>
full path.<br>
<br>
Another solution is to rig up some kind of jquery magic that would hide<br>
the rows containing <span class='age-years' title='[date > \
3years<br> ago]'>, but that sounds really hurky and would be fragile.<br>
<br>
Maybe have a way to give a row a class "inactive" from a setting in the<br>
repo's git config (or from a repo.foo cgitrc setting), and have a button<br>
to "show/hide inactive projects" on the index page?<br>
<br>
Thoughts?<br>
<br>
Best,<br>
--<br>
Konstantin Ryabitsev<br>
Linux Foundation Collab Projects<br>
Montréal, Québec<br>
<br>_______________________________________________<br>
CGit mailing list<br>
<a href="mailto:CGit@lists.zx2c4.com">CGit@lists.zx2c4.com</a><br>
<a href="http://lists.zx2c4.com/mailman/listinfo/cgit" rel="noreferrer" \
target="_blank">http://lists.zx2c4.com/mailman/listinfo/cgit</a><br> \
<br></blockquote></div>
_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic