view: Provide search hints and link to /help.
authorRicardo Wurmus <rekado@elephly.net>
Mon, 3 Sep 2018 12:49:51 +0000 (14:49 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Mon, 3 Sep 2018 12:49:51 +0000 (14:49 +0200)
mumi/web/view/html.scm

index 3098bc3..693eadd 100644 (file)
      (div
       (@ (class "container"))
       (h1 "Guix patch tracker")
-      (div
-       (@ (id "about")
-          (class "row"))
-       (p "This is a web frontend to the Guix patch tracker.  Send email to "
-          (a (@ (href ,(string-append "mailto:" (%config 'submission-email-address))))
-             ,(%config 'submission-email-address))
-          " to submit your patches."))
+      (p (@ (class "row"))
+         "This is a web frontend to the Guix patch tracker.  Send email to "
+         (a (@ (href ,(string-append "mailto:" (%config 'submission-email-address))))
+            ,(%config 'submission-email-address))
+         " to submit your patches.")
       ,(search-form #:standalone? #t)
+      (div
+       (@ (class "row"))
+       (div
+        (@ (class "panel panel-default"))
+        (p (@ (class "panel-body"))
+           (strong "Hint: ")
+           "Refine your search with filters like "
+           (span (@ (class "filter"))
+                 "is:open")
+           ", "
+           (span (@ (class "filter"))
+                 "author:me")
+           ", "
+           (span (@ (class "filter"))
+                 "submitter:me")
+           ", "
+           (span (@ (class "filter"))
+                 "date:yesterday..now")
+           ", "
+           (span (@ (class "filter"))
+                 "date:2018-04-01..2018-04-02")
+           ", "
+           (span (@ (class "filter"))
+                 "date:1m..today")
+           ", "
+           (span (@ (class "filter"))
+                 "mdate:2w..12h")
+           ", and "
+           (a (@ (href "help#search"))
+              "many more!"))))
       ;; TODO: do this via JS?
       ,@(let ((bugs (recent-bugs 5)))
           (if (null? bugs)