From d42baa48c6a4f1b88cc4c92e5f1e28711197ac49 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 24 Jul 2011 21:09:35 +0000 Subject: [PATCH] fix bunches of tiny typos; do_template?template=sieve_list produces similar results to the non templated system. --- webcit/static/t/sieve/display.html | 17 ++-- webcit/static/t/sieve/display_one.html | 77 +++++++++---------- webcit/static/t/sieve/display_one_script.html | 2 +- webcit/static/t/sieve/list.html | 22 ++++-- webcit/static/t/sieve/list_select_one.html | 2 +- webcit/static/t/sieve/roomlist.html | 2 +- 6 files changed, 62 insertions(+), 60 deletions(-) diff --git a/webcit/static/t/sieve/display.html b/webcit/static/t/sieve/display.html index d34a0edff..0bba5c0ff 100644 --- a/webcit/static/t/sieve/display.html +++ b/webcit/static/t/sieve/display.html @@ -13,7 +13,7 @@ function UpdateRules() { * Show only the active rows... /// TODO 255-> we need no limit anymore. */ highest_active_rule = (-1); - for (i=0; i< 255; ++i) { + for (i=0; i< 50; ++i) { if ($('active'+i).checked) { $('rule' + i).style.display = 'block'; highest_active_rule = i; @@ -36,17 +36,17 @@ function UpdateRules() { } d = ($('hfield'+i).options[$('hfield'+i).selectedIndex].value); if (d == 'all') { - $('div_size'+i).style.display = 'none'; + $('div_size'+i).style.display = 'none'; $('div_compare'+i).style.display = 'none'; $('div_nocompare'+i).style.display = 'block'; } else if (d == 'size') { - $('div_size'+i).style.display = 'block'; + $('div_size'+i).style.display = 'block'; $('div_compare'+i).style.display = 'none'; $('div_nocompare'+i).style.display = 'none'; } else { - $('div_size'+i).style.display = 'none'; + $('div_size'+i).style.display = 'none'; $('div_compare'+i).style.display = 'block'; $('div_nocompare'+i).style.display = 'none'; } @@ -68,7 +68,7 @@ function UpdateRules() { $('div_redirect'+i).style.display = 'none'; $('div_automsg'+i).style.display = 'none'; }/* TODO: we don't have any limits anymore */ - if (highest_active_rule < 255 - 1) { + if (highest_active_rule < 49) { $('div_addrule').style.display = 'block'; } else { $('div_addrule').style.display = 'none'; @@ -119,10 +119,3 @@ function DeleteRule(rd) { $('active'+highest_active_rule).checked = false; } - - -
- -

- - diff --git a/webcit/static/t/sieve/display_one.html b/webcit/static/t/sieve/display_one.html index e7bf25373..836109883 100644 --- a/webcit/static/t/sieve/display_one.html +++ b/webcit/static/t/sieve/display_one.html @@ -1,75 +1,73 @@ - - + - + -
>
- - - - + + +
- +
-"> escputs(htext); +">
- +
@@ -89,7 +87,7 @@
< _("and then")>
diff --git a/webcit/static/t/sieve/display_one_script.html b/webcit/static/t/sieve/display_one_script.html index 658d75a02..3a2bb941c 100644 --- a/webcit/static/t/sieve/display_one_script.html +++ b/webcit/static/t/sieve/display_one_script.html @@ -1,3 +1,3 @@ -
" style="display:none"> + diff --git a/webcit/static/t/sieve/list.html b/webcit/static/t/sieve/list.html index 9580165c3..154bfe69f 100644 --- a/webcit/static/t/sieve/list.html +++ b/webcit/static/t/sieve/list.html @@ -3,7 +3,7 @@ - +