[Openfirst-cvscommit] www/htdocs/bugzilla/list list.csv.tmpl,NONE,1.1 list.ics.tmpl,NONE,1.1 list.js
Brought to you by:
xtimg
From: Tim G. <xt...@us...> - 2005-05-15 14:38:32
|
Update of /cvsroot/openfirst/www/htdocs/bugzilla/list In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28397/list Added Files: list.csv.tmpl list.ics.tmpl list.js.tmpl list.rdf.tmpl Log Message: Bring templates up to date for Bugzilla 2.18.1 --- NEW FILE: list.rdf.tmpl --- [% template_version = "1....@bu..." %] [%# 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 <my...@mo...> #%] <?xml version="1.0"?> <!-- [% template_version %] --> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bz="http://www.bugzilla.org/rdf#" xmlns:nc="http://home.netscape.com/NC-rdf#"> <bz:result rdf:about="[% Param('urlbase') %]buglist.cgi?[% urlquerypart FILTER html %]"> <bz:installation rdf:resource="[% Param('urlbase') %]" /> <bz:bugs> <Seq> [% FOREACH bug = bugs %] <li> <bz:bug rdf:about="[% Param('urlbase') %]show_bug.cgi?id=[% bug.bug_id %]"> <bz:id nc:parseType="Integer">[% bug.bug_id %]</bz:id> [% FOREACH column = displaycolumns %] <bz:[% column %][% ' nc:parseType="Integer"' IF column == "votes" %]>[% bug.$column FILTER html %]</bz:[% column %]> [% END %] </bz:bug> </li> [% END %] </Seq> </bz:bugs> </bz:result> </RDF> --- NEW FILE: list.ics.tmpl --- [%# 1....@bu... %] [%# 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 <mc...@jh...> #%] [% 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=Param('urlbase') bug_id=bug.bug_id +%] [%+ PROCESS ics_url base_url=Param('urlbase') bug_id=bug.bug_id +%] [%+ PROCESS ics_status bug_status = bug.bug_status +%] [%+ PROCESS ics_dtstamp +%] [% IF bug.changeddate %] [%+ bug.changeddate 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 $VERSION//EN" FILTER ics('PRODID') %] [% END %] [% BLOCK ics_uid %] [% "${bug_id}@${base_url}" FILTER uri FILTER ics('UID') %] [% END %] [% BLOCK ics_url %] [% "${base_url}show_bug.cgi?id=${bug_id}" FILTER uri FILTER ics('URL;VALUE=URI') %] [% END %] [% BLOCK ics_dtstart %] [% bug.opendate FILTER ics('DTSTART') %] [% END %] [% BLOCK ics_dtstamp %] [% currenttime 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 %] --- NEW FILE: list.csv.tmpl --- [%# 1....@bu... %] [%# 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 <my...@mo...> # Gervase Markham <ge...@ge...> #%] [% PROCESS global/variables.none.tmpl %] bug_id, [% FOREACH column = displaycolumns %] [% column FILTER csv %], [% END %] [% FOREACH bug = bugs %] [% bug.bug_id %], [% FOREACH column = displaycolumns %] [% bug.$column FILTER csv %], [% END %] [% END %] --- NEW FILE: list.js.tmpl --- [%# 1....@bu... %] [%# 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 <ge...@ge...> #%] // 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); } |