From 4bd1de9fddf7b02e76184e8af3fe808037040285 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 13 Apr 2016 00:54:57 +0200 Subject: Bug 398546 - config.cgi using the RDF format can generate a pretty large file r=dkl --- template/en/default/config.rdf.tmpl | 45 ++++++++++++++++++--------------- template/en/default/filterexceptions.pl | 2 ++ 2 files changed, 26 insertions(+), 21 deletions(-) (limited to 'template') diff --git a/template/en/default/config.rdf.tmpl b/template/en/default/config.rdf.tmpl index c1b5b0575..814b5a1d9 100644 --- a/template/en/default/config.rdf.tmpl +++ b/template/en/default/config.rdf.tmpl @@ -130,10 +130,11 @@ [% FOREACH product = products %] + [% uri_product_name = product.name FILTER uri %]
  • - + [% product.name FILTER html %] - [% product.allows_unconfirmed FILTER html %] + [% product.allows_unconfirmed FILTER none %] [% IF Param('useclassification') %] [% class_names.${product.classification_id}.name FILTER html %] [% END %] @@ -141,7 +142,7 @@ [% FOREACH comp = product.components %]
  • + %]&product=[% uri_product_name %]"/> [% END %] @@ -150,7 +151,7 @@ [% FOREACH version = product.versions %]
  • + %]&product=[% uri_product_name %]"/> [% END %] @@ -160,12 +161,11 @@ [% FOREACH milestone = product.milestones %]
  • + %]&product=[% uri_product_name %]"/> [% END %] [% END %] -
  • [% END %] @@ -176,12 +176,13 @@ [% FOREACH product = products %] + [% uri_product_name = product.name FILTER uri %] [% FOREACH comp = product.components %]
  • + %]&product=[% uri_product_name %]"> [% comp.name FILTER html %] - [% comp.is_active FILTER html %] + [% comp.is_active FILTER none %] [% IF show_flags %] @@ -189,7 +190,7 @@ [% FOREACH flag_type = flag_types %] [% NEXT UNLESS flag_type.is_active %] [% all_visible_flag_types.${flag_type.id} = flag_type %] -
  • [% END %] @@ -205,12 +206,13 @@ [% FOREACH product = products %] + [% uri_product_name = product.name FILTER uri %] [% FOREACH version = product.versions %]
  • + %]&product=[% uri_product_name %]"> [% version.name FILTER html %] - [% version.is_active FILTER html %] + [% version.is_active FILTER none %]
  • [% END %] @@ -222,12 +224,13 @@ [% FOREACH product = products %] + [% uri_product_name = product.name FILTER uri %] [% FOREACH milestone = product.milestones %]
  • + %]&product=[% uri_product_name %]"> [% milestone.name FILTER html %] - [% milestone.is_active FILTER html %] + [% milestone.is_active FILTER none %]
  • [% END %] @@ -241,15 +244,15 @@ [% FOREACH flag_type = all_visible_flag_types.values.sort('name') %]
  • - - [% flag_type.id FILTER html %] + [% flag_type.id %] [% flag_type.name FILTER html %] [% flag_type.description FILTER html %] [% flag_type.target_type FILTER html %] - [% flag_type.is_requestable FILTER html %] - [% flag_type.is_requesteeble FILTER html %] - [% flag_type.is_multiplicable FILTER html %] + [% flag_type.is_requestable FILTER none %] + [% flag_type.is_requesteeble FILTER none %] + [% flag_type.is_multiplicable FILTER none %] [% IF user.in_group("editcomponents") %] [% flag_type.grant_group.name FILTER html %] [% flag_type.request_group.name FILTER html %] @@ -271,12 +274,12 @@ [% (field_descs.${item.name} OR item.description) FILTER html %] [%-# These values are meaningful for custom fields only. %] [% IF item.custom %] - [% item.type FILTER html %] + [% item.type FILTER none %] [% field_types.${item.type} FILTER html %] - [% item.enter_bug FILTER html %] + [% item.enter_bug FILTER none %] [% END %] [% IF item.is_active.defined %] - [% item.is_active FILTER html %] + [% item.is_active FILTER none %] [% END %]
  • diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index f83efaa88..69978a722 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -448,6 +448,8 @@ 'config.rdf.tmpl' => [ 'escaped_urlbase', + 'uri_product_name', + 'flag_type.id' ], ); -- cgit v1.2.3-24-g4f1b