From c25b318fc741b8b65a769446df6179a45b58b04e Mon Sep 17 00:00:00 2001 From: Mark Côté Date: Thu, 5 Mar 2015 23:33:39 -0500 Subject: Bug 1140049 - Advertise MozReview on Create New Attachment page. r=glob --- .../hook/attachment/create-before_form.html.tmpl | 17 +++++++++++++++++ .../en/default/hook/global/header-start.html.tmpl | 11 +++++++++++ 2 files changed, 28 insertions(+) create mode 100644 extensions/MozReview/template/en/default/hook/attachment/create-before_form.html.tmpl create mode 100644 extensions/MozReview/template/en/default/hook/global/header-start.html.tmpl (limited to 'extensions/MozReview/template/en/default') diff --git a/extensions/MozReview/template/en/default/hook/attachment/create-before_form.html.tmpl b/extensions/MozReview/template/en/default/hook/attachment/create-before_form.html.tmpl new file mode 100644 index 000000000..0bf6fe543 --- /dev/null +++ b/extensions/MozReview/template/en/default/hook/attachment/create-before_form.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. + #%] + +[% RETURN UNLESS mozreview_enabled %] + +
+ Are you attaching a patch? Consider trying out + MozReview, Mozilla's + new repository-based code-review tool. + Read + the docs to get started. +
diff --git a/extensions/MozReview/template/en/default/hook/global/header-start.html.tmpl b/extensions/MozReview/template/en/default/hook/global/header-start.html.tmpl new file mode 100644 index 000000000..6ad026de6 --- /dev/null +++ b/extensions/MozReview/template/en/default/hook/global/header-start.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 template.name == 'attachment/create.html.tmpl' %] + [% style_urls.push('extensions/MozReview/web/style/attachment.css') %] +[% END %] -- cgit v1.2.3-24-g4f1b