From d4e9febd6cfbcf96e87809b68425e6f19a0b9f39 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 20 Nov 2013 15:00:04 +0800 Subject: Bug 935570: create an anti-spam extension --- .../user-error-auth_failure_object.html.tmpl | 11 ++++++ .../hook/global/user-error-errors.html.tmpl | 17 +++++++++ .../template/en/default/pages/edit_table.html.tmpl | 43 ++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 extensions/EditTable/template/en/default/hook/global/user-error-auth_failure_object.html.tmpl create mode 100644 extensions/EditTable/template/en/default/hook/global/user-error-errors.html.tmpl create mode 100644 extensions/EditTable/template/en/default/pages/edit_table.html.tmpl (limited to 'extensions/EditTable/template/en') diff --git a/extensions/EditTable/template/en/default/hook/global/user-error-auth_failure_object.html.tmpl b/extensions/EditTable/template/en/default/hook/global/user-error-auth_failure_object.html.tmpl new file mode 100644 index 000000000..f86fb4c86 --- /dev/null +++ b/extensions/EditTable/template/en/default/hook/global/user-error-auth_failure_object.html.tmpl @@ -0,0 +1,11 @@ +[%# 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. + #%] + +[% IF object == 'tables' %] + tables +[% END %] diff --git a/extensions/EditTable/template/en/default/hook/global/user-error-errors.html.tmpl b/extensions/EditTable/template/en/default/hook/global/user-error-errors.html.tmpl new file mode 100644 index 000000000..d87270b98 --- /dev/null +++ b/extensions/EditTable/template/en/default/hook/global/user-error-errors.html.tmpl @@ -0,0 +1,17 @@ +[%# 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. + #%] + +[% IF error == "edittable_unsupported" %] + [% title = "Unsupported Table" %] + You cannot edit the table '[% table FILTER html %]'. + +[% ELSIF error == "edittable_nulls" %] + [% title = "Table Contains NULLs" %] + EditTable cannot edit the table '[% table FILTER html %]' as it contains NULL + values. +[% END %] diff --git a/extensions/EditTable/template/en/default/pages/edit_table.html.tmpl b/extensions/EditTable/template/en/default/pages/edit_table.html.tmpl new file mode 100644 index 000000000..d81291640 --- /dev/null +++ b/extensions/EditTable/template/en/default/pages/edit_table.html.tmpl @@ -0,0 +1,43 @@ +[%# 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/variables.none.tmpl %] + +[% PROCESS global/header.html.tmpl + title = "Edit Table" + javascript_urls = [ 'extensions/EditTable/web/js/edit_table.js' ] + style_urls = [ "extensions/EditTable/web/styles/edit_table.css" ] +%] + +

[% table_name FILTER html %]

+ +[% IF updated %] +

Table [% table_name FILTER html %] updated.

+[% ELSIF error %] +

[% error FILTER html FILTER html_line_break %]

+[% END %] + +

[% blurb FILTER html FILTER html_line_break %]

+ +
+
+
+ + + + +
+ + + +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b