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

This commit is contained in:
Luca Bösch
2024-02-19 15:10:32 +01:00
parent e6962170ad
commit 5a18657447
2 changed files with 4 additions and 4 deletions
@@ -153,13 +153,13 @@ class template_cohorts_table extends table_sql {
}
/**
* Override the default implementation to set a decent heading level.
* Override the default implementation to set a notification.
*/
public function print_nothing_to_display() {
global $OUTPUT;
echo $this->render_reset_button();
$this->print_initials_bar();
echo $OUTPUT->heading(get_string('nothingtodisplay'), 4);
echo $OUTPUT->notification(get_string('nothingtodisplay'), 'info', false);
}
/**
@@ -161,13 +161,13 @@ class template_plans_table extends table_sql {
}
/**
* Override the default implementation to set a decent heading level.
* Override the default implementation to set a notification.
*/
public function print_nothing_to_display() {
global $OUTPUT;
echo $this->render_reset_button();
$this->print_initials_bar();
echo $OUTPUT->heading(get_string('nothingtodisplay'), 4);
echo $OUTPUT->notification(get_string('nothingtodisplay'), 'info', false);
}
/**