I propose that expired news items be hidden by default, with a checkbox in the sidebar for showing them.
Created attachment 117213 [details] [review] Bug 27766: Hide expired news items by default This patch modifies the news page in the staff interface so that expired news items are hidden by default. A checkbox in the sidebar can be checked to show the hidden rows. To test you should have multiple news items, some expired and some unexpired. - Apply the patch and go to Tools -> News - The table of news items as it initially appears should not include any expired news items. - In the sidebar, check the "Show expired" checkbox. - The expired news items should now appear.
Created attachment 117214 [details] [review] Bug 27766: Hide expired news items by default This patch modifies the news page in the staff interface so that expired news items are hidden by default. A checkbox in the sidebar can be checked to show the hidden rows. To test you should have multiple news items, some expired and some unexpired. - Apply the patch and go to Tools -> News - The table of news items as it initially appears should not include any expired news items. - In the sidebar, check the "Show expired" checkbox. - The expired news items should now appear. Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Created attachment 117739 [details] [review] Bug 27766: Hide expired news items by default This patch modifies the news page in the staff interface so that expired news items are hidden by default. A checkbox in the sidebar can be checked to show the hidden rows. To test you should have multiple news items, some expired and some unexpired. - Apply the patch and go to Tools -> News - The table of news items as it initially appears should not include any expired news items. - In the sidebar, check the "Show expired" checkbox. - The expired news items should now appear. Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
I would have preferred to have it on top of the table, but not considering it blocker (can be argued it's in the filter block as well!).
Pushed to master for 21.05, thanks to everybody involved!
I like that. Should we consider backport to 20.11.x ?