1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
[%# 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"
generate_api_token = 1
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' ]
%]
<script type="text/javascript">
$(function () {
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 %]
|