Skip to content

Commit

Permalink
MDL-80082 tool_lp: Output 'Nothing to display' as notification.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Feb 19, 2024
1 parent e696217 commit 5a18657
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/tool/lp/classes/output/template_cohorts_table.php
Expand Up @@ -153,13 +153,13 @@ protected function get_sql_and_params($count = false) {
}

/**
* 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);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions admin/tool/lp/classes/output/template_plans_table.php
Expand Up @@ -161,13 +161,13 @@ protected function get_sql_and_params($count = false) {
}

/**
* 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);
}

/**
Expand Down

0 comments on commit 5a18657

Please sign in to comment.