diff --git a/src/js/app.js b/src/js/app.js index db4422ae..b343959d 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1064,9 +1064,9 @@ app = Sammy('#main', function (sam) { // Display a list of available users if (v.name == 'admin' || data.manifest.arguments.install[k].type == 'user') { data.manifest.arguments.install[k].choices = []; - $.each(params.users, function(key, user){ + $.each(params.users, function(username, user){ data.manifest.arguments.install[k].choices.push({ - value: user.username, + value: username, label: user.fullname+' ('+user.mail+')', selected: false }); @@ -1239,17 +1239,17 @@ app = Sammy('#main', function (sam) { // Available users data.users = []; - $.each(dataUsers.users, function(key, user){ + $.each(dataUsers.users, function(username, user){ // Do not list allowed_users in select list - if ( data.settings.allowed_users.indexOf(user.username) === -1 ) { + if ( data.settings.allowed_users.indexOf(username) === -1 ) { data.users.push({ - value: user.username, + value: username, label: user.fullname+' ('+user.mail+')' }); } else { // Complete allowed_users data - data.settings.allowed_users[data.settings.allowed_users.indexOf(user.username)] = { - username: user.username, + data.settings.allowed_users[data.settings.allowed_users.indexOf(username)] = { + username: username, fullname: user.fullname, mail: user.mail, } diff --git a/src/views/user/user_list.ms b/src/views/user/user_list.ms index 8454c0c0..262486e8 100644 --- a/src/views/user/user_list.ms +++ b/src/views/user/user_list.ms @@ -1,31 +1,29 @@
+{{mail}}
{{mailbox-quota}}
-{{/users}} - -{{^users}} +{{else}}