Merge branch 'MDL-71806-improve-check-ux' of https://github.com/brendanheywood/moodle

This commit is contained in:
Andrew Nicols
2021-06-10 11:57:45 +08:00
3 changed files with 9 additions and 2 deletions
@@ -173,7 +173,7 @@ class publicpaths extends check {
$status = result::OK;
$details = '';
$summary = '';
$summary = get_string('check_publicpaths_ok', 'report_security');
$errors = [];
$c = new \curl();
@@ -250,6 +250,7 @@ class publicpaths extends check {
} else {
$result = new result(result::ERROR, '', '');
$status = result::ERROR;
$summary = get_string('check_publicpaths_warning', 'report_security');
}
$rowdetail = isset($path['details']) ? $path['details'] : $rowsummary;
+5 -1
View File
@@ -118,7 +118,11 @@ class table implements \renderable {
$row[] = $output->check_result($result);
$row[] = $output->action_link($link, $check->get_name());
$row[] = $result->get_summary();
$row[] = $result->get_summary()
. '<br>'
. \html_writer::start_tag('small')
. $output->action_link($link, get_string('moreinfo'))
. \html_writer::end_tag('small');
if ($actionlink) {
$row[] = $output->render($actionlink);
} else {