Merge branch 'MDL-71806-improve-check-ux' of https://github.com/brendanheywood/moodle
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user