summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-02-13 16:36:05 +0100
committerByron Jones <bjones@mozilla.com>2012-02-13 16:36:05 +0100
commit88e0ac4cb8bd8932005341e47ee7310a956366d7 (patch)
treea5b6b0a2d8a430b2334b560d1edf767445486d2b /extensions/BMO/template
parent40f3f69f9abc0c8cd3e0b4f6fbb445227e7fd370 (diff)
downloadbugzilla-88e0ac4cb8bd8932005341e47ee7310a956366d7.tar.gz
bugzilla-88e0ac4cb8bd8932005341e47ee7310a956366d7.tar.xz
Bug 725923: backport bug 663835 to extend test coverage to extensions
Diffstat (limited to 'extensions/BMO/template')
-rw-r--r--extensions/BMO/template/en/default/bug/create/user-message.html.tmpl128
-rw-r--r--extensions/BMO/template/en/default/pages/etiquette.html.tmpl8
-rw-r--r--extensions/BMO/template/en/default/pages/user_activity.html.tmpl16
3 files changed, 24 insertions, 128 deletions
diff --git a/extensions/BMO/template/en/default/bug/create/user-message.html.tmpl b/extensions/BMO/template/en/default/bug/create/user-message.html.tmpl
index 35f086abf..ccf008a38 100644
--- a/extensions/BMO/template/en/default/bug/create/user-message.html.tmpl
+++ b/extensions/BMO/template/en/default/bug/create/user-message.html.tmpl
@@ -19,123 +19,19 @@
# Contributor(s): Matthew Tuck <matty@chariot.net.au>
#%]
-[%# Migration note: this file corresponds to the old Param
- # 'entryheaderhtml'
- #%]
-
-[%# You can make the output of this template product-specific by using
- # Template Toolkit IF statements. The current product name is stored in
- # the 'product' variable.
- #%]
-
[% PROCESS global/variables.none.tmpl %]
-[% IF product == "Bugzilla" %]
- [% IF format == "guided" %]
-<p align="center">
-<table WIDTH="90%" BGCOLOR="#FFFFFF" style="border: 8px double red;"><tr>
-<td valign="middle" align="center"><img width="200" height="200" src="extensions/BMO/web/images/stop-sign.gif"></td>
-<td align="center" valign="middle">
-<font size="+2"><b>
-Are you here because you have a problem with
-<a href="http://www.mozilla.com/firefox/">Firefox</a> or
-<a href="http://www.mozilla.com/thunderbird/">Thunderbird</a>?</b><br>
-<b>If so, you're in the wrong place.</b></font><br>
-
-If you are having a problem with Firefox,
-<a href="https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox">file
-your [% terms.bug %] in the Firefox product</a>.<br>
-
-If you are having a problem with Thunderbird,
-<a href="https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird">file
-your [% terms.bug %] in the Thunderbird product</a>.<br>
-
-If none of those is a good fit for your [% terms.bug %], you can pick from
-the <a href="https://bugzilla.mozilla.org/enter_bug.cgi">full product list</a>.
-</td></tr></table>
-
-</p>
-
-<h3>Step 0 - Make sure you are in the right place</h3>
-
- [% END %]
-
-<p>
-<b>The product you have chosen is for [% terms.bug %] reports and enhancement requests for the
-<a href="http://www.bugzilla.org/">[% terms.Bugzilla +%] [%+ terms.bug %] tracking software</a> only.</b>
-If your [% terms.bug %] is not reporting that [% terms.Bugzilla %] is broken or that you'd like
-a new feature in [% terms.Bugzilla %], your [% terms.bug %] report does not belong in this product.
-[% IF format == "guided" %]
- See the instructions next to the stop sign above.
-[% ELSE %]
- Please <a href="https://bugzilla.mozilla.org/enter_bug.cgi">choose a different product</a>.
-[% END %]
-</p>
-
-<p><b>We WILL NOT accept [% terms.bug %] reports for [% terms.Bugzilla %]
-installed via the Debian packaging system. If you obtained [% terms.Bugzilla %] from Debian,
-please visit the <a href="http://www.debian.org/support">Debian Support page</a>,
-or file a [% terms.bug %] on the <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=bugzilla">Debian
-[% terms.Bug %] Tracker</a>.</b> The Debian package maintainer will then determine whether the [% terms.bug %]
-is specific to the package or not, and can move the [% terms.bug %] "upstream" if needed.</p>
-
-<p>
-[% terms.Bugs %] specific to bugzilla.mozilla.org, rather than the [% terms.Bugzilla %] software in
-general (which is used by many sites), should be filed in the
-<a href="enter_bug.cgi?product=mozilla.org">mozilla.org product</a>.
-</p>
-
-<p>
-Please do not file test [% terms.bugs %] or support requests here! You
-can test [% terms.Bugzilla %] at
-<a href="http://landfill.bugzilla.org/">landfill.bugzilla.org</a> and ask
-for support in the
-<a href="news://news.mozilla.org/mozilla.support.bugzilla">
-mozilla.support.bugzilla newsgroup</a>,
-<a href="mailto:support-bugzilla&#64;lists.mozilla.org">
-support-bugzilla&#64;lists.mozilla.org mailing list</a>, or
-<a href="irc://irc.mozilla.org/mozwebtools">#mozwebtools IRC channel</a>.
-</p>
-
-<hr>
-
-[% ELSE %]
-
- [% IF format != "guided" %]
-<p>
-[% UNLESS cloned_bug_id %]
-Consider using the
-<a href="enter_bug.cgi?product=[% product.name FILTER html %]&amp;format=guided"
-><img src="extensions/BMO/web/images/guided.png" width="16" height="16" align="absmiddle" border="0">
-[% terms.Bugzilla %] Helper</a> instead of this form.
-[% END +%]
-Before reporting a [% terms.bug %], make sure you've read our
-<a href="http://www.mozilla.org/quality/bug-writing-guidelines.html">
-[% terms.bug %] writing guidelines</a> and double checked that your [% terms.bug %] hasn't already
-been reported. Consult our list of
-<a href="https://bugzilla.mozilla.org/duplicates.cgi">
-most frequently reported [% terms.bugs %]</a> and
-<a href="https://bugzilla.mozilla.org/query.cgi">search through descriptions</a>
-of previously reported [% terms.bugs %].
-</p>
- [% ELSE %]
<p>
- This form prompts you for the information required to
- file a good [% terms.bug %] report (or enhancement request.)
- It may seem lengthy, but developers need all this information
- to understand and reproduce the [% terms.bug %], which is the first step towards
- fixing it. Please note that <strong>we do not accept [% terms.bug %] reports by
- email</strong> - please do not email developers or mozilla.org staff
- with [% terms.bug %] reports. <font color="red">Also, please do not
- file [% terms.bugs %] on browser/email software older than two weeks - first,
- download a newer build of
- <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/">Firefox</a>,
- <a href="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central/">Thunderbird</a>,
- <a href="http://ftp.mozilla.org/pub/mozilla.org/seamonkey/nightly/latest-comm-central-trunk/">SeaMonkey</a>,
- or
- <a href="http://ftp.mozilla.org/pub/mozilla.org/camino/nightly/">Camino</a>
- and check that the problem is still present.
- </font>
+ [% UNLESS cloned_bug_id %]
+ Consider using the
+ <a href="enter_bug.cgi?product=[% product.name FILTER html %]&amp;format=guided"
+ ><img src="extensions/BMO/web/images/guided.png" width="16" height="16" align="absmiddle" border="0">
+ [%+ terms.Bugzilla %] Helper</a> instead of this form.
+ [% END +%]
+ Before reporting a [% terms.bug %], make sure you've read our
+ <a href="http://www.mozilla.org/quality/bug-writing-guidelines.html">
+ [% terms.bug %] writing guidelines</a> and double checked that your [% terms.bug %] hasn't already
+ been reported. Consult our list of <a href="https://bugzilla.mozilla.org/duplicates.cgi">
+ most frequently reported [% terms.bugs %]</a> and <a href="https://bugzilla.mozilla.org/query.cgi">
+ search through descriptions</a> of previously reported [% terms.bugs %].
</p>
- [% END %]
-[% END %]
diff --git a/extensions/BMO/template/en/default/pages/etiquette.html.tmpl b/extensions/BMO/template/en/default/pages/etiquette.html.tmpl
index 8bccaea9d..23302cbb5 100644
--- a/extensions/BMO/template/en/default/pages/etiquette.html.tmpl
+++ b/extensions/BMO/template/en/default/pages/etiquette.html.tmpl
@@ -20,16 +20,16 @@
# Gervase Markham <gerv@gerv.net>
#%]
-[% INCLUDE global/header.html.tmpl
- title = "$terms.Bugzilla Etiquette"
+[% PROCESS global/header.html.tmpl
+ title = "Bugzilla Etiquette"
style = "li { margin: 5px } .heading { font-weight: bold }" %]
<p>
There's a number of <i lang="fr">faux pas</i> you can commit when using
- [% terms.Bugzilla %]. At the very
+ [%+ terms.Bugzilla %]. At the very
least, these will make Mozilla contributors upset at you; if committed enough
times they will cause those contributors to demand the disabling of your
- [% terms.Bugzilla %] account. So, ignore this advice at your peril.
+ [%+ terms.Bugzilla %] account. So, ignore this advice at your peril.
</p>
<p>
diff --git a/extensions/BMO/template/en/default/pages/user_activity.html.tmpl b/extensions/BMO/template/en/default/pages/user_activity.html.tmpl
index 6982148cd..3e6695484 100644
--- a/extensions/BMO/template/en/default/pages/user_activity.html.tmpl
+++ b/extensions/BMO/template/en/default/pages/user_activity.html.tmpl
@@ -144,7 +144,7 @@
[% END %]
<td>
[% IF change.attachid %]
- <a href="attachment.cgi?id=[% change.attachid FILTER url %]"
+ <a href="attachment.cgi?id=[% change.attachid FILTER uri %]"
title="[% change.attach.description FILTER html %]
[%- %] - [% change.attach.filename FILTER html %]"
>Attachment #[% change.attachid FILTER html %]</a>
@@ -164,7 +164,7 @@
[% END %]
</table>
<p>
- <a href="buglist.cgi?bug_id=[% bug_ids.join(',') FILTER url %]">
+ <a href="buglist.cgi?bug_id=[% bug_ids.join(',') FILTER uri %]">
Show as a [% terms.Bug %] List</a>
</p>
@@ -204,16 +204,16 @@
[% BLOCK sort_when_link %]
<a href="page.cgi?id=user_activity.html&amp;action=run&amp;
- [%~%]who=[% who FILTER url %]&amp;
- [%~%]from=[% from FILTER url %]&amp;
- [%~%]to=[% to FILTER url %]&amp;
+ [%~%]who=[% who FILTER uri %]&amp;
+ [%~%]from=[% from FILTER uri %]&amp;
+ [%~%]to=[% to FILTER uri %]&amp;
[%~%]sort=when">When</a>
[% END %]
[% BLOCK sort_bug_link %]
<a href="page.cgi?id=user_activity.html&amp;action=run&amp;
- [%~%]who=[% who FILTER url %]&amp;
- [%~%]from=[% from FILTER url %]&amp;
- [%~%]to=[% to FILTER url %]&amp;
+ [%~%]who=[% who FILTER uri %]&amp;
+ [%~%]from=[% from FILTER uri %]&amp;
+ [%~%]to=[% to FILTER uri %]&amp;
[%~%]sort=bug">[% terms.Bug %]</a>
[% END %]