summaryrefslogtreecommitdiffstats
path: root/extensions/Review/template
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2014-08-27 16:34:21 +0200
committerDylan William Hardison <dylan@hardison.net>2014-09-11 06:17:09 +0200
commit5b25f5c1f223643246750f74538fe1e95aea4382 (patch)
tree4365bbd7dac473ec37d5dae20e8e1e53c086e526 /extensions/Review/template
parent97384adc32c5da9623d9e9e11f32a92ab9f3d953 (diff)
downloadbugzilla-5b25f5c1f223643246750f74538fe1e95aea4382.tar.gz
bugzilla-5b25f5c1f223643246750f74538fe1e95aea4382.tar.xz
Bug 1021902 - UI to view a user's review history
r=glob
Diffstat (limited to 'extensions/Review/template')
-rw-r--r--extensions/Review/template/en/default/pages/review_history.html.tmpl62
1 files changed, 62 insertions, 0 deletions
diff --git a/extensions/Review/template/en/default/pages/review_history.html.tmpl b/extensions/Review/template/en/default/pages/review_history.html.tmpl
new file mode 100644
index 000000000..32ac83ceb
--- /dev/null
+++ b/extensions/Review/template/en/default/pages/review_history.html.tmpl
@@ -0,0 +1,62 @@
+[%# 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.
+ #%]
+
+[% PROCESS global/variables.none.tmpl %]
+
+[% PROCESS global/header.html.tmpl
+ title = "Review History"
+ style_urls = [ "extensions/Review/web/styles/review_history.css" ]
+ javascript_urls = [ 'js/yui3/yui/yui-min.js',
+ 'extensions/Review/web/js/review_history.js',
+ 'extensions/Review/web/js/moment.min.js',
+ 'js/util.js',
+ 'js/field.js' ]
+ yui = [ "autocomplete" ]
+%]
+
+<script type="text/javascript">
+ YUI({
+ base: 'js/yui3/',
+ combine: false,
+ groups: {
+ gallery: {
+ combine: false,
+ base: 'js/yui3/',
+ patterns: { 'gallery-': {} }
+ }
+ }
+ }).use('bz-review-history', function(Y) {
+ Y.ReviewHistory.render('#history', '#history-loading');
+ var requestee = Y.one('#requestee');
+
+ Y.ReviewHistory.refresh('[% requestee.login FILTER js %]', '[% requestee.name FILTER html FILTER js %]');
+ });
+</script>
+
+<div>
+ <form method="get">
+ <label class="field_label" for="user">Requestee </label>
+
+ [% INCLUDE global/userselect.html.tmpl
+ id => "requestee"
+ name => "requestee"
+ value => requestee.login
+ classes => ["bz_userfield"]
+ %]
+
+ <input type="submit" value="Generate Report">
+ <input type="hidden" name="id" value="review_history.html">
+ </form>
+</div>
+
+<div class="yui3-skin-sam">
+ <div id="history-loading">Loading...</div>
+ <div id="history"></div>
+</div>
+
+[% PROCESS global/footer.html.tmpl %]