From 80fc05854135e575e7811b55f521e8bb9855a2ee Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Fri, 26 Nov 2010 14:56:29 +0000 Subject: Add custom template with identity support --- template/en/default/list/change-columns.html.tmpl | 127 +++++++ template/en/default/list/edit-multiple.html.tmpl | 424 ++++++++++++++++++++++ template/en/default/list/list-simple.html.tmpl | 53 +++ template/en/default/list/list.atom.tmpl | 101 ++++++ template/en/default/list/list.csv.tmpl | 46 +++ template/en/default/list/list.html.tmpl | 291 +++++++++++++++ template/en/default/list/list.ics.tmpl | 103 ++++++ template/en/default/list/list.js.tmpl | 37 ++ template/en/default/list/list.rdf.tmpl | 56 +++ template/en/default/list/quips.html.tmpl | 168 +++++++++ template/en/default/list/server-push.html.tmpl | 47 +++ template/en/default/list/table.html.tmpl | 260 +++++++++++++ 12 files changed, 1713 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-simple.html.tmpl create mode 100644 template/en/default/list/list.atom.tmpl create mode 100644 template/en/default/list/list.csv.tmpl create mode 100644 template/en/default/list/list.html.tmpl create mode 100644 template/en/default/list/list.ics.tmpl create mode 100644 template/en/default/list/list.js.tmpl create mode 100644 template/en/default/list/list.rdf.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 0000000..36cd5db --- /dev/null +++ b/template/en/default/list/change-columns.html.tmpl @@ -0,0 +1,127 @@ +[%# 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 + # Pascal Held + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% PROCESS global/header.html.tmpl + title = "Change Columns" + javascript_urls = "js/change-columns.js" + onload = "initChangeColumns()" +%] + +

+ Select the columns you wish to appear in your [% terms.bug %] lists. Note that + this feature requires cookies to work. +

+ +[% PROCESS "global/field-descs.none.tmpl" %] +[% field_descs.short_short_desc = "Summary (first 60 characters)" %] +[% field_descs.short_desc = "Full Summary" %] +[% field_descs.assigned_to_realname = "Assignee Realname" %] +[% field_descs.reporter_realname = "Reporter Realname" %] +[% field_descs.qa_contact_realname = "QA Contact Realname" %] + +
+ + + + + + + + + + + + + + +
Available Columns
Selected Columns
+ + + +

+ +
+ + + +

+ +
+ +

+ + +
+ + + +

+ + [% IF saved_search %] +

+ + + +

+ [% END %] + +

+ +

+ + +
+ +[% PROCESS global/footer.html.tmpl %] + 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 0000000..75f2f83 --- /dev/null +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -0,0 +1,424 @@ +[%# 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 + # Max Kanat-Alexander + # Frédéric Buclin + # Guy Pyrzak + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% dontchange = "--do_not_change--" %] + + + + + +
+ +

+ To change multiple [% terms.bugs %]:

+
    +
  1. Check the [% terms.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("usetargetmilestone") %] + + + [% END %] + + + + + + + [% IF user.is_timetracker %] + + + + + + + + + + + + + [% END %] + + + + + + + [% IF Param("useqacontact") %] + + + + + [% END %] + + + + + + + + + [% IF use_keywords %] + + + + + + + [% END %] + + + + + + + + + + + + [% IF Param('usestatuswhiteboard') %] + + + + + [% END %] + + [% USE Bugzilla %] + [% FOREACH field = Bugzilla.active_custom_fields %] + + [% PROCESS bug/field.html.tmpl value = dontchange + editable = 1 + allow_dont_change = 1 %] + + [% END %] + + [% Hook.process("after_custom_fields") %] + +
+ [% PROCESS selectmenu menuname = "product" + menuitems = products + property = "name" %] + + [% PROCESS selectmenu menuname = "version" + menuitems = versions + property = "" %] +
+ [% PROCESS selectmenu menuname = "component" + menuitems = components %] + + + + [% PROCESS selectmenu menuname = "priority" + menuitems = priorities %] +
+ + + [% PROCESS selectmenu menuname = "rep_platform" + menuitems = platforms %] + + + + [% PROCESS selectmenu menuname = "bug_severity" + menuitems = severities %] +
+ + + [% PROCESS selectmenu menuname = "op_sys" + menuitems = op_sys %] + + [% PROCESS selectmenu menuname = "target_milestone" + menuitems = targetmilestones %] +
[% PROCESS status_section %]
+ + + +
+ +   
+ [% INCLUDE global/userselect.html.tmpl + id => "assigned_to" + name => "assigned_to" + value => dontchange + size => 32 + %] + + +
+ [% INCLUDE global/userselect.html.tmpl + id => "qa_contact" + name => "qa_contact" + value => dontchange + size => 32 + %] + + +
+ + +
+ + + + +
+ + + + +
+ + + + +
+ Status Whiteboard: + + +
+ + +[% IF user.is_insider %] + + +[% END %] +
+[% INCLUDE global/textarea.html.tmpl + name = 'comment' + id = 'comment' + minrows = 5 + maxrows = 25 + cols = constants.COMMENT_COLS +%]
+ +[% Hook.process('before_groups') %] + +[% IF groups.size > 0 %] + + Groups:
+ + + + + + + + + [% FOREACH group = groups %] + + + + [% IF group.is_active %] + + [% ELSE %] + + [% foundinactive = 1 %] + [% END %] + + + + + [% END %] + +
Don't
change
this group
restriction
Remove
[% terms.bugs %]
from this
group
Add
[% terms.bugs %]
to this
group
Group Name:
+ + + + + +   + [% SET inactive = !group.is_active %] + [% group.description FILTER html_light FILTER inactive(inactive) %] +
+ + [% IF foundinactive %] +

(Note: [% terms.Bugs %] may not be added to [% FILTER inactive %]inactive + groups[% END %], only removed.)

+ [% END %] + +[% END %] + + +[% IF Param('move-enabled') && user.is_mover %] + +[% END %] + +[%############################################################################%] +[%# Select Menu Block #%] +[%############################################################################%] + +[% BLOCK selectmenu %] + +[% END %] + +[%############################################################################%] +[%# Status Block #%] +[%############################################################################%] + +[% BLOCK status_section %] + [% all_open_bugs = !current_bug_statuses.containsany(closedstates) %] + [% all_closed_bugs = !current_bug_statuses.containsany(openstates) %] + [% closed_status_array = [] %] + + + + + + + + + +[% 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 0000000..125a164 --- /dev/null +++ b/template/en/default/list/list-simple.html.tmpl @@ -0,0 +1,53 @@ +[%# 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 + #%] + +[%# INTERFACE: + # title: string. The title for this page. (optional) + #%] + +[% PROCESS global/variables.none.tmpl %] + +[%############################################################################%] +[%# Initialization #%] +[%############################################################################%] + +[% DEFAULT title = "$terms.Bug List" %] + +[%############################################################################%] +[%# Bug Table #%] +[%############################################################################%] + + + + + [% title FILTER html %] + + + + + + [% IF bugs.size == 0 %] +

[% terms.zeroSearchResults %].

+ [% ELSE %] + [% PROCESS list/table.html.tmpl %] + [% END %] + + + diff --git a/template/en/default/list/list.atom.tmpl b/template/en/default/list/list.atom.tmpl new file mode 100644 index 0000000..ed0c660 --- /dev/null +++ b/template/en/default/list/list.atom.tmpl @@ -0,0 +1,101 @@ +[%# 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): Walter Hoehn + # John Belmonte + # Jason Remillard + # Phil Ringnalda + # + # This is a template for generating an Atom representation of a buglist. + #%] + +[% PROCESS "global/field-descs.none.tmpl" %] + +[% DEFAULT title = "$terms.Bugzilla $terms.Bugs" %] + + + + [% title FILTER xml %] + + + [% bugs.sort('changedtime').last.changedtime FILTER time("%Y-%m-%dT%H:%M:%SZ", "UTC") + FILTER xml %] + [% urlbase FILTER html %]buglist.cgi?[% urlquerypart FILTER xml %] + + [% FOREACH bug = bugs %] + + [% "@" IF bug.secure_mode %][[% terms.Bug %] [%+ bug.bug_id FILTER xml %]] [% bug.short_desc FILTER xml %] + + [% urlbase FILTER xml %]show_bug.cgi?id=[% bug.bug_id FILTER xml %] + + [% bug.reporter_realname ? bug.reporter_realname : bug.reporter FILTER xml %] + + [% bug.changedtime FILTER time("%Y-%m-%dT%H:%M:%SZ", "UTC") FILTER xml %] + + [%# Filter out the entire block, so that we don't need to escape the html code out %] + [% FILTER xml %] + + + + + + + + + + + + + + + + + + + + + + + + + + + + [% IF Param("usetargetmilestone") %] + + + + [% END %] + + + + + + + +
FieldValue
[% columns.product.title FILTER html %][% bug.product FILTER html %]
[% columns.component.title FILTER html %][% bug.component FILTER html %]
[% columns.assigned_to_realname.title FILTER html %][% bug.assigned_to_realname ? bug.assigned_to_realname : bug.assigned_to FILTER html %]
[% columns.reporter_realname.title FILTER html %][% bug.reporter_realname ? bug.reporter_realname : bug.reporter FILTER html %]
[% columns.bug_status.title FILTER html %][% display_value("bug_status", bug.bug_status) FILTER html %]
[% columns.resolution.title FILTER html %] [% display_value("resolution", bug.resolution) FILTER html %]
[% columns.priority.title FILTER html %][% display_value("priority", bug.priority) FILTER html %]
[% columns.bug_severity.title FILTER html %] [% display_value("bug_severity", bug.bug_severity) FILTER html %]
[% columns.target_milestone.title FILTER html %][% bug.target_milestone FILTER html %]
[% columns.opendate.title FILTER html %][% bug.opendate FILTER html %]
[% columns.changeddate.title FILTER html %][% bug.changeddate FILTER html -%]
+ [% END %] +
+
+ [% END %] +
diff --git a/template/en/default/list/list.csv.tmpl b/template/en/default/list/list.csv.tmpl new file mode 100644 index 0000000..6114d6f --- /dev/null +++ b/template/en/default/list/list.csv.tmpl @@ -0,0 +1,46 @@ +[%# 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 + # Gervase Markham + #%] + +[% PROCESS "global/field-descs.none.tmpl" %] + +[% colsepchar = user.settings.csv_colsepchar.value %] + +bug_id +[% FOREACH column = displaycolumns %] + [% colsepchar %][% column FILTER csv %] +[% END %] + +[% FOREACH bug = bugs %] + [% bug.bug_id %] + [% FOREACH column = displaycolumns %] + [% colsepchar %] + [% IF column == "opendate" OR column == "changeddate" %] + [% rawcolumn = column.replace("date", "time") %] + [% bug.$column = bug.$rawcolumn FILTER time("%Y-%m-%d %H:%M:%S") %] + [% ELSIF column == 'bug_status' %] + [% bug.$column = display_value("bug_status", bug.$column) %] + [% ELSIF column == 'resolution' %] + [%- bug.$column = display_value("resolution", bug.$column) %] + [% END %] + [% bug.$column FILTER csv %] + [% END %] + +[% END %] diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl new file mode 100644 index 0000000..941b34a --- /dev/null +++ b/template/en/default/list/list.html.tmpl @@ -0,0 +1,291 @@ +[%# 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 + #%] + +[%# INTERFACE: + # searchtype: string. Type of search - either "series", "saved" or undef. + # ... + # defaultsavename: string. The default name for saving the query. + #%] + +[%############################################################################%] +[%# Template Initialization #%] +[%############################################################################%] + +[% PROCESS "global/field-descs.none.tmpl" %] + +[% title = "$terms.Bug List" %] +[% IF searchname || defaultsavename %] + [% title = title _ ": " _ (searchname OR defaultsavename) FILTER html %] +[% END %] + +[% qorder = order FILTER url_quote IF order %] + + +[%############################################################################%] +[%# Page Header #%] +[%############################################################################%] + +[% PROCESS global/header.html.tmpl + title = title + style = style + atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom" + javascript_urls = [ "js/util.js", "js/field.js", "js/yui/calendar.js" ] + style_urls = [ "skins/standard/buglist.css", "skins/standard/yui/calendar.css" ] + doc_section = "query.html#list" +%] + +
+ + [% currenttime FILTER time('%a %b %e %Y %T %Z') FILTER html %]
+
+ + [% IF debug %] +

[% query FILTER html %]

+ [% IF query_explain.defined %] +
[% query_explain FILTER html %]
+ [% END %] + [% END %] + + [% IF user.settings.display_quips.value == 'on' %] + [% DEFAULT quip = "$terms.Bugzilla would like to put a random quip here, but no one has entered any." %] + + [% quip FILTER html %] + + [% END %] + +
+ +[% IF toolong %] +

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

+[% END %] + +[% SET shown_types = [ + 'notequals', 'regexp', 'notregexp', 'lessthan', 'lessthaneq', + 'greaterthan', 'greaterthaneq', 'changedbefore', 'changedafter', + 'changedfrom', 'changedto', 'changedby', 'notsubstring', 'nowords', + 'nowordssubstr', 'notmatches', +] %] +
    +[% FOREACH desc_item = search_description %] +
  • + [% field_descs.${desc_item.field} FILTER html %]: + [% IF shown_types.contains(desc_item.type) || debug %] + ([% search_descs.${desc_item.type} FILTER html %]) + [% END %] + [% FOREACH val IN desc_item.value.split(',') %] + [%+ display_value(desc_item.field, val) FILTER html %][% ',' UNLESS loop.last %] + [% END %] + [% IF debug %] + ([% desc_item.term FILTER html %]) + [% END %] +
  • +[% END %] +
+ +
+ +[%############################################################################%] +[%# Preceding Status Line #%] +[%############################################################################%] + +[% IF bugs.size > 9 %] + + [% bugs.size %] [%+ terms.bugs %] found. + +[% END %] + +[%############################################################################%] +[%# Start of Change Form #%] +[%############################################################################%] + +[% IF dotweak %] +
+[% 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 %] + + +[% IF bugs.size == 0 %] + +[% END %] + +
+ +[%############################################################################%] +[%# Rest of Change Form #%] +[%############################################################################%] + +[% IF dotweak %] + [% PROCESS "list/edit-multiple.html.tmpl" %] +
+
+[% END %] + +[%############################################################################%] +[%# Navigation Bar #%] +[%############################################################################%] + + + + [% IF bugs.size > 0 %] + + + + + + [% END %] + + + + [% IF searchtype == "saved" %] + + [% ELSE %] + + + + [% END %] + +
+
+ [% FOREACH id = buglist %] + + [% END %] + + +
+
+ + [% FOREACH id = buglist %] + + [% END %] + + +
+ + [% IF user.is_timetracker %] +
+ + +
+ [% END %] +
  + Edit Search + + | + + Forget Search '[% searchname FILTER html %]' +   +
+ as + + + + +
+
+ +[% IF one_product.defined && bugs.size %] +

+ [% PROCESS enter_bug_link %] +

+[% END %] + +[%############################################################################%] +[%# Page Footer #%] +[%############################################################################%] + +[% PROCESS global/footer.html.tmpl %] + +[% BLOCK edit_search_url %] + [% editqueryname = searchname OR defaultsavename OR '' %] + query.cgi?[% urlquerypart FILTER html %] + [%- IF editqueryname != '' %]&known_name= + [%- editqueryname FILTER url_quote %] + [% END %] +[% END %] + +[% BLOCK enter_bug_link %] + File + a new [% terms.bug %] + [% IF one_product.defined %] + in the "[% one_product.name FILTER html %]" product + [% END %] +[% END %] diff --git a/template/en/default/list/list.ics.tmpl b/template/en/default/list/list.ics.tmpl new file mode 100644 index 0000000..3f9e2b8 --- /dev/null +++ b/template/en/default/list/list.ics.tmpl @@ -0,0 +1,103 @@ +[%# 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): William Jon McCann + #%] +[% PROCESS global/variables.none.tmpl %] +BEGIN:VCALENDAR +CALSCALE:GREGORIAN +[%+ PROCESS ics_prodid +%] +VERSION:2.0 +[% FOREACH bug = bugs %] +BEGIN:VTODO +[%+ PROCESS ics_dtstart +%] +[%+ PROCESS ics_summary +%] +[%+ PROCESS ics_uid base_url=urlbase bug_id=bug.bug_id +%] +[%+ PROCESS ics_url base_url=urlbase bug_id=bug.bug_id +%] +[%+ PROCESS ics_status bug_status = bug.bug_status +%] +[%+ PROCESS ics_dtstamp +%] +[%+ ics_priorities.${bug.priority} FILTER ics('PRIORITY') +%] +[% IF bug.changeddate %] +[%+ bug.changedtime FILTER time("%Y%m%dT%H%M%SZ", "UTC") FILTER ics('LAST-MODIFIED') +%] +[% END %] +[% IF bug.percentage_complete %] +[%+ bug.percentage_complete FILTER format('%d') FILTER ics('PERCENT-COMPLETE') +%] +[% END %] +[% IF bug.product %] +[%+ bug.product FILTER ics('X-BUGZILLA-PRODUCT') +%] +[% END %] +[% IF bug.component %] +[%+ bug.component FILTER ics('X-BUGZILLA-COMPONENT') +%] +[% END %] +[% IF bug.version %] +[%+ bug.version FILTER ics('X-BUGZILLA-VERSION') +%] +[% END %] +[% IF bug.keywords %] +[%+ bug.keywords FILTER ics('X-BUGZILLA-KEYWORDS') +%] +[% END %] +END:VTODO +[% END %] +END:VCALENDAR + +[% BLOCK ics_prodid %] + [% "-//Mozilla/Bugzilla $constants.BUGZILLA_VERSION//EN" FILTER ics('PRODID') %] +[% END %] + +[% BLOCK ics_uid %] + [% "${bug_id}@${base_url}" FILTER url_quote FILTER ics('UID') %] +[% END %] + +[% BLOCK ics_url %] + [% "${base_url}show_bug.cgi?id=${bug_id}" FILTER url_quote FILTER ics('URL;VALUE=URI') %] +[% END %] + +[% BLOCK ics_dtstart %] + [% bug.opentime FILTER time("%Y%m%dT%H%M%SZ", "UTC") FILTER ics('DTSTART') %] +[% END %] + +[% BLOCK ics_dtstamp %] + [% currenttime FILTER time("%Y%m%dT%H%M%SZ", "UTC") FILTER ics('DTSTAMP') %] +[% END %] + +[% BLOCK ics_status %] + [% status = "" %] + [% FOREACH state = closedstates %] + [% IF bug_status == state %] + [% status = 'COMPLETED' %] + [% LAST %] + [% END %] + [% END %] + [% IF NOT status %] + [% IF bug_status == 'ASSIGNED' %] + [% status = 'IN-PROGRESS' %] + [% ELSE %] + [% status = 'NEEDS-ACTION' %] + [% END %] + [% END %] + [% status FILTER ics('STATUS') %] +[% END %] + +[% BLOCK ics_summary %] + [% IF bug.short_desc %] + [% summary = bug.short_desc %] + [% ELSIF bug.short_short_desc %] + [% summary = bug.short_short_desc %] + [% ELSE %] + [% summary = "$terms.Bug $bug.bug_id" %] + [% END %] + [% summary FILTER ics('SUMMARY') %] +[% END %] diff --git a/template/en/default/list/list.js.tmpl b/template/en/default/list/list.js.tmpl new file mode 100644 index 0000000..7e9664c --- /dev/null +++ b/template/en/default/list/list.js.tmpl @@ -0,0 +1,37 @@ +[%# 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 + #%] + +// Note: only publicly-accessible bugs (those not in any group) will be +// listed when using this JavaScript format. This is to prevent malicious +// sites stealing information about secure bugs. + +bugs = new Array; + +[% FOREACH bug = bugs %] + bugs[[% bug.bug_id %]] = [ + [% FOREACH column = displaycolumns %] + "[%- bug.$column FILTER js -%]"[% "," UNLESS loop.last %] + [% END %] + ]; +[% END %] + +if (window.buglistCallback) { + buglistCallback(bugs); +} diff --git a/template/en/default/list/list.rdf.tmpl b/template/en/default/list/list.rdf.tmpl new file mode 100644 index 0000000..99c06c1 --- /dev/null +++ b/template/en/default/list/list.rdf.tmpl @@ -0,0 +1,56 @@ +[%# 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 + #%] + + + + + + + + [% currenttime FILTER time('%Y-%m-%d %T %Z') FILTER html %] + + + [% FOREACH bug = bugs %] +
  • + + + + [% bug.bug_id %] + + [% FOREACH column = displaycolumns %] + [% bug.$column FILTER html %] + [% END %] + + + +
  • + + [% END %] + +
    + +
    + +
    + +
    diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl new file mode 100644 index 0000000..1404b2e --- /dev/null +++ b/template/en/default/list/quips.html.tmpl @@ -0,0 +1,168 @@ +[%# 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 + #%] + +[%# INTERFACE: + # added_quip: string. Defined if the CGI added a quip data before + # displaying anything; if defined, its value is that quip. + # show_quips: boolean. True if we are showing the entire quip list. + # quips: list of strings. Defined if and only if show_quips is true. + # List of all quips. + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% PROCESS global/header.html.tmpl + title = "$terms.Bugzilla Quip System" + header = "Add your own clever headline" + %] + +[% IF added_quip %] +

    + + Your quip '[% added_quip FILTER html %]' has been added. + [% IF Param("quip_list_entry_control") == "moderated" AND !user.in_group('admin') %] + It will be used as soon as it gets approved. + [% END %] + +

    +[% END %] + +[% IF deleted_quip %] +

    + + The quip '[% deleted_quip FILTER html %]' has been deleted. + +

    +[% END %] + +[% IF approved or unapproved %] +

    [% approved.size %] quips approved and [% unapproved.size %] quips unapproved

    +[% END %] + + +

    + [% terms.Bugzilla %] will pick a random quip for the headline on each + [% terms.bug %] list. +

    + +[% IF Param("quip_list_entry_control") != "closed" %] +

    + 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 Param("quip_list_entry_control") == "moderated" AND !user.in_group('admin') %] + Note that your quip has to be approved before it is used. + [% END %] +

    + +
    + + +

    + +

    +
    +[% ELSE %] +

    No new entries may be submitted at this time. +

    +[% END %] + +[% IF show_quips %] + [% IF !user.in_group('admin') %] +

    + Existing quips: +

    +
      + [% FOREACH quipid = quipids %] + [% NEXT IF NOT quips.$quipid.approved %] +
    • [% quips.$quipid.quip FILTER html %]
    • + [% END %] +
    + [% ELSE %] +

    Edit existing quips:

    +

    + Note: Only approved quips will be shown. + If the parameter 'quip_list_entry_control' is set to open, + entered quips are automatically approved. +

    +
    + + + + + + + + + [% FOREACH quipid = quipids %] + + + + + + + [% END %] + +
    QuipAuthorActionApproved
    [% quips.$quipid.quip FILTER html %] + [% userid = quips.$quipid.userid %] + [% users.$userid FILTER html %] + [% "Unknown" IF NOT users.$userid %] + + + Delete + + + + +
    + + + +
    +
    + [% END %] +[% ELSE %] +

    + Those who like their wisdom in large doses can + view + [% IF user.in_group('admin') %] + and edit + [% END %] + the whole quip list. +

    +[% END %] + +[% PROCESS global/footer.html.tmpl %] 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 0000000..d1c157f --- /dev/null +++ b/template/en/default/list/server-push.html.tmpl @@ -0,0 +1,47 @@ +[%# 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 + #%] + +[%# INTERFACE: + # debug: boolean. True if we want the search displayed while we wait. + # query: string. The SQL query which makes the buglist. + #%] + +[% PROCESS global/variables.none.tmpl %] + + + + [% terms.Bugzilla %] is pondering your search + + +

    Please stand by ...

    + + [% IF debug %] +

    + [% FOREACH debugline = debugdata %] + [% debugline FILTER html %]
    + [% END %] +

    +

    + [% 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 0000000..282ea51 --- /dev/null +++ b/template/en/default/list/table.html.tmpl @@ -0,0 +1,260 @@ +[%# 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 + # Jesse Clark + #%] + +[%############################################################################%] +[%# Initialization #%] +[%############################################################################%] + +[%# Don't display the table or do any processing if there are no bugs + # to display %] +[% RETURN IF !bugs.size %] + +[%# 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. + # wrap is set if a column's contents should be allowed to be word-wrapped + # by the browser. + #%] + +[% PROCESS "global/field-descs.none.tmpl" %] +[% field_descs.short_short_desc = field_descs.short_desc %] +[% field_descs.assigned_to_realname = field_descs.assigned_to %] +[% field_descs.reporter_realname = field_descs.reporter %] +[% field_descs.qa_contact_realname = field_descs.qa_contact %] + +[% abbrev = + { + "bug_severity" => { maxlength => 3 , title => "Sev" } , + "priority" => { maxlength => 3 , title => "Pri" } , + "rep_platform" => { maxlength => 3 , title => "Plt" } , + "bug_status" => { maxlength => 4 } , + "assigned_to" => { maxlength => 30 , ellipsis => "..." } , + "assigned_to_realname" => { maxlength => 20 , ellipsis => "..." } , + "reporter" => { maxlength => 30 , ellipsis => "..." } , + "reporter_realname" => { maxlength => 20 , ellipsis => "..." } , + "qa_contact" => { maxlength => 30 , ellipsis => "..." , title => "QAContact" } , + "qa_contact_realname" => { maxlength => 20 , ellipsis => "..." , title => "QAContact" } , + "resolution" => { maxlength => 4 } , + "short_desc" => { wrap => 1 } , + "short_short_desc" => { maxlength => 60 , ellipsis => "..." , wrap => 1 } , + "status_whiteboard" => { title => "Whiteboard" , wrap => 1 } , + "keywords" => { wrap => 1 } , + "flagtypes.name" => { wrap => 1 } , + "component" => { maxlength => 8 , title => "Comp" } , + "product" => { maxlength => 8 } , + "version" => { maxlength => 5 , title => "Vers" } , + "op_sys" => { maxlength => 4 } , + "target_milestone" => { title => "TargetM" } , + "percentage_complete" => { format_value => "%d %%" } , + } +%] + +[% PROCESS bug/time.html.tmpl %] + +[%############################################################################%] +[%# Table Header #%] +[%############################################################################%] + +[% tableheader = BLOCK %] + + + [% IF dotweak %] + + [% END %] + + + [% IF splitheader %] + + [% FOREACH id = displaycolumns %] + [% NEXT UNLESS loop.count() % 2 == 0 %] + [% column = columns.$id %] + [% PROCESS columnheader %] + [% END %] + + + [% IF dotweak %] + + [% END %] + + + [% FOREACH id = displaycolumns %] + [% NEXT IF 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 %] + +[% BLOCK new_order %] + [% desc = '' %] + [% IF (om = order.match("\\b$id( DESC)?")) %] + [% desc = ' DESC' IF NOT om.0 %] + [% END %] + [% id _ desc FILTER url_quote %] + [% IF id != 'bug_id' AND order %] + [% ',' _ order.remove("\\b$id( DESC)?(,\\s*|\$)") FILTER url_quote %] + [% END %] +[% END %] + +[% BLOCK order_arrow %] + [% IF order.match("^$id DESC") %] + + [% ELSIF order.match("^$id(,\\s*|\$)") %] + + [% ELSIF order.match("\\b$id DESC") %] + + [% ELSIF order.match("\\b$id(,\\s*|\$)") %] + + [% END %] +[% END %] + +[%############################################################################%] +[%# Bug Table #%] +[%############################################################################%] + +[% Hook.process("before_table") %] + +[% tableheader %] + +[% FOREACH bug = bugs %] + [% count = loop.count() %] + + + + [% IF dotweak %] + + [% END %] + + + [% FOREACH column = displaycolumns %] + + [% END %] + + + + [% IF loop.last() && time_info.time_present == 1 %] + [% PROCESS time_summary_line %] + [% END %] + +[% END %] + +
      + ID + [% PROCESS order_arrow id='bug_id' ~%] + +
      
    + + [%- abbrev.$id.title || field_descs.$id || column.title -%] + [% PROCESS order_arrow ~%] + +
    + + + [% bug.bug_id %] + [%+ '[SEC]' IF bug.secure_mode %] + + [% IF abbrev.$column.maxlength %] + + [% END %] + [% IF abbrev.$column.format_value %] + [%- bug.$column FILTER format(abbrev.$column.format_value) FILTER html -%] + [% ELSIF column == 'actual_time' || + column == 'remaining_time' || + column == 'estimated_time' %] + [% PROCESS formattimeunit time_unit=bug.$column %] + [%# Display the login name of the user if their real name is empty. %] + [% ELSIF column.match('_realname$') && bug.$column == '' %] + [% SET login_column = column.remove('_realname$') %] + [% bug.${login_column}.truncate(abbrev.$column.maxlength, + abbrev.$column.ellipsis) FILTER html %] + + [% ELSE %] + [%- display_value(column, bug.$column).truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html -%] + [% END %] + [% IF abbrev.$column.maxlength %] + + [% END %] +
    + +[% BLOCK time_summary_line %] + + [% columns_to_span = 1 %] [%# bugID %] + [% IF dotweak %] + [% columns_to_span = columns_to_span + 1 %] + [% END %] + [% FOREACH column = displaycolumns %] + [% IF column == 'actual_time' || + column == 'remaining_time' || + column == 'estimated_time' || + column == 'percentage_complete' %] + [% IF columns_to_span > 0 %] + Totals + [% columns_to_span = 0 %] + [% END %] + [% IF column == 'percentage_complete' %] + [% time_info.percentage_complete + FILTER format(abbrev.$column.format_value) FILTER html %] + [% ELSE %] + + [%- PROCESS formattimeunit time_unit=time_info.$column %] + [% END %] + [% ELSIF columns_to_span == 0 %] [%# A column following the first total %] +   + [% ELSE %] [%# We haven't gotten to a time column yet, keep computing span %] + [% columns_to_span = columns_to_span + 1 %] + [% END %] + [% END %] + +[% END %] -- cgit v1.2.1