diff --git a/classes/local/table/interaction_attention_table.php b/classes/local/table/interaction_attention_table.php index 2624831d..7a64ad9d 100644 --- a/classes/local/table/interaction_attention_table.php +++ b/classes/local/table/interaction_attention_table.php @@ -118,6 +118,9 @@ public function col_tools($row) { $step = step_manager::get_step_instance($row->stepinstanceid); $tools = interaction_manager::get_action_tools($step->subpluginname, $row->processid); + if (empty($tools)) { + return get_string('noactiontools', 'tool_lifecycle'); + } foreach ($tools as $tool) { $output .= $this->format_icon_link($tool['action'], $row->processid, $step->id, $tool['alt']); } diff --git a/classes/local/table/interaction_remaining_table.php b/classes/local/table/interaction_remaining_table.php index 710ffa68..325631d3 100644 --- a/classes/local/table/interaction_remaining_table.php +++ b/classes/local/table/interaction_remaining_table.php @@ -126,7 +126,9 @@ public function col_tools($row) { if ($row->processid !== null) { return ''; } - + if (empty($this->availabletools)) { + return get_string('noactiontools', 'tool_lifecycle'); + } $actions = []; foreach ($this->availabletools as $tool) { if (has_capability($tool->capability, \context_course::instance($row->courseid), null, false)) { diff --git a/lang/de/tool_lifecycle.php b/lang/de/tool_lifecycle.php index a92d11a1..7615c3ca 100644 --- a/lang/de/tool_lifecycle.php +++ b/lang/de/tool_lifecycle.php @@ -111,6 +111,8 @@ $string['manual_trigger_success'] = 'Workflow erfolgreich gestartet.'; $string['move_down'] = 'Nach unten bewegen'; $string['move_up'] = 'Nach oben bewegen'; +$string['name_until_date'] = '"{$a->name}" bis {$a->date}'; +$string['noactiontools'] = 'Keine Aktionen verfügbar'; $string['nocoursestodisplay'] = 'Es gibt derzeit keine Kurse, die Ihre Aufmerksamkeit erfordern!'; $string['nointeractioninterface'] = 'Keine Interaktionsschnittstelle verfügbar!'; $string['noprocesserrors'] = 'Es gibt keine fehlerhaften Prozesse, die behandelt werden müssen!'; diff --git a/lang/en/tool_lifecycle.php b/lang/en/tool_lifecycle.php index 1d96728d..3a4e99a7 100644 --- a/lang/en/tool_lifecycle.php +++ b/lang/en/tool_lifecycle.php @@ -129,6 +129,7 @@ $string['move_down'] = 'Move down'; $string['move_up'] = 'Move up'; $string['name_until_date'] = '"{$a->name}" until {$a->date}'; +$string['noactiontools'] = 'No tools available'; $string['nocoursestodisplay'] = 'There are currently no courses which require your attention!'; $string['nointeractioninterface'] = 'No interaction interface available!'; $string['noprocesserrors'] = 'There are no process errors to handle!';