From c3a95ddecfea0ce531c125f6090082b7bf7b5bad Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 8 Aug 2011 01:25:44 -0400 Subject: Bug 341809 - bugzilla.dtd does not include any custom fields (automate DTD creation)) r=mkanat, a=LpSolit --- Bugzilla/Constants.pm | 19 +-- bugzilla.dtd | 107 ----------------- template/en/default/bug/show.xml.tmpl | 4 +- template/en/default/pages/bugzilla.dtd.tmpl | 178 ++++++++++++++++++++++++++++ 4 files changed, 191 insertions(+), 117 deletions(-) delete mode 100644 bugzilla.dtd create mode 100644 template/en/default/pages/bugzilla.dtd.tmpl diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 1d9d07a5b..9dd8b76fb 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -438,15 +438,16 @@ use constant LEGAL_CONTENT_TYPES => ('application', 'audio', 'image', 'message', use constant contenttypes => { - "html"=> "text/html" , - "rdf" => "application/rdf+xml" , - "atom"=> "application/atom+xml" , - "xml" => "application/xml" , - "js" => "application/x-javascript" , - "json"=> "application/json" , - "csv" => "text/csv" , - "png" => "image/png" , - "ics" => "text/calendar" , + "html" => "text/html" , + "rdf" => "application/rdf+xml" , + "atom" => "application/atom+xml" , + "xml" => "application/xml" , + "dtd" => "application/xml-dtd" , + "js" => "application/x-javascript" , + "json" => "application/json" , + "csv" => "text/csv" , + "png" => "image/png" , + "ics" => "text/calendar" , }; # Usage modes. Default USAGE_MODE_BROWSER. Use with Bugzilla->usage_mode. diff --git a/bugzilla.dtd b/bugzilla.dtd deleted file mode 100644 index 61d7969f6..000000000 --- a/bugzilla.dtd +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl index dae207f26..c0f32d69e 100644 --- a/template/en/default/bug/show.xml.tmpl +++ b/template/en/default/bug/show.xml.tmpl @@ -20,8 +20,10 @@ # #%] [% PROCESS bug/time.html.tmpl %] +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] - + + # Dave Miller + # Bradley Baetz + # Myk Mylez + # Colin Ogilvie + # Joel Peshkin + # Frédéric Buclin + # Gervase Markham + # Max Kanat-Alexander + # David Lawrence + # + #%] +[% USE Bugzilla %] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +[% FOREACH field = Bugzilla.active_custom_fields %] + +[% END %] + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3-24-g4f1b