aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/users
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-06-25 01:01:18 +0000
committerlpsolit%gmail.com <>2009-06-25 01:01:18 +0000
commitcb0d7389a091eb807d8a54e91d9487470ac362b3 (patch)
tree465355d373e81882050c86cf49cfe00985a12534 /template/en/default/admin/users
parent0ccecfb569714e133ffedbc0eb9a7a88c5abba19 (diff)
downloadbugs-cb0d7389a091eb807d8a54e91d9487470ac362b3.tar
bugs-cb0d7389a091eb807d8a54e91d9487470ac362b3.tar.gz
bugs-cb0d7389a091eb807d8a54e91d9487470ac362b3.tar.bz2
bugs-cb0d7389a091eb807d8a54e91d9487470ac362b3.tar.xz
bugs-cb0d7389a091eb807d8a54e91d9487470ac362b3.zip
Bug 304267: Large lists in admin pages fail to display (they take too much time) - Patch by Michael Thomas <mockodin@gmail.com> r/a=LpSolit
Diffstat (limited to 'template/en/default/admin/users')
-rw-r--r--template/en/default/admin/users/list.html.tmpl39
1 files changed, 18 insertions, 21 deletions
diff --git a/template/en/default/admin/users/list.html.tmpl b/template/en/default/admin/users/list.html.tmpl
index 4788e527d..cb05e827b 100644
--- a/template/en/default/admin/users/list.html.tmpl
+++ b/template/en/default/admin/users/list.html.tmpl
@@ -63,36 +63,33 @@
[% END %]
[%# Disabled users are crossed out. Missing realnames are noticed in red. %]
-[% overrides.login_name = [] %]
-[% overrides.realname = [] %]
+[% overrides.login_name = {} %]
+[% overrides.realname = {} %]
[% FOREACH thisuser = users %]
[% IF !thisuser.realname %]
[%# We cannot pass one class now and one class later. %]
[% SET classes = (thisuser.disabledtext ? "bz_inactive missing" : "missing") %]
- [% overrides.realname.push({
- match_value => "$thisuser.login_name"
- match_field => 'login_name'
- content => "missing"
- override_content => 1
- class => "$classes"
- override_class => 1 })
+ [% overrides.realname.login_name.${thisuser.login_name} = {
+ content => "missing"
+ override_content => 1
+ class => "$classes"
+ override_class => 1
+ }
+ %]
+ [% ELSIF thisuser.disabledtext %]
+ [% overrides.realname.login_name.${thisuser.login_name} = {
+ class => "bz_inactive"
+ override_class => 1
+ }
%]
[% END %]
[% IF thisuser.disabledtext %]
- [% overrides.login_name.push({
- match_value => "$thisuser.login_name"
- match_field => 'login_name'
- class => "bz_inactive"
- override_class => 1 })
- %]
-
- [% overrides.realname.push({
- match_value => "$thisuser.login_name"
- match_field => 'login_name'
- class => "bz_inactive"
- override_class => 1 })
+ [% overrides.login_name.login_name.${thisuser.login_name} = {
+ class => "bz_inactive"
+ override_class => 1
+ }
%]
[% END %]
[% END %]