Skip to content
Snippets Groups Projects
Commit 7d499ed6 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

allow to show comments on ldap status page

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1236 44740490-163a-0410-bde0-09ae8108e29a
parent eab11470
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,12 @@ foreach($this->data['sortedOrgIndex'] as $orgkey) {
showRes('configMeta', $res, $this);
echo('<td style="text-align: right">' . ceil($res['time']*1000) . ' ms</td>');
echo('</tr>');
if ($this->data['showcomments'] && array_key_exists('comment', $this->data['orgconfig'][$orgkey])) {
echo('<tr><td style="color: #400; padding-left: 5em; font-family: \'Arial Narrow\'; font-size: 85%" colspan="11">' . $this->data['orgconfig'][$orgkey]['comment'] . '</td></tr>');
}
}
?>
</table>
......@@ -113,10 +119,13 @@ if ($sum > 0) {
echo('</table>');
}
if ($this->data['completeOf'] > $this->data['completeNo']) {
echo('<p>[ <a href="?reload=1">load more entries</a> | <a href="?reset=1">reset all entries</a> ]');
echo('<p>[ <a href="?">load more entries</a> | <a href="?reset=1">reset all entries</a> ]');
} else {
echo('<p>[ <a href="?reset=1">reset all entries</a> ]');
}
if (!$this->data['showcomments']) {
echo('<p>[ <a href="?showcomments=1">show comments</a> ]');
}
?>
......
......@@ -144,6 +144,7 @@ asort($ressortable);
$t = new SimpleSAML_XHTML_Template($config, 'ldapstatus:ldapstatus.php');
$t->data['showcomments'] = array_key_exists('showcomments', $_REQUEST);
$t->data['completeNo'] = count($results);
$t->data['completeOf'] = count($orgs);
$t->data['results'] = $results;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment