MDL-75664 mod_data: Approval status in database entries
* Add approval status in the default template. * Change the language string for unapproved entries.
This commit is contained in:
@@ -605,7 +605,7 @@ class template {
|
||||
if (!$this->instance->approval) {
|
||||
return '';
|
||||
}
|
||||
return ($entry->approved) ? get_string('approved', 'data') : get_string('notapproved', 'data');
|
||||
return ($entry->approved) ? '' : html_writer::div(get_string('notapproved', 'data'), 'mod-data-approval-status-badge');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user