summaryrefslogtreecommitdiffstats
path: root/extensions/MozReview/template/en
diff options
context:
space:
mode:
authorMark Côté <mcote@alumni.uwaterloo.ca>2015-05-05 02:29:09 +0200
committerMark Côté <mcote@alumni.uwaterloo.ca>2015-05-05 17:23:39 +0200
commit63b0ecb066a2bfde2828d77c0c414c57d4b7b1ce (patch)
treeb081a1be30a94ba88a1bcf526d73e87210a27f34 /extensions/MozReview/template/en
parent27db7bb9aabe7a411d701ffbd9989e1ef11a9651 (diff)
downloadbugzilla-63b0ecb066a2bfde2828d77c0c414c57d4b7b1ce.tar.gz
bugzilla-63b0ecb066a2bfde2828d77c0c414c57d4b7b1ce.tar.xz
Bug 1158516 - Fetch MozReview summaries by bug. r=glob
Instead of issuing separate calls for every MozReview request associated with a given bug, call the new MozReview summaries-by-bug API exactly once.
Diffstat (limited to 'extensions/MozReview/template/en')
-rw-r--r--extensions/MozReview/template/en/default/moz_review/table.html.tmpl33
1 files changed, 15 insertions, 18 deletions
diff --git a/extensions/MozReview/template/en/default/moz_review/table.html.tmpl b/extensions/MozReview/template/en/default/moz_review/table.html.tmpl
index d167a9651..1a40cf7db 100644
--- a/extensions/MozReview/template/en/default/moz_review/table.html.tmpl
+++ b/extensions/MozReview/template/en/default/moz_review/table.html.tmpl
@@ -8,23 +8,20 @@
<table class="mozreview-requests" data-mozreview-url="[% Bugzilla.params.mozreview_base_url FILTER html %]">
<thead>
- <th>Commit</th>
- <th>Status</th>
- <th>Open Issues</th>
- <th>Last Updated</th>
+ <tr>
+ <th>Commit</th>
+ <th>Status</th>
+ <th>Open Issues</th>
+ <th>Last Updated</th>
+ </tr>
</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 %]
+ <tbody class="mozreview-request">
+ <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 requests:
+ <span class="mozreview-load-error-string"></span></td>
+ </tr>
+ </tbody>
</table>