summaryrefslogtreecommitdiffstats
path: root/extensions/example/template/en/global
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-05-28 05:08:59 +0200
committermkanat%bugzilla.org <>2008-05-28 05:08:59 +0200
commite0db56e755e94e07677faa3729a4affe38a3ce18 (patch)
tree4aaaa2e81eca3dd0379c16982bbed3754bc59a62 /extensions/example/template/en/global
parent993a1c53229e174d4c2bd1d67acef6363c12db50 (diff)
downloadbugzilla-e0db56e755e94e07677faa3729a4affe38a3ce18.tar.gz
bugzilla-e0db56e755e94e07677faa3729a4affe38a3ce18.tar.xz
Bug 435507: Provide a method of hooking the WebService error codes
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=ghendricks, a=mkanat
Diffstat (limited to 'extensions/example/template/en/global')
-rw-r--r--extensions/example/template/en/global/user-error-errors.html.tmpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/extensions/example/template/en/global/user-error-errors.html.tmpl b/extensions/example/template/en/global/user-error-errors.html.tmpl
new file mode 100644
index 000000000..df5a203dd
--- /dev/null
+++ b/extensions/example/template/en/global/user-error-errors.html.tmpl
@@ -0,0 +1,12 @@
+[%# Note that error messages should generally be indented four spaces, like
+ # below, because when Bugzilla translates an error message into plain
+ # text, it takes four spaces off the beginning of the lines.
+ #
+ # Note also that I prefixed my error name with "example", the name of my
+ # extension, so that I wouldn't conflict with other error names in
+ # Bugzilla or other extensions.
+ #%]
+[% IF error == "example_my_error" %]
+ [% title = "Example Error Title" %]
+ This is the error message! It contains <em>some html</em>.
+[% END %]