From s.maddox@lantizia.me.uk Thu Jan 2 23:16:28 2020 From: Steven Maddox To: mailman-users@mailman3.org Subject: [MM3-users] Mark a list to prevent it being shown as inactive on HyperKitty Date: Thu, 02 Jan 2020 23:16:22 +0000 Message-ID: <9ea8d129-9b31-79b6-4a7b-e2bb252551cf@lantizia.me.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1407391900363274012==" --===============1407391900363274012== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Lo Folks, Subject says it all really, is there anyway to mark a list as one which should never be shown as inactive on the HyperKitty web interface? We've got a list which we consider to be "active", it's just that there might be the odd month here or there which it won't show activity. Failing having such a setting (as described above)... maybe there is a way of changing what it considers to be 'inactive' (I'm assuming that it is 30 days?). At the moment (in order to counteract commit 156f4cda) I've dropped this into templates/hyperkitty/bottom.html to uncheck the "Hide Inactive" checkbox... but that doesn't actually stop HyperKitty from considering it inactive - just shows it in dark grey. -- Steven Maddox Lantizia --===============1407391900363274012==-- From maxking@asynchronous.in Fri Jan 3 20:59:52 2020 From: Abhilash Raj To: mailman-users@mailman3.org Subject: [MM3-users] Re: Mark a list to prevent it being shown as inactive on HyperKitty Date: Fri, 03 Jan 2020 12:59:23 -0800 Message-ID: <91238e1f-9ce9-4be4-9a28-9a5147d8efad@www.fastmail.com> In-Reply-To: <9ea8d129-9b31-79b6-4a7b-e2bb252551cf@lantizia.me.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7484695378600747176==" --===============7484695378600747176== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 2, 2020, at 3:16 PM, Steven Maddox wrote: > Lo Folks,=09 > =09 > Subject says it all really, is there anyway to mark a list as one which > should never be shown as inactive on the HyperKitty web interface?=09 > =09 > We've got a list which we consider to be "active", it's just that there > might be the odd month here or there which it won't show activity.=09 > =09 > Failing having such a setting (as described above)... maybe there is a > way of changing what it considers to be 'inactive' (I'm assuming that it > is 30 days?).=09 > =09 > At the moment (in order to counteract commit 156f4cda) I've dropped this > into templates/hyperkitty/bottom.html to uncheck the "Hide Inactive" > checkbox... but that doesn't actually stop HyperKitty from considering > it inactive - just shows it in dark grey.=09 > =09 > =09 Firstly, I think this is something that should be configurable by the adminis= trator. To show or hide the inactive lists by default. I have created an issu= e for this: https://gitlab.com/mailman/hyperkitty/issues/276 On to your question, there is currently no way to change what is considered a= n inactive list, without changing the source code of couse. The current logic to determine if a list is inactive is based on whether it h= ad any posts in "recent date" (search for "inactive" keyword in templates/hyp= erkitty/index.html and you'll find the logic to add an "inactive" class to th= e UI elements of the list).=20 What is considered a "recent date" is defined as 32 days in hyperkitty/models= /mailinglist.py#L112[1]. I think it would be reasonable to make this configur= able too, although, it would affect more things than just the list of inactiv= e lists. For example, the "Recent threads" on the MailingList's info page is = calculated based on these dates. [1]: https://gitlab.com/mailman/hyperkitty/blob/master/hyperkitty/models/mail= inglist.py#L107=20 --=20 thanks, Abhilash Raj (maxking) --===============7484695378600747176==--