From 5ff4a99bb9f9547f92a53b87489237464d7b4962 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 4 May 2015 23:35:53 +0800 Subject: Bug 1153100: add mozreview's table to bug-modal --- .../default/hook/bug/edit-after_bug_data.html.tmpl | 31 ++-------------------- .../en/default/hook/bug/show-header-end.html.tmpl | 9 ++++--- .../default/hook/bug_modal/edit-module.html.tmpl | 21 +++++++++++++++ .../en/default/hook/bug_modal/header-end.html.tmpl | 13 +++++++++ .../en/default/moz_review/header.html.tmpl | 10 +++++++ .../template/en/default/moz_review/table.html.tmpl | 30 +++++++++++++++++++++ 6 files changed, 81 insertions(+), 33 deletions(-) create mode 100644 extensions/MozReview/template/en/default/hook/bug_modal/edit-module.html.tmpl create mode 100644 extensions/MozReview/template/en/default/hook/bug_modal/header-end.html.tmpl create mode 100644 extensions/MozReview/template/en/default/moz_review/header.html.tmpl create mode 100644 extensions/MozReview/template/en/default/moz_review/table.html.tmpl (limited to 'extensions/MozReview/template/en/default') diff --git a/extensions/MozReview/template/en/default/hook/bug/edit-after_bug_data.html.tmpl b/extensions/MozReview/template/en/default/hook/bug/edit-after_bug_data.html.tmpl index a2afa0351..b0e4ce600 100644 --- a/extensions/MozReview/template/en/default/hook/bug/edit-after_bug_data.html.tmpl +++ b/extensions/MozReview/template/en/default/hook/bug/edit-after_bug_data.html.tmpl @@ -6,15 +6,9 @@ # defined by the Mozilla Public License, v. 2.0. #%] -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi %] - [% RETURN UNLESS mozreview %] -
- +
@@ -24,28 +18,7 @@ diff --git a/extensions/MozReview/template/en/default/hook/bug/show-header-end.html.tmpl b/extensions/MozReview/template/en/default/hook/bug/show-header-end.html.tmpl index 995dd8868..d70e36b57 100644 --- a/extensions/MozReview/template/en/default/hook/bug/show-header-end.html.tmpl +++ b/extensions/MozReview/template/en/default/hook/bug/show-header-end.html.tmpl @@ -6,7 +6,8 @@ # defined by the Mozilla Public License, v. 2.0. #%] -[% RETURN UNLESS mozreview %] - -[% style_urls.push('extensions/MozReview/web/style/mozreview.css') %] -[% javascript_urls.push('extensions/MozReview/web/js/mozreview.js') %] +[% + IF mozreview; + PROCESS moz_review/header.html.tmpl; + END; +%] diff --git a/extensions/MozReview/template/en/default/hook/bug_modal/edit-module.html.tmpl b/extensions/MozReview/template/en/default/hook/bug_modal/edit-module.html.tmpl new file mode 100644 index 000000000..9785fa0bd --- /dev/null +++ b/extensions/MozReview/template/en/default/hook/bug_modal/edit-module.html.tmpl @@ -0,0 +1,21 @@ +[%# 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 %] + +[% WRAPPER bug_modal/module.html.tmpl + title = "MozReview Requests" + collapsed = 0 +%] + [% INCLUDE moz_review/table.html.tmpl %] +
+ +
+[% END %] diff --git a/extensions/MozReview/template/en/default/hook/bug_modal/header-end.html.tmpl b/extensions/MozReview/template/en/default/hook/bug_modal/header-end.html.tmpl new file mode 100644 index 000000000..d70e36b57 --- /dev/null +++ b/extensions/MozReview/template/en/default/hook/bug_modal/header-end.html.tmpl @@ -0,0 +1,13 @@ +[%# 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 mozreview; + PROCESS moz_review/header.html.tmpl; + END; +%] diff --git a/extensions/MozReview/template/en/default/moz_review/header.html.tmpl b/extensions/MozReview/template/en/default/moz_review/header.html.tmpl new file mode 100644 index 000000000..99fb81ba4 --- /dev/null +++ b/extensions/MozReview/template/en/default/moz_review/header.html.tmpl @@ -0,0 +1,10 @@ +[%# 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/MozReview/web/style/mozreview.css') %] +[% javascript_urls.push('extensions/MozReview/web/js/mozreview.js') %] diff --git a/extensions/MozReview/template/en/default/moz_review/table.html.tmpl b/extensions/MozReview/template/en/default/moz_review/table.html.tmpl new file mode 100644 index 000000000..d167a9651 --- /dev/null +++ b/extensions/MozReview/template/en/default/moz_review/table.html.tmpl @@ -0,0 +1,30 @@ +[%# 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. + #%] + +
MozReview Requests
- - - - - - - - [% FOREACH rrid IN review_request_ids %] - [%# rrid is guaranteed to be an integer %] - - - - - - - - - [% END %] -
CommitStatusOpen IssuesLast Updated
Loading...
Error loading review - request : -
+ [% INCLUDE moz_review/table.html.tmpl %]
+ + + + + + + [% FOREACH rrid IN review_request_ids %] + [%# rrid is guaranteed to be an integer %] + + + + + + + + + [% END %] +
CommitStatusOpen IssuesLast Updated
Loading...
Error loading review + request : +
-- cgit v1.2.3-24-g4f1b