summaryrefslogtreecommitdiffstats
path: root/template/en/default/list/table.html.tmpl
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-19 03:56:11 +0200
committergerv%gerv.net <>2002-04-19 03:56:11 +0200
commitd033109bdc8729e9ef46fc82ad200c7d2cda5a1a (patch)
treec5f4c8adf0c7da3593567e4a51895c8f9a9b4114 /template/en/default/list/table.html.tmpl
parentb48d8ed62c0cf35960d4a454e084ae7ba8f8a71d (diff)
downloadbugzilla-d033109bdc8729e9ef46fc82ad200c7d2cda5a1a.tar.gz
bugzilla-d033109bdc8729e9ef46fc82ad200c7d2cda5a1a.tar.xz
Bug 135707 - rearrange templates to normalise filenames, and create directory structure which allows for localised versions of the templates. Earlier versions of these templates can be found, cvs removed, scattered around bugzilla/template/default; but there are no substantial changes between their initial checkin there and here.
Diffstat (limited to 'template/en/default/list/table.html.tmpl')
-rw-r--r--template/en/default/list/table.html.tmpl143
1 files changed, 143 insertions, 0 deletions
diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl
new file mode 100644
index 000000000..2afc9bb9d
--- /dev/null
+++ b/template/en/default/list/table.html.tmpl
@@ -0,0 +1,143 @@
+<!-- 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>
+ #%]
+
+[%############################################################################%]
+[%# Initialization #%]
+[%############################################################################%]
+
+[%# Columns whose titles or values should be abbreviated to make the list
+ # more compact. For columns whose titles should be abbreviated,
+ # the shortened title is included. For columns whose values should be
+ # abbreviated, a maximum length is provided along with the ellipsis that
+ # should be added to an abbreviated value, if any.
+ #%]
+[% abbrev =
+ {
+ "severity" => { size => 3 , title => "Sev" } ,
+ "priority" => { size => 3 , title => "Pri" } ,
+ "platform" => { size => 3 , title => "Plt" } ,
+ "status" => { size => 4 } ,
+ "reporter" => { size => 45 , ellipsis => "..." } ,
+ "owner" => { size => 45 , ellipsis => "..." } ,
+ "qa_contact" => { size => 45 , ellipsis => "..." , title => "QAContact" } ,
+ "resolution" => { size => 4 } ,
+ "summary" => { size => 60 , ellipsis => "..." } ,
+ "status_whiteboard" => { title => "StatusSummary" } ,
+ "component" => { size => 8 , title => "Comp" } ,
+ "product" => { size => 8 } ,
+ "version" => { size => 5 , title => "Vers" } ,
+ "os" => { size => 4 } ,
+ "target_milestone" => { title => "TargetM" } ,
+ }
+%]
+
+[%############################################################################%]
+[%# Table Header #%]
+[%############################################################################%]
+
+[% tableheader = BLOCK %]
+ <table class="bz_buglist" cellspacing="0" cellpadding="4" width="100%">
+ <colgroup>
+ <col class="bz_id_column">
+ [% FOREACH id = displaycolumns %]
+ <col class="bz_[% id %]_column">
+ [% END %]
+ </colgroup>
+
+ <tr align="left">
+ <th colspan="[% splitheader ? 2 : 1 %]">
+ <a href="buglist.cgi?[% urlquerypart %]&amp;order=bugs.bug_id">ID</a>
+ </th>
+
+ [% IF splitheader %]
+
+ [% FOREACH id = displaycolumns %]
+ [% NEXT IF loop.count() % 2 == 0 %]
+ [% column = columns.$id %]
+ [% PROCESS columnheader %]
+ [% END %]
+
+ </tr><tr align="left"><th>&nbsp;</th>
+
+ [% FOREACH id = displaycolumns %]
+ [% NEXT UNLESS loop.count() % 2 == 0 %]
+ [% column = columns.$id %]
+ [% PROCESS columnheader %]
+ [% END %]
+
+ [% ELSE %]
+
+ [% FOREACH id = displaycolumns %]
+ [% column = columns.$id %]
+ [% PROCESS columnheader %]
+ [% END %]
+
+ [% END %]
+
+ </tr>
+[% END %]
+
+[% BLOCK columnheader %]
+ <th colspan="[% splitheader ? 2 : 1 %]">
+ <a href="buglist.cgi?[% urlquerypart %]&amp;order=
+ [% column.name FILTER uri html %]
+ [% ",$order" FILTER uri html IF order %]">
+ [%- abbrev.$id.title || column.title -%]</a>
+ </th>
+[% END %]
+
+
+[%############################################################################%]
+[%# Bug Table #%]
+[%############################################################################%]
+
+[% FOREACH bug = bugs %]
+ [% FLUSH IF loop.count() % 10 == 1 %]
+
+ [%# At the beginning of every hundred bugs in the list, start a new table. %]
+ [% IF loop.count() % 100 == 1 %]
+ [% tableheader %]
+ [% END %]
+
+ <tr class="bz_[% bug.severity %] bz_[% bug.priority %] [%+ "bz_secure" IF (bug.groupset && !usebuggroups) %]">
+
+ <td>
+ [% IF dotweak %]<input type="checkbox" name="id_[% bug.id %]">[% END %]
+ <a href="show_bug.cgi?id=[% bug.id %]">[% bug.id %]</a>
+ </td>
+
+ [% FOREACH column = displaycolumns %]
+ <td>
+ [%+ bug.$column.truncate(abbrev.$column.size, abbrev.$column.ellipsis) FILTER html %]
+ </td>
+ [% END %]
+
+ </tr>
+
+ [%# At the end of every hundred bugs in the list, or at the end of the list,
+ # end the current table.
+ #%]
+ [% IF loop.last() || loop.count() % 100 == 0 %]
+ </table>
+ [% END %]
+
+[% END %]
+