From f4966aeb0e7a655c986aeb285c1a220274ddbfd9 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 22 Aug 2005 01:16:40 +0000 Subject: Bug 70907: QuickSearch: port the JS code to perl (make it server-side) - Patch by Marc Schumann r=wicked a=myk --- .../en/default/pages/quicksearchhack.html.tmpl | 377 +++++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 template/en/default/pages/quicksearchhack.html.tmpl (limited to 'template/en/default/pages/quicksearchhack.html.tmpl') diff --git a/template/en/default/pages/quicksearchhack.html.tmpl b/template/en/default/pages/quicksearchhack.html.tmpl new file mode 100644 index 000000000..529484991 --- /dev/null +++ b/template/en/default/pages/quicksearchhack.html.tmpl @@ -0,0 +1,377 @@ +[%# 1.0@bugzilla.org %] +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # Contributor(s): N.N. + # Marc Schumann + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% INCLUDE global/header.html.tmpl + title = "$terms.Bugzilla QuickSearch (for Hackers)", + style = 'th {text-align: left}' + onload = 'document.forms[\'f\'].quicksearch.focus()' + %] + +

+ Type in one or more words (or word fragments) to search for: +

+ +
+ + + +
+ +

+ This is a case-insensitive “all words as substrings” search; + words are separated by spaces. + By default, the following fields are relevant: Summary, Keywords, + Product, Component, Status Whiteboard. + If a word looks like a part of a URL, that field is included in the search, + too. +

+

+ The generic format for a “word” is + field1,…,fieldN:value1,…,valueM. + A [% terms.bug %] qualifies if at least one of the values occurs as a + substring in at least one of the fields. + For example, assignee,reporter,qa:ibm,sun will give you + [%+ terms.bugs %] where the assignee, reporter, or qa contact has a login + that contains ibm or sun. + If only value1,…,valueM is given, the prefix (roughly) defaults to + summary,keywords,product,component,statuswhiteboard: as noted above. + You can use -word to express the logical negation of + word. +

+

+ Here is a complete listing of available fields (the Shortcut column is just + for access speed): +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Searched by defaultShortcutField NameAliasesDescription
  + UNCO,NEW,…,CLOS,
FIX,DUP,…(as first word)
+
status  + Status + (“bug_status”) +
 resolution Resolution
 as-isplatform  + Platform + (“rep_platform”) +
  osopsys + OS + (“op_sys”) +
 p1,p2 or p1-2prioritypriPriority
 blo,cri,…,enhseveritysev + Severity + (“bug_severity”) +
 @assigneeassignedtoassignee + Assignee + (“assigned_to”) +
  reporterrepReporter (login)
  qaqacontactQA Contact (login) (“qa_contact”)
  cc CC (login)
yes:areaproductprodProduct (enum)
yescomponentcompComponent
  versionverVersion (enum)
  milestonetarget, targetmilestoneTarget Milestone (“target_milestone”)
yes summaryshortdesc + [% terms.Bug %] Summary (short text) + (“short_desc”) +
  descriptiondesc, longdesc[% terms.Bug %] Description / Comments (long text)
depends url URL (“bug_file_loc”)
yes statuswhiteboardsw, whiteboardStatus Whiteboard (“status_whiteboard”)
yes!keywordkeywordskwKeywords
  attachmentdescattachdesc + Attachment Description + (“attachments.description”) +
  attachmentdataattachdataAttachment Data (“attachments.thedata”)
  attachmentmimetypeattachmimetypeAttachment mime-type (“attachments.mimetype”)
+ +

+ Examples for some useful abbreviations: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SyntaxSemantics and Examples
:areaproduct,component:area
sevseverity:sev
blo,cri,majsevere [% terms.bugs %]
enhenhancement requests
plevelpriority:level
p1very high-priority [% terms.bugs %]
p1-2high-priority [% terms.bugs %]
@assigneeassignedto:assignee
!keywordkeywords:keyword
+ +

+ More information can be found in the + “Features” + section on the introductory page. +

+ +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b