--- reviewpages/lib/htmltools.py (revision 266)
+++ reviewpages/lib/htmltools.py (working copy)
@@ -148,7 +148,7 @@
if not usage.options.no_tools:
index.write('<tr id="item_0"><td colspan="%d"></td><td>'
- '<input type="checkbox" name="agree_box" onclick="switch_ok(event)" '
+ '<input type="checkbox" onclick="switch_ok(event)" '
'id="cb_0"><label class="checkbox" '
'id="lb_0" for="cb_0">Alright</label></td>\n' % (maxspan-2))
index.write('<td><button id="bu_0" onclick="add_comment(0)"'
@@ -167,8 +167,10 @@
if not address: address = ""
if not name: name = ""
index.write("""<div class="center"><div class="screen">
-<button onclick="binary_get()">Get binary report</button>
+<button onclick="binary_get()">Get binary report</button>\n
-<button onclick="binary_apply()">Apply binary report</button><br>\n""" \
+<button onclick="binary_apply()">Apply binary report</button><br>\n
+<button onclick="reset_rep1()">Reset your comments</button>\n
+<button onclick="reset_rep2()">Reset all comments</button><br>\n""" \
'</div>' % {'au':escape(name), 'ad':escape(address) })
index.write('<br></div><!-- center -->\n')
index.write('<div class="copyright">%s<br>%s</div>\n' \
@@ -403,10 +405,12 @@
var reviewID="%s";
var item_id=%d;
var add_inline_comment=%s;
+ var add_inline_static_comment=%s;
document.getElementById("placeholder").style.height = document.getElementById("button_panel").style.height;
</script>
""" % (defs.id, diff.id,
- "add_udiff_comment" if difftype == 1 else "add_sdiff_comment"))
+ "add_udiff_comment" if difftype == 1 else "add_sdiff_comment",
+ "add_u_static_comment" if difftype == 1 else "add_s_static_comment"))
if not usage.options.no_tools:
f.write("""