guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: hydra/goggles: Add search form to index page.


From: Ricardo Wurmus
Subject: 02/04: hydra/goggles: Add search form to index page.
Date: Fri, 8 May 2020 01:26:40 -0400 (EDT)

rekado pushed a commit to branch master
in repository maintenance.

commit e3b0a75ab4f6541cf86a1aaf8ad041297298e96b
Author: Ricardo Wurmus <address@hidden>
AuthorDate: Fri May 8 05:50:07 2020 +0200

    hydra/goggles: Add search form to index page.
    
    * hydra/goggles.scm (index): Add search form.
---
 hydra/goggles.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hydra/goggles.scm b/hydra/goggles.scm
index 596ddf2..5116ef9 100755
--- a/hydra/goggles.scm
+++ b/hydra/goggles.scm
@@ -348,6 +348,11 @@ representation highlighting certain parts."
      (h1 ,(string-append channel " IRC channel logs"))
      (p ,(format #f "These are the channel logs for the #~a IRC channel on
 freenode." channel))
+     (form
+      (@ (action ,(string-append channel "/search")))
+      (input (@ (name "query")
+                (placeholder "nick:rekado frobnicate")) "")
+      (button (@ (type "submit")) "Search!"))
      (div
       (@ (class "years"))
       ,@(map (lambda (files)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]