From 56e097e7f119038506daec6900d2e99ac70b488d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 14 Apr 2015 13:53:42 +0800 Subject: Bug 1153103: add hooks for legal product disclaimer --- .../template/en/default/bug/legal_disclaimer.html.tmpl | 14 ++++++++++++++ .../default/hook/bug/comments-comment_banner.html.tmpl | 16 +++++++++------- .../default/hook/bug_modal/edit-after_modules.html.tmpl | 9 +++++++++ .../en/default/hook/bug_modal/header-end.html.tmpl | 9 +++++++++ 4 files changed, 41 insertions(+), 7 deletions(-) create mode 100644 extensions/BMO/template/en/default/bug/legal_disclaimer.html.tmpl create mode 100644 extensions/BMO/template/en/default/hook/bug_modal/edit-after_modules.html.tmpl create mode 100644 extensions/BMO/template/en/default/hook/bug_modal/header-end.html.tmpl (limited to 'extensions/BMO/template/en') diff --git a/extensions/BMO/template/en/default/bug/legal_disclaimer.html.tmpl b/extensions/BMO/template/en/default/bug/legal_disclaimer.html.tmpl new file mode 100644 index 000000000..754c0b31a --- /dev/null +++ b/extensions/BMO/template/en/default/bug/legal_disclaimer.html.tmpl @@ -0,0 +1,14 @@ +[%# 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. + #%] + +[% RETURN UNLESS bug.product == "Legal" %] + + diff --git a/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl b/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl index 2ae367456..135e1cd95 100644 --- a/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl @@ -1,10 +1,12 @@ -[%# *** Disclaimer for Legal bugs *** %] -[% IF bug.product == "Legal" %] - -[% END %] +[%# 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. + #%] + +[% INCLUDE bug/legal_disclaimer.html.tmpl %] [%# Needed for collapsing TinderboxPushlog comments %] [% has_tbpl_comment = 0 %] diff --git a/extensions/BMO/template/en/default/hook/bug_modal/edit-after_modules.html.tmpl b/extensions/BMO/template/en/default/hook/bug_modal/edit-after_modules.html.tmpl new file mode 100644 index 000000000..0723eba01 --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug_modal/edit-after_modules.html.tmpl @@ -0,0 +1,9 @@ +[%# 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. + #%] + +[% INCLUDE bug/legal_disclaimer.html.tmpl %] diff --git a/extensions/BMO/template/en/default/hook/bug_modal/header-end.html.tmpl b/extensions/BMO/template/en/default/hook/bug_modal/header-end.html.tmpl new file mode 100644 index 000000000..bc8fa3c0d --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug_modal/header-end.html.tmpl @@ -0,0 +1,9 @@ +[%# 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. + #%] + +[% style_urls.push("extensions/BMO/web/styles/bug_modal.css") %] -- cgit v1.2.3-24-g4f1b