summaryrefslogtreecommitdiffstats
path: root/extensions/MozReview/template/en/default/hook/bug
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/MozReview/template/en/default/hook/bug')
-rw-r--r--extensions/MozReview/template/en/default/hook/bug/edit-after_bug_data.html.tmpl31
-rw-r--r--extensions/MozReview/template/en/default/hook/bug/show-header-end.html.tmpl9
2 files changed, 7 insertions, 33 deletions
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 %]
-<br>
-<table
- class="mozreview-table"
- data-mozreview-url="[% Bugzilla.params.mozreview_base_url FILTER html %]">
+<table class="mozreview-table">
<thead>
<tr>
<th>MozReview Requests</th>
@@ -24,28 +18,7 @@
<tbody>
<tr>
<td>
- <table class="mozreview-requests">
- <thead>
- <th>Commit</th>
- <th>Status</th>
- <th>Open Issues</th>
- <th>Last Updated</th>
- </thead>
- [% FOREACH rrid IN review_request_ids %]
- [%# rrid is guaranteed to be an integer %]
- <tbody class="mozreview-request"
- data-rrid="[% rrid FILTER none %]">
- <tr class="mozreview-loading-row">
- <td colspan="4">Loading...</td>
- </tr>
- <tr class="mozreview-loading-error-row bz_default_hidden">
- <td colspan="4">Error loading review
- request <span class="mozreview-load-error-rrid"></span>:
- <span class="mozreview-load-error-string"></span></td>
- </tr>
- </tbody>
- [% END %]
- </table>
+ [% INCLUDE moz_review/table.html.tmpl %]
</td>
</tr>
</tbody>
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;
+%]