From e4e2e19aeac85b534d5f3b8074b2b3a42122fa4c Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Fri, 20 Jul 2012 13:31:30 -0400 Subject: Bug 770855 - Permission error pages should instruct users how to get permissions r=glob --- .../en/default/hook/bug/comments-end.html.tmpl | 20 ++++++++++ .../hook/global/user-error-error_message.html.tmpl | 15 ++++++++ .../en/default/pages/get_permissions.html.tmpl | 44 ++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 extensions/BMO/template/en/default/hook/bug/comments-end.html.tmpl create mode 100644 extensions/BMO/template/en/default/hook/global/user-error-error_message.html.tmpl create mode 100644 extensions/BMO/template/en/default/pages/get_permissions.html.tmpl (limited to 'extensions/BMO/template/en') diff --git a/extensions/BMO/template/en/default/hook/bug/comments-end.html.tmpl b/extensions/BMO/template/en/default/hook/bug/comments-end.html.tmpl new file mode 100644 index 000000000..3bf18a515 --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/comments-end.html.tmpl @@ -0,0 +1,20 @@ +[%# 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 user.id && comment.author.login_name == 'tbplbot@gmail.com' %] + [% has_tbpl_comment = 1 %] + +[% END %] diff --git a/extensions/BMO/template/en/default/hook/global/user-error-error_message.html.tmpl b/extensions/BMO/template/en/default/hook/global/user-error-error_message.html.tmpl new file mode 100644 index 000000000..51f8e3d7d --- /dev/null +++ b/extensions/BMO/template/en/default/hook/global/user-error-error_message.html.tmpl @@ -0,0 +1,15 @@ +[%# 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 == 'illegal_change' || error == 'illegal_change_deps' %] +

+ If you are attempting to confirm an unconfirmed [% terms.bug %] or edit the fields of a [% terms.bug %], + find + out how to get the necessary permissions. +

+[% END %] diff --git a/extensions/BMO/template/en/default/pages/get_permissions.html.tmpl b/extensions/BMO/template/en/default/pages/get_permissions.html.tmpl new file mode 100644 index 000000000..b70aa488f --- /dev/null +++ b/extensions/BMO/template/en/default/pages/get_permissions.html.tmpl @@ -0,0 +1,44 @@ +[%# 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 = "Upgrade Permissions" +%] + +

How to apply for upgraded permissions

+ +

+ If you want canconfirm, email + bmo-perms@mozilla.org the URLs of three good [% terms.bug %] reports you have filed. +

+ +

+ If you want editbugs, email + bmo-perms@mozilla.org either: +

+

+ +

+ editbugs implies canconfirm; there's no need to apply for both. +

+ +

+ Don't forget to include your [% terms.Bugzilla %] ID if it's not the email address + you are emailing from. +

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