diff --git a/management/templates/users.html b/management/templates/users.html
index aa23fb6d..a34f8350 100644
--- a/management/templates/users.html
+++ b/management/templates/users.html
@@ -6,9 +6,8 @@
#user_table .aliases div:before { content: "⇖ "; }
#user_table .aliases div { }
#user_table .actions { margin: .25em 0 0 1em; font-size: 95%; }
-#user_table .actions > * { display: none; }
-#user_table .account_active .actions a.archive { display: inline; }
-#user_table .account_inactive .actions .restore { display: inline; }
+#user_table .account_inactive .actions a.archive { display: none; }
+#user_table .account_active .actions .restore { display: none; }
Add a mail user
@@ -62,7 +61,7 @@
- To restore account, create a new account with this email address.
+ To restore account, create a new account with this email address.
|
@@ -87,11 +86,14 @@ function show_users() {
n.addClass("account_" + r[i].status);
n.attr('data-email', r[i].email);
n.find('td.email .address').text(r[i].email)
+ $('#user_table tbody').append(n);
+
+ if (r[i].status == 'inactive') continue;
var add_privs = ["admin"];
for (var j = 0; j < r[i].privileges.length; j++) {
- var p = $("");
+ var p = $("");
p.find('span.name').text(r[i].privileges[j]);
n.find('td.privs').append(p);
if (add_privs.indexOf(r[i].privileges[j]) >= 0)
@@ -99,9 +101,9 @@ function show_users() {
}
for (var j = 0; j < add_privs.length; j++) {
- var p = $("");
+ var p = $("");
p.find('span.name').text(add_privs[j]);
- n.find('td.privs').append(p);
+ n.find('.email .actions').append(p);
}
if (r[i].aliases && r[i].aliases.length > 0) {
@@ -113,7 +115,6 @@ function show_users() {
))
}
}
- $('#user_table tbody').append(n);
}
})
}
@@ -193,4 +194,4 @@ function mod_priv(elem, add_remove) {
});
});
}
-
\ No newline at end of file
+