From b582203477c7587cba3d8df079c31cf795f470bc Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 3 Sep 2018 14:49:51 +0200 Subject: view: Provide search hints and link to /help. --- mumi/web/view/html.scm | 42 +++++++++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/mumi/web/view/html.scm b/mumi/web/view/html.scm index 3098bc3..693eadd 100644 --- a/mumi/web/view/html.scm +++ b/mumi/web/view/html.scm @@ -116,14 +116,42 @@ (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) -- cgit v1.2.3