summaryrefslogtreecommitdiffstats
path: root/template/en/default/list/list.html.tmpl
blob: c0291024cc0b8f386fe5b96893ee5ec11a51b205 (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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[%# 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.
  #
  # 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>
  #%]

[%# INTERFACE:
  # searchtype: string. Type of search - either "series", "saved" or undef.
  # ...
  #%]

[%############################################################################%]
[%# Template Initialization                                                  #%]
[%############################################################################%]

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

[% title = "$terms.Bug List" %]
[% IF searchname %]
  [% title = title _ ": " _ searchname %]
[% END %]

[% style_urls = [ "css/buglist.css" ] %]
[% qorder = order FILTER url_quote IF order %]
[% message = "buglist_sorted_by_relevance" IF sorted_by_relevance %]


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

[% PROCESS global/header.html.tmpl
  title = title
  style = style
%]

<div align="center">
  <b>[% time2str("%a %b %e %T %Z %Y", currenttime) %]</b><br>

  [% IF debug %]
    <p>[% query FILTER html %]</p>
  [% END %]

  [% IF Param('enablequips') != 'off' %]
    [% DEFAULT quip = "$terms.Bugzilla would like to put a random quip here, but no one has entered any." %]
    <a href="quips.cgi"><i>[% quip FILTER html %]</i></a>
  [% END %]

</div>

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

<hr>

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

[% IF bugs.size > 9 %]
  [% bugs.size %] [%+ terms.bugs %] found.
[% END %]

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

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

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

[% FLUSH %]
[% PROCESS list/table.html.tmpl %]

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

[% IF bugs.size == 0 %]
  [% terms.zeroSearchResults %].
[% ELSIF bugs.size == 1 %]
  One [% terms.bug %] found.
[% ELSE %]
  [% bugs.size %] [%+ terms.bugs %] found.
[% END %]

<br>

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

[% IF dotweak %]
  [% PROCESS "list/edit-multiple.html.tmpl" %]
  </form>
  <hr>
[% END %]

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

<p>
<table>
  <tr>
    [% IF bugs.size > 0 %]
      <td valign="middle">
        <form method="post" action="long_list.cgi">
          <input type="hidden" name="buglist" value="[% buglist %]">
          <input type="submit" value="Long Format">
        </form>
      </td>
      
      <td>&nbsp;</td>
      
      <td valign="middle">
        <a href="buglist.cgi?
        [% urlquerypart FILTER html %]&amp;ctype=csv">CSV</a> |
        <a href="buglist.cgi?
        [% urlquerypart FILTER html %]&amp;ctype=ics">iCalendar</a> |
        <a href="colchange.cgi?
        [% urlquerypart FILTER html %]">Change&nbsp;Columns</a> |

        [% 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:
            [% bugowners FILTER html %]">Send&nbsp;Mail&nbsp;to&nbsp;[% terms.Bug %]&nbsp;Owners</a> |
        [% END %]
      </td>
    [% END %]
    
    <td valign="middle">
      <a href="query.cgi?[% urlquerypart FILTER html %]">Edit&nbsp;Search</a>
    </td>
      
    [% IF searchtype == "saved" %]
      <td valign="middle" nowrap="nowrap">
        |
        <a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
                [% searchname FILTER url_quote %]">Forget&nbsp;Search&nbsp;'
                [% searchname FILTER html %]'</a>
      </td>
    [% ELSE %]
      <td>&nbsp;</td>
      
      <td valign="middle">
        <form method="get" action="buglist.cgi">
          <input type="submit" value="Remember search"> as 
          <input type="hidden" name="newquery" 
                 value="[% urlquerypart FILTER html %]">
          <input type="hidden" name="cmdtype" value="doit">
          <input type="hidden" name="remtype" value="asnamed">
          <input type="text" name="newqueryname" size="20"> 
        </form> 
      </td>
    [% END %]  
  </tr>
</table>
</p>  


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

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