summaryrefslogtreecommitdiffstats
path: root/extensions/MozReview/template/en/default/moz_review
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-05-04 17:35:53 +0200
committerByron Jones <glob@mozilla.com>2015-05-04 17:35:53 +0200
commit5ff4a99bb9f9547f92a53b87489237464d7b4962 (patch)
treeeb4732df158c910f252ae260af9382246d32beaf /extensions/MozReview/template/en/default/moz_review
parent4d442598cd891fdf45b0ac25a7757f8494bbfcbb (diff)
downloadbugzilla-5ff4a99bb9f9547f92a53b87489237464d7b4962.tar.gz
bugzilla-5ff4a99bb9f9547f92a53b87489237464d7b4962.tar.xz
Bug 1153100: add mozreview's table to bug-modal
Diffstat (limited to 'extensions/MozReview/template/en/default/moz_review')
-rw-r--r--extensions/MozReview/template/en/default/moz_review/header.html.tmpl10
-rw-r--r--extensions/MozReview/template/en/default/moz_review/table.html.tmpl30
2 files changed, 40 insertions, 0 deletions
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.
+ #%]
+
+<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>
+ </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>