From d033109bdc8729e9ef46fc82ad200c7d2cda5a1a Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Fri, 19 Apr 2002 01:56:11 +0000 Subject: 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. --- template/en/default/list/change-columns.html.tmpl | 51 ++++ template/en/default/list/edit-multiple.html.tmpl | 316 ++++++++++++++++++++++ template/en/default/list/list-rdf.rdf.tmpl | 54 ++++ template/en/default/list/list-simple.html.tmpl | 45 +++ template/en/default/list/list.html.tmpl | 161 +++++++++++ template/en/default/list/quips.html.tmpl | 65 +++++ template/en/default/list/server-push.html.tmpl | 36 +++ template/en/default/list/table.html.tmpl | 143 ++++++++++ 8 files changed, 871 insertions(+) create mode 100644 template/en/default/list/change-columns.html.tmpl create mode 100644 template/en/default/list/edit-multiple.html.tmpl create mode 100644 template/en/default/list/list-rdf.rdf.tmpl create mode 100644 template/en/default/list/list-simple.html.tmpl create mode 100644 template/en/default/list/list.html.tmpl create mode 100644 template/en/default/list/quips.html.tmpl create mode 100644 template/en/default/list/server-push.html.tmpl create mode 100644 template/en/default/list/table.html.tmpl (limited to 'template/en/default/list') diff --git a/template/en/default/list/change-columns.html.tmpl b/template/en/default/list/change-columns.html.tmpl new file mode 100644 index 000000000..d3b008c49 --- /dev/null +++ b/template/en/default/list/change-columns.html.tmpl @@ -0,0 +1,51 @@ + +[%# 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): Dave Lawrence + #%] + +[% INCLUDE global/header + title = "Change Columns" +%] + +Check which columns you wish to appear on the list, and then click +on submit. (Cookies are required.) +

+

+ +[% FOREACH column = masterlist %] + +
+[% END %] +

+ +
+ + +

+ +

+
+ + + +
+

+ +[% INCLUDE global/footer %] + diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl new file mode 100644 index 000000000..c7c8d00bf --- /dev/null +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -0,0 +1,316 @@ + +[%# 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 + #%] + + + +
+ +

+ To change multiple bugs: +

    +
  1. Check the bugs you want to change above.
  2. +
  3. Make your changes in the form fields below. If the change + you are making requires an explanation, include it in + the comments box.
  4. +
  5. Click the Commit button.
  6. +
+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [% IF Param("useqacontact") %] + + + + + [% END %] + + + + + + + + + [% IF use_keywords %] + + + + + + + [% END %] + +
+ [% PROCESS selectmenu menuname = "product" + menuitems = products %] + + [% PROCESS selectmenu menuname = "version" + menuitems = versions %] +
+ + + [% PROCESS selectmenu menuname = "rep_platform" + menuitems = platforms %] + + + + [% PROCESS selectmenu menuname = "priority" + menuitems = priorities %] +
+ [% PROCESS selectmenu menuname = "component" + menuitems = components %] + + + + [% PROCESS selectmenu menuname = "bug_severity" + menuitems = severities %] +
+ [% PROCESS selectmenu menuname = "target_milestone" + menuitems = targetmilestones %] +
+ +
+ + +
+ + + + +
+ + + +
+
+ +[% IF groups.size > 0 %] + + Groupset:
+ + + + + [% FOREACH group = groups %] + + + + [% IF group.isactive %] + + [% ELSE %] + + [% foundinactive = 1 %] + [% END %] + + + + + [% END %] + +
Don't
change
this group
restriction +
Remove
bugs
from this
group +
Add
bugs
to this
group +
Group Name: +
+ + + + + +   + [% IF group.isactive %] + [% group.description %] + [% ELSE %] + [% group.description FILTER strike %] + [% END %] +
+ + [% IF foundinactive %] + (Note: Bugs may not be added to inactive + groups, only removed.)
+ [% END %] + +[% END %] + + + +[% knum = 0 %] + +
+ +[% IF bugstatuses.size == 1 && bugstatuses.0 == unconfirmedstate %] + [% knum = knum + 1 %] + +
+[% END %] + +[% knum = knum + 1 %] + +
+ +[%# If all the bugs being changed are open, allow the user to close them. %] +[% IF !bugstatuses.containsany(closedstates) %] + [% knum = knum + 1 %] + +
+ + [% knum = knum + 1 %] + + +
+ +[% END %] + +[%# If all the bugs are closed, allow the user to reopen them. %] +[% IF !bugstatuses.containsany(openstates) %] + [% knum = knum + 1 %] + +
+[% END %] + +[% IF bugstatuses.size == 1 %] + [% IF bugstatuses.contains('RESOLVED') %] + [% knum = knum + 1 %] + +
+ [% ELSIF bugstatuses.contains('VERIFIED') %] + [% knum = knum + 1 %] + +
+ [% END %] +[% END %] + +[% knum = knum + 1 %] + + +
+ +[% knum = knum + 1 %] + +
+ + + +[% IF ismover %] + +[% END %] + + +[%############################################################################%] +[%# Select Menu Block #%] +[%############################################################################%] + +[% BLOCK selectmenu %] + +[% END %] diff --git a/template/en/default/list/list-rdf.rdf.tmpl b/template/en/default/list/list-rdf.rdf.tmpl new file mode 100644 index 000000000..c8beb50e3 --- /dev/null +++ b/template/en/default/list/list-rdf.rdf.tmpl @@ -0,0 +1,54 @@ +[% template_version = "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 + #%] + + + + + + + + + + [% FOREACH bug = bugs %] +
  • + + + + [% bug.id %] + + [% FOREACH column = displaycolumns %] + [% bug.$column FILTER html %] + [% END %] + + + +
  • + + [% END %] + +
    + +
    + +
    + +
    diff --git a/template/en/default/list/list-simple.html.tmpl b/template/en/default/list/list-simple.html.tmpl new file mode 100644 index 000000000..883b278d7 --- /dev/null +++ b/template/en/default/list/list-simple.html.tmpl @@ -0,0 +1,45 @@ + +[%# 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 + #%] + +[%############################################################################%] +[%# Initialization #%] +[%############################################################################%] + +[% DEFAULT title = "Bug List" %] +[% title = title FILTER html %] + + +[%############################################################################%] +[%# Bug Table #%] +[%############################################################################%] + + + + + [% title %] + + + + + [% PROCESS buglist/table.tmpl %] + + + diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl new file mode 100644 index 000000000..150ac2c54 --- /dev/null +++ b/template/en/default/list/list.html.tmpl @@ -0,0 +1,161 @@ + +[%# 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 + #%] + +[%############################################################################%] +[%# Template Initialization #%] +[%############################################################################%] + +[% DEFAULT title = "Bug List" %] +[% style_url = "css/buglist.css" %] + + +[%############################################################################%] +[%# Page Header #%] +[%############################################################################%] + +[% PROCESS global/header + title = title + style = style +%] + +
    + [% currenttime %]
    + + [% IF debug %] +

    [% query FILTER html %]

    + [% END %] + + [% IF quip %] + [% quip FILTER html %] + [% END %] + +
    + +[% IF toolong %] +

    + This list is too long for Bugzilla's little mind; the + Next/Prev/First/Last buttons won't appear on individual bugs. +

    +[% END %] + +
    + + +[%############################################################################%] +[%# Preceding Status Line #%] +[%############################################################################%] + +[% IF bugs.size > 9 %] + [% bugs.size %] bugs found. +[% END %] + + +[%############################################################################%] +[%# Start of Change Form #%] +[%############################################################################%] + +[% IF dotweak %] +
    +[% END %] + + +[%############################################################################%] +[%# Bug Table #%] +[%############################################################################%] + +[% FLUSH %] +[% PROCESS buglist/table.tmpl %] + +[%############################################################################%] +[%# Succeeding Status Line #%] +[%############################################################################%] + +[% IF bugs.size == 0 %] + Zarro Boogs found. +

    + Query Page +   Enter New Bug + Edit this query +

    + +[% ELSIF bugs.size == 1 %] + One bug found. + +[% ELSE %] + [% bugs.size %] bugs found. + +[% END %] + +
    + + +[%############################################################################%] +[%# Rest of Change Form #%] +[%############################################################################%] + +[% IF dotweak %] + + [% PROCESS "buglist/change-form.tmpl" %] + +
    + +
    + +[% END %] + + +[%############################################################################%] +[%# Navigation Bar #%] +[%############################################################################%] + +[% IF bugs.size > 0 %] +
    + + + + Query Page    + Enter New Bug    + Change Columns    + + [% IF bugs.size > 1 && caneditbugs && !dotweak %] + Change Several + Bugs at Once +    + [% END %] + + [% IF bugowners %] + Send Mail to Bug Owners    + [% END %] + + Edit this Query    + +
    + +[% END %] + + +[%############################################################################%] +[%# Page Footer #%] +[%############################################################################%] + +[% PROCESS global/footer %] + diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl new file mode 100644 index 000000000..d05557650 --- /dev/null +++ b/template/en/default/list/quips.html.tmpl @@ -0,0 +1,65 @@ + +[%# 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): Gervase Markham + #%] + +[% INCLUDE global/header + title = "Bugzilla Quip System" + h1 = "Add your own clever headline" + %] + +[% IF added_quip %] +

    + + Your quip '[% added_quip FILTER html %]' has been added. + +

    +[% END %] + +

    + Bugzilla will pick a random quip for the headline on each bug list, and + you can extend the quip list. Type in something clever or funny or boring + (but not obscene or offensive, please) and bonk on the button. +

    + +
    + + +

    + +

    +
    + +[% IF show_quips %] +

    + Existing quips: +

    +
      + [% FOREACH quip = quips %] +
    • [% quip %]
    • + [% END %] +
    +[% ELSE %] +

    + Those who like their wisdom in large doses can + view the whole quip list. +

    +[% END %] + +[% INCLUDE global/footer %] diff --git a/template/en/default/list/server-push.html.tmpl b/template/en/default/list/server-push.html.tmpl new file mode 100644 index 000000000..5a2dde0b1 --- /dev/null +++ b/template/en/default/list/server-push.html.tmpl @@ -0,0 +1,36 @@ + +[%# 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 + #%] + + + + Bugzilla is pondering your query + + +

    Please stand by ...

    + + [% IF debug %] +

    + [% query FILTER html %] +

    + [% END %] + + + 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 @@ + +[%# 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 + #%] + +[%############################################################################%] +[%# 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 %] + + + + [% FOREACH id = displaycolumns %] + + [% END %] + + + + + + [% IF splitheader %] + + [% FOREACH id = displaycolumns %] + [% NEXT IF loop.count() % 2 == 0 %] + [% column = columns.$id %] + [% PROCESS columnheader %] + [% END %] + + + + [% 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 %] + + +[% END %] + +[% BLOCK columnheader %] + +[% 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 %] + + + + + + [% FOREACH column = displaycolumns %] + + [% END %] + + + + [%# 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 %] +
    + ID +
     
    + + [%- abbrev.$id.title || column.title -%] +
    + [% IF dotweak %][% END %] + [% bug.id %] + + [%+ bug.$column.truncate(abbrev.$column.size, abbrev.$column.ellipsis) FILTER html %] +
    + [% END %] + +[% END %] + -- cgit v1.2.3-24-g4f1b