summaryrefslogtreecommitdiff
path: root/src/htdocs/bugs/bugs.xsl
blob: 9a7ec35b9feee40530ed944f409fe5e8c3c2151e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?xml version='1.0'?>
<!DOCTYPE xsl:stylesheet
[
  <!ENTITY % site-entities SYSTEM "../entities.site">
  %site-entities;
]>


<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:exsl="http://exslt.org/common"
  version="1.0">

<xsl:include href="../page.xsl" />

<!-- this template outputs a complete <a href > for a component and milestone -->
<xsl:template name="hyperlink.bug">
  <xsl:param name="id" />
  <xsl:param name="component" />
  <xsl:param name="milestone" />

  <xsl:element name="a">
    <xsl:attribute name="href">
http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;component=<xsl:value-of select="$component" /><![CDATA[&]]>target_milestone=<xsl:value-of select="$milestone" /></xsl:attribute>
    <xsl:value-of select="$milestone" />
  </xsl:element>
</xsl:template>


<xsl:template match="module">
<td valign="top">
<table border="1" cellspacing="0" cellpadding="2">
<tr><th><xsl:value-of select="@id" /></th></tr>

<!-- create a new bug for this component -->
<tr>
  <td>
    <xsl:element name="a">
      <xsl:attribute name="href">
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer&amp;component=<xsl:value-of select="component" />
      </xsl:attribute>
create bug
    </xsl:element>
  </td>
</tr>


<!-- blocker bugs for this component -->
<tr>
  <td>
    <xsl:element name="a">
      <xsl:attribute name="href">
http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;component=<xsl:value-of select="component" />&amp;bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=NEEDINFO&amp;bug_status=REOPENED&amp;bug_severity=blocker&amp;form_name=query
      </xsl:attribute>
blocker
    </xsl:element>
  </td>
</tr>


<!-- unresolved bugs for this component -->
<tr>
  <td>
    <xsl:element name="a">
      <xsl:attribute name="href">
http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;component=<xsl:value-of select="component" />&amp;bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=NEEDINFO&amp;bug_status=REOPENED&amp;form_name=query
      </xsl:attribute>
unresolved
    </xsl:element>
  </td>
</tr>

  <xsl:for-each select="milestones/milestone">
<tr>
  <td>
  <xsl:call-template name="hyperlink.bug">
    <xsl:with-param name="id"><xsl:value-of select="../../@id" /></xsl:with-param>
    <xsl:with-param name="component"><xsl:value-of select="../../component" /></xsl:with-param>
    <xsl:with-param name="milestone"><xsl:value-of select="." /></xsl:with-param>
  </xsl:call-template>
  </td>
</tr>
  </xsl:for-each>
</table>
</td>
</xsl:template>

<xsl:template match="buglists">
  <xsl:call-template name="page">
    <xsl:with-param name="title">GStreamer: Bug Lists</xsl:with-param>
    <xsl:with-param name="content">
<h1>Bug Lists</h1>
<table border="0">
<tr>
  <td colspan="4">
<a href="http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=NEEDINFO&amp;bug_status=REOPENED&amp;form_name=query">All unresolved bugs</a>
  </td>
</tr>
<tr>
  <td colspan="4">
<a href="http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;component=don%27t%20know&amp;bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=NEEDINFO&amp;bug_status=REOPENED&amp;form_name=query">All unresolved bugs not assigned to a component</a>
  </td>
</tr>
<tr>
  <td colspan="4">
<a href="http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;bug_status=RESOLVED&amp;resolution=FIXED&amp;target_milestone=HEAD&amp;form_name=query">All fixed in HEAD bugs (need to reassign to milestones)</a>
  </td>
</tr>
<tr>
  <td colspan="6">
All bugs changed within the last
<a href="http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;changedin=1">24 hours</a>, 
<a href="http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;changedin=2">48 hours</a>,
<a href="http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;changedin=3">72 hours</a>,
<a href="http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;changedin=7">1 week</a>,
<a href="http://bugzilla.gnome.org/buglist.cgi?product=GStreamer&amp;changedin=14">2 weeks</a>
  </td>
</tr>
<tr>
  <td colspan="4">
<a href="http://bugzilla.gnome.org/browse.cgi?product=GStreamer">GStreamer bugzilla overview</a>
  </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>

    </xsl:with-param>
  </xsl:call-template>

</xsl:template>

</xsl:stylesheet>