summaryrefslogtreecommitdiffstats
path: root/extensions/MozReview/template/en
diff options
context:
space:
mode:
authorMark Côté <mcote@mozilla.com>2015-03-06 05:33:39 +0100
committerMark Côté <mcote@mozilla.com>2015-03-09 17:14:07 +0100
commitc25b318fc741b8b65a769446df6179a45b58b04e (patch)
tree066f3d0bc7e7daa792b8ed251cc00c34ee7cc96a /extensions/MozReview/template/en
parentb199f4960471ec9156f9c1ae2f165159d80f30df (diff)
downloadbugzilla-c25b318fc741b8b65a769446df6179a45b58b04e.tar.gz
bugzilla-c25b318fc741b8b65a769446df6179a45b58b04e.tar.xz
Bug 1140049 - Advertise MozReview on Create New Attachment page. r=glob
Diffstat (limited to 'extensions/MozReview/template/en')
-rw-r--r--extensions/MozReview/template/en/default/hook/attachment/create-before_form.html.tmpl17
-rw-r--r--extensions/MozReview/template/en/default/hook/global/header-start.html.tmpl11
2 files changed, 28 insertions, 0 deletions
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 %]
+
+<div class="mozreview-ad">
+ Are you attaching a patch? Consider trying out
+ <a href="https://reviewboard.mozilla.org/">MozReview</a>, Mozilla's
+ new repository-based code-review tool.
+ <a href="http://mozilla-version-control-tools.readthedocs.org/en/latest/mozreview.html">Read
+ the docs</a> to get started.
+</div>
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 %]