MDL-80082 mod_workshop: Output 'Nothing to display' as notification.

This commit is contained in:
Luca Bösch 2023-11-21 19:52:11 +01:00
parent 307aee2c42
commit 9aa5b450e6
2 changed files with 3 additions and 7 deletions

View File

@ -431,7 +431,7 @@ class mod_workshop_renderer extends plugin_renderer_base {
$userinfo = $data->userinfo;
if (empty($grades)) {
return $this->output->notification(get_string('nothingtodisplay'), 'success', false);
return $this->output->notification(get_string('nothingtodisplay'), 'info', false);
}
$table = new html_table();
@ -1417,7 +1417,8 @@ class mod_workshop_renderer extends plugin_renderer_base {
$output .= $this->render($pagingbar);
$output .= $this->perpage_selector($perpage);
} else {
$output .= html_writer::tag('div', get_string('nothingfound', 'workshop'), ['class' => 'nothingfound']);
$output .= html_writer::tag('div', get_string('nothingfound', 'workshop'),
'info', false);
}
$output .= print_collapsible_region_end(true);
}

View File

@ -676,11 +676,6 @@
line-height: 1.0em;
}
.path-mod-workshop .nothingfound {
font-size: 150%;
color: #ff4500;
}
.path-mod-workshop .workshop-risk-dataloss {
vertical-align: text-bottom;
}