* [bug#40157] [PATCH] hydra: Display the IRC logs in reverse chronological order.
@ 2020-03-20 21:43 Leo Famulari
2020-03-22 11:43 ` Ricardo Wurmus
0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2020-03-20 21:43 UTC (permalink / raw)
To: 40157; +Cc: rekado
I think that people usually want to read the latest logs, which
currently requires a lot of scrolling.
* hydra/goggles.scm (index): Reverse the list of log files.
---
hydra/goggles.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hydra/goggles.scm b/hydra/goggles.scm
index 169b3c3..884c8df 100644
--- a/hydra/goggles.scm
+++ b/hydra/goggles.scm
@@ -181,9 +181,9 @@ freenode." channel))
(ul
,@(map (lambda (file)
`(li (a (@ (href ,(string-append "/" channel "/" file))) ,file)))
- (or (scandir (string-append %log-root "/#" channel "/")
- (lambda (name)
- (not (member name '("." ".." "index.html")))))
+ (or (reverse (scandir (string-append %log-root "/#" channel "/")
+ (lambda (name)
+ (not (member name '("." ".." "index.html"))))))
'()))))))
(define %controller
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#40157] [PATCH] hydra: Display the IRC logs in reverse chronological order.
2020-03-20 21:43 [bug#40157] [PATCH] hydra: Display the IRC logs in reverse chronological order Leo Famulari
@ 2020-03-22 11:43 ` Ricardo Wurmus
2020-03-22 17:41 ` bug#40157: " Leo Famulari
0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2020-03-22 11:43 UTC (permalink / raw)
To: Leo Famulari; +Cc: 40157
Hi Leo,
> I think that people usually want to read the latest logs, which
> currently requires a lot of scrolling.
>
> * hydra/goggles.scm (index): Reverse the list of log files.
Looks good, thank you. I’ve applied it. We’ll have to wait for the
next reconfiguration to see the effects on logs.guix.gnu.org.
--
Ricardo
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#40157: [PATCH] hydra: Display the IRC logs in reverse chronological order.
2020-03-22 11:43 ` Ricardo Wurmus
@ 2020-03-22 17:41 ` Leo Famulari
0 siblings, 0 replies; 3+ messages in thread
From: Leo Famulari @ 2020-03-22 17:41 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 40157-done
On Sun, Mar 22, 2020 at 12:43:43PM +0100, Ricardo Wurmus wrote:
> > I think that people usually want to read the latest logs, which
> > currently requires a lot of scrolling.
> >
> > * hydra/goggles.scm (index): Reverse the list of log files.
>
> Looks good, thank you. I’ve applied it. We’ll have to wait for the
> next reconfiguration to see the effects on logs.guix.gnu.org.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-22 17:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20 21:43 [bug#40157] [PATCH] hydra: Display the IRC logs in reverse chronological order Leo Famulari
2020-03-22 11:43 ` Ricardo Wurmus
2020-03-22 17:41 ` bug#40157: " Leo Famulari
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).