From 2ff6e9a2ae172bbdef01fbb4538107e62f85e5fe Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Tue, 3 Sep 2024 10:43:11 +0800 Subject: [PATCH] MDL-82987 mod_assign: Restore magnifying glass icon in preview link The icon used in the full preview link for submissions and feedback was inadequately replaced with an eye icon, which is typically associated with visibility toggling or state indication. The previous magnifying glass icon was more appropriate for this purpose, so this issue restores it. --- mod/assign/classes/output/renderer.php | 4 ++-- mod/assign/gradingtable.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/assign/classes/output/renderer.php b/mod/assign/classes/output/renderer.php index b280f771ed5..a6da1a60334 100644 --- a/mod/assign/classes/output/renderer.php +++ b/mod/assign/classes/output/renderer.php @@ -1060,7 +1060,7 @@ class renderer extends \plugin_renderer_base { $link = ''; if ($showviewlink) { $previewstr = get_string('viewsubmission', 'assign'); - $icon = $this->output->pix_icon('t/preview', $previewstr); + $icon = $this->output->pix_icon('t/viewdetails', $previewstr); $expandstr = get_string('viewfull', 'assign'); $expandicon = $this->output->pix_icon('t/switch_plus', $expandstr); @@ -1177,7 +1177,7 @@ class renderer extends \plugin_renderer_base { $link = ''; if ($showviewlink) { $previewstr = get_string('viewfeedback', 'assign'); - $icon = $this->output->pix_icon('t/preview', $previewstr); + $icon = $this->output->pix_icon('t/viewdetails', $previewstr); $expandstr = get_string('viewfull', 'assign'); $expandicon = $this->output->pix_icon('t/switch_plus', $expandstr); diff --git a/mod/assign/gradingtable.php b/mod/assign/gradingtable.php index 7be5633e8e1..0fb47d3f0d7 100644 --- a/mod/assign/gradingtable.php +++ b/mod/assign/gradingtable.php @@ -1597,7 +1597,7 @@ class assign_grading_table extends table_sql implements renderable { $separator = ''; if ($showviewlink) { $viewstr = get_string('view' . substr($plugin->get_subtype(), strlen('assign')), 'assign'); - $icon = $this->output->pix_icon('t/preview', $viewstr); + $icon = $this->output->pix_icon('t/viewdetails', $viewstr); $urlparams = array('id' => $this->assignment->get_course_module()->id, 'sid' => $item->id, 'gid' => $item->id,