Commit e6b7807a authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(dashboard) Small fixes in dashboard

issue #5135
parent 566a2b97
......@@ -216,6 +216,7 @@ class dashboardUsers extends simplePlugin
static function get_user_infos($attrs)
{
global $config;
if (isset($attrs['manager'][0])) {
$ldap = $config->get_ldap_link();
$ldap->cat($attrs['manager'][0], array('cn', 'mail', 'telephoneNumber'));
......@@ -223,6 +224,10 @@ class dashboardUsers extends simplePlugin
$manager_cn = (isset($manager_attrs['cn'][0]) ? $manager_attrs['cn'][0] : '');
$manager_mail = (isset($manager_attrs['mail'][0]) ? $manager_attrs['mail'][0] : '');
$manager_phone = (isset($manager_attrs['telephoneNumber'][0]) ? $manager_attrs['telephoneNumber'][0] : '');
} else {
$manager_cn = sprintf(_('Not found (%s)'), $attrs['manager'][0]);
$manager_mail = '';
$manager_phone = '';
}
} else {
$manager_cn = '';
......
......@@ -36,13 +36,13 @@
{foreach from=$attributes.expired.accounts item=account}
<tr>
{foreach from=$attributes.expired.columns.user key=colkey item=colname}
<td>&nbsp;{$account.$colkey}</td>
<td>{$account.$colkey}&nbsp;</td>
{/foreach}
{foreach from=$attributes.expired.columns.manager key=colkey item=colname}
{if $colkey==manager_mail}
<td><a href="mailto:{$account.$colkey}">{$account.$colkey}</a></td>
{else}
<td>&nbsp;{$account.$colkey}</td>
<td>{$account.$colkey}&nbsp;</td>
{/if}
{/foreach}
</tr>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment