list.html.tmpl 8.62 KB
Newer Older
1
[%# 1.0@bugzilla.org %]
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
[%# 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.
  #
  # The Initial Developer of the Original Code is Netscape Communications
  # Corporation. Portions created by Netscape are
  # Copyright (C) 1998 Netscape Communications Corporation. All
  # Rights Reserved.
  #
  # Contributor(s): Myk Melez <myk@mozilla.org>
  #%]

22 23 24
[%# INTERFACE:
  # searchtype: string. Type of search - either "series", "saved" or undef.
  # ...
25
  # defaultsavename: string. The default name for saving the query.
26 27
  #%]

28 29 30 31
[%############################################################################%]
[%# Template Initialization                                                  #%]
[%############################################################################%]

32 33
[% PROCESS global/variables.none.tmpl %]

34
[% title = "$terms.Bug List" %]
35 36
[% IF searchname || defaultsavename %]
  [% title = title _ ": " _ (searchname OR defaultsavename) FILTER html %]
37 38
[% END %]

39
[% style_urls = [ "skins/standard/buglist.css" ] %]
40
[% qorder = order FILTER url_quote IF order %]
41
[% message = "buglist_sorted_by_relevance" IF sorted_by_relevance %]
42 43 44 45 46 47


[%############################################################################%]
[%# Page Header                                                              #%]
[%############################################################################%]

48
[% PROCESS global/header.html.tmpl
49 50
  title = title
  style = style
51
  atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom" 
52 53 54
%]

<div align="center">
55 56 57 58 59
  [% IF Param('timezone') %]
    <b>[% time2str("%a %b %e %Y %T %Z", currenttime, Param('timezone')) %]</b><br>
  [% ELSE %]
    <b>[% time2str("%a %b %e %Y %T", currenttime) %]</b><br>
  [% END %]
60 61

  [% IF debug %]
62 63 64 65 66
    <p>
      [% FOREACH debugline = debugdata %]
        [% debugline FILTER html %]<br>
      [% END %]
    </p>
67 68 69
    <p>[% query FILTER html %]</p>
  [% END %]

70
  [% IF user.settings.display_quips.value == 'on' %]
71
    [% DEFAULT quip = "$terms.Bugzilla would like to put a random quip here, but no one has entered any." %]
72 73 74 75 76 77 78
    <a href="quips.cgi"><i>[% quip FILTER html %]</i></a>
  [% END %]

</div>

[% IF toolong %]
  <h2>
79 80
    This list is too long for [% terms.Bugzilla %]'s little mind; the
    Next/Prev/First/Last buttons won't appear on individual [% terms.bugs %].
81 82 83
  </h2>
[% END %]

84
<hr>
85 86 87 88 89 90

[%############################################################################%]
[%# Preceding Status Line                                                    #%]
[%############################################################################%]

[% IF bugs.size > 9 %]
91
  [% bugs.size %] [%+ terms.bugs %] found.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
[% END %]

[%############################################################################%]
[%# Start of Change Form                                                     #%]
[%############################################################################%]

[% IF dotweak %]
  <form name="changeform" method="post" action="process_bug.cgi">
[% END %]

[%############################################################################%]
[%# Bug Table                                                                #%]
[%############################################################################%]

[% FLUSH %]
107
[% PROCESS list/table.html.tmpl %]
108 109 110 111 112 113

[%############################################################################%]
[%# Succeeding Status Line                                                   #%]
[%############################################################################%]

[% IF bugs.size == 0 %]
114
  [% terms.zeroSearchResults %].
115
[% ELSIF bugs.size == 1 %]
116
  One [% terms.bug %] found.
117
[% ELSE %]
118
  [% bugs.size %] [%+ terms.bugs %] found.
119 120
[% END %]

121
<br>
122 123 124 125 126 127

[%############################################################################%]
[%# Rest of Change Form                                                      #%]
[%############################################################################%]

[% IF dotweak %]
128
  [% PROCESS "list/edit-multiple.html.tmpl" %]
129
  </form>
130
  <hr>
131 132 133 134 135 136
[% END %]

[%############################################################################%]
[%# Navigation Bar                                                           #%]
[%############################################################################%]

137 138 139
<table>
  <tr>
    [% IF bugs.size > 0 %]
140
      <td valign="middle">
141 142 143 144 145
        <form method="post" action="show_bug.cgi">
          [% FOREACH id = buglist %]
            <input type="hidden" name="id" value="[% id FILTER html %]">
          [% END %]
          <input type="hidden" name="format" value="multiple">
146
          <input type="submit" value="Long Format">
147
        </form>
148 149 150 151 152 153 154 155
        <form method="post" action="show_bug.cgi">
            <input type="hidden" name="ctype" value="xml">
          [% FOREACH id = buglist %]
            <input type="hidden" name="id" value="[% id FILTER html %]">
          [% END %]
            <input type="hidden" name="excludefield" value="attachmentdata">
            <input type="submit" value="XML">
        </form>
156 157 158 159 160 161 162

        [% IF UserInGroup(Param('timetrackinggroup')) %]
          <form method="post" action="summarize_time.cgi">
            <input type="hidden" name="id" value="[% buglist_joined FILTER html %]">
            <input type="submit" value="Time Summary">
          </form>
        [% END %]
163
      </td>
164
      
165
      <td>&nbsp;</td>
166
      
167
      <td valign="middle">
168 169
        <a href="buglist.cgi?
        [% urlquerypart FILTER html %]&amp;ctype=csv">CSV</a> |
170
        <a href="buglist.cgi?
171
        [% urlquerypart FILTER html %]&amp;title=
172
        [%- title FILTER html %]&amp;ctype=atom">Feed</a> |
173
        <a href="buglist.cgi?
174
        [% urlquerypart FILTER html %]&amp;ctype=ics">iCalendar</a> |
175
        <a href="colchange.cgi?
176
        [% urlquerypart FILTER html %]&amp;query_based_on=
177
          [% defaultsavename OR searchname FILTER url_quote %]">Change&nbsp;Columns</a> |
178 179 180 181 182 183 184 185 186 187

        [% IF bugs.size > 1 && caneditbugs && !dotweak %]
          <a href="buglist.cgi?[% urlquerypart FILTER html %]
            [%- "&order=$qorder" FILTER html IF order %]&amp;tweak=1"
            >Change&nbsp;Several&nbsp;[% terms.Bugs %]&nbsp;at&nbsp;Once</a>
          |
        [% END %]

        [% IF bugowners %]
          <a href="mailto:
188
            [% bugowners FILTER html %]">Send&nbsp;Mail&nbsp;to&nbsp;[% terms.Bug %]&nbsp;Assignees</a> |
189
        [% END %]
190 191 192

        [%# Links to more things users can do with this bug list. %]
        [% Hook.process("links") %]
193
      </td>
194 195
    [% END %]
    
196
    <td valign="middle">
197 198 199 200 201
      [% editqueryname = searchname OR defaultsavename OR '' %]
      <a href="query.cgi?[% urlquerypart FILTER html %]
      [% IF editqueryname != '' %]&amp;known_name=
        [% editqueryname FILTER url_quote %]
      [% END %]">Edit&nbsp;Search</a>
202 203
    </td>
      
204
    [% IF searchtype == "saved" %]
205
      <td valign="middle" nowrap="nowrap">
206 207
        |
        <a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
208
                [% searchname FILTER url_quote %]">Forget&nbsp;Search&nbsp;'
209 210 211 212 213
                [% searchname FILTER html %]'</a>
      </td>
    [% ELSE %]
      <td>&nbsp;</td>
      
214
      <td valign="middle">
215 216 217
        <form method="get" action="buglist.cgi">
          <input type="submit" value="Remember search"> as 
          <input type="hidden" name="newquery" 
218
                 value="[% urlquerypart FILTER html %][% "&order=$qorder" FILTER html IF order %]">
219 220
          <input type="hidden" name="cmdtype" value="doit">
          <input type="hidden" name="remtype" value="asnamed">
221 222
          <input type="text" name="newqueryname" size="20"
                 value="[% defaultsavename FILTER html %]"> 
223 224 225 226 227
        </form> 
      </td>
    [% END %]  
  </tr>
</table>
228

229 230 231 232 233 234
[% IF cgi.param('product').size == 1 %]
  <p>
    <a href="enter_bug.cgi?product=[% cgi.param('product') FILTER url_quote %]">Fill
      a new [% terms.bug %] in the "[% cgi.param('product') FILTER html %]" product</a>
  </p>
[% END %]
235 236 237 238 239

[%############################################################################%]
[%# Page Footer                                                              #%]
[%############################################################################%]

240
[% PROCESS global/footer.html.tmpl %]