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.
This commit is contained in:
Mihail Geshoski 2024-09-03 10:43:11 +08:00
parent 072fb90384
commit 2ff6e9a2ae
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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,