summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-13 00:46:39 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-13 00:46:39 +0100
commit7659e53baf21b783fa97921c23a09d6be1b04a12 (patch)
tree4022164a923744f79a7c2eb656667f411791dc32
parent2fa6c3f1c0b62fdc3572259cb04c414dbe9e6151 (diff)
bugs: add search form to bugs page
-rw-r--r--src/htdocs/bugs/bugs.xsl33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/htdocs/bugs/bugs.xsl b/src/htdocs/bugs/bugs.xsl
index ad09f986..9a7ec35b 100644
--- a/src/htdocs/bugs/bugs.xsl
+++ b/src/htdocs/bugs/bugs.xsl
@@ -122,6 +122,39 @@ All bugs changed within the last
</td>
</tr>
<tr>
+ <td colspan="6">
+ <!-- This might come in handy when someone figures out how to make it
+ find bugs where the short_desc OR the long_desc matches the search terms
+ rather than all bugs where both match. Add this to the form element:
+ onSubmit="CopyValue(short_desc,long_desc)"
+ For now we just search the bug titles.
+ <script>
+ function CopyValue(obj1, obj2)
+ {
+ var visibleField = obj1;
+ obj2.value = visibleField.value;
+ }
+ </script>
+ -->
+ <form name="f" action="http://bugzilla.gnome.org/buglist.cgi" method="get">
+ <p>Search for GStreamer bugs:<br/>
+ <input type="hidden" name="query_format" value="advanced" />
+ <input type="hidden" name="product" value="GStreamer" />
+ <input type="hidden" name="bug_status" value="UNCONFIRMED" />
+ <input type="hidden" name="bug_status" value="NEW" />
+ <input type="hidden" name="bug_status" value="ASSIGNED" />
+ <input type="hidden" name="bug_status" value="REOPENED" />
+ <input type="hidden" name="bug_status" value="NEEDINFO" />
+ <input type="hidden" name="long_desc_type" value="allwordssubstr" />
+ <input type="hidden" name="long_desc" value="" id="long_desc" />
+ <input type="hidden" name="short_desc_type" value="allwordssubstr" />
+ <input type="text" name="short_desc" id="short_desc" />
+ <input id="show" type="submit" value="Search" />
+ </p>
+ </form>
+ </td>
+</tr>
+<tr>
<xsl:apply-templates />
</tr>
</table>