mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-80082 mod_workshop: Output 'Nothing to display' as notification.
This commit is contained in:
parent
307aee2c42
commit
9aa5b450e6
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user