diff options
Diffstat (limited to 'extensions/BMO/template/en/default/pages')
-rw-r--r-- | extensions/BMO/template/en/default/pages/bug-writing.html.tmpl | 30 | ||||
-rw-r--r-- | extensions/BMO/template/en/default/pages/custom_forms.html.tmpl | 40 |
2 files changed, 48 insertions, 22 deletions
diff --git a/extensions/BMO/template/en/default/pages/bug-writing.html.tmpl b/extensions/BMO/template/en/default/pages/bug-writing.html.tmpl index f326d1821..21ed3b040 100644 --- a/extensions/BMO/template/en/default/pages/bug-writing.html.tmpl +++ b/extensions/BMO/template/en/default/pages/bug-writing.html.tmpl @@ -1,25 +1,11 @@ -[%# 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/ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. # - # 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): David Lawrence <dkl@mozilla.com> + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. #%] -<html> - <head> - <meta http-equiv="refresh" content="0;url=https://developer.mozilla.org/en/Bug_writing_guidelines"> - </head> -</html> +[% PROCESS global/redirect.html.tmpl + url = "https://developer.mozilla.org/en/Bug_writing_guidelines" +%] diff --git a/extensions/BMO/template/en/default/pages/custom_forms.html.tmpl b/extensions/BMO/template/en/default/pages/custom_forms.html.tmpl new file mode 100644 index 000000000..d484d730c --- /dev/null +++ b/extensions/BMO/template/en/default/pages/custom_forms.html.tmpl @@ -0,0 +1,40 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% PROCESS global/header.html.tmpl + title = "Custom Bug Entry Forms" +%] + +[% + visible_forms = {}; + PROCESS bug/create/custom_forms.none.tmpl; + FOREACH product = custom_forms.keys; + product_forms = []; + FOREACH form = custom_forms.$product; + NEXT IF form.group && !user.in_group(form.group); + product_forms.push(form); + END; + NEXT UNLESS product_forms.size; + visible_forms.$product = product_forms; + END; +%] + +<h1>Custom [% terms.Bug %] Entry Forms</h1> + +[% FOREACH product = visible_forms.keys.sort %] + <h3>[% product FILTER html %]</h3> + <ul> + [% FOREACH form = visible_forms.$product.sort("title") %] + <li> + <a href="[% form.link FILTER none %]">[% form.title FILTER html %]</a> + </li> + [% END %] + </ul> +[% END %] + +[% PROCESS global/footer.html.tmpl %] |