Skip to content

Commit

Permalink
MDL-65448 core_course: Restyle non-JS activity moving.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Oct 16, 2020
1 parent 71f05ec commit 531ce52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions course/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,6 @@ public function course_section_cm_list($course, $section, $sectionreturn = null,
// check if we are currently in the process of moving a module with JavaScript disabled
$ismoving = $this->page->user_is_editing() && ismoving($course->id);
if ($ismoving) {
$movingpix = new pix_icon('movehere', get_string('movehere'), 'moodle', array('class' => 'movetarget'));
$strmovefull = strip_tags(get_string("movefull", "", "'$USER->activitycopyname'"));
}

Expand Down Expand Up @@ -1032,7 +1031,7 @@ public function course_section_cm_list($course, $section, $sectionreturn = null,
if ($ismoving) {
$movingurl = new moodle_url('/course/mod.php', array('moveto' => $modnumber, 'sesskey' => sesskey()));
$sectionoutput .= html_writer::tag('li',
html_writer::link($movingurl, $this->output->render($movingpix), array('title' => $strmovefull)),
html_writer::link($movingurl, '', array('title' => $strmovefull, 'class' => 'movehere')),
array('class' => 'movehere'));
}

Expand All @@ -1042,7 +1041,7 @@ public function course_section_cm_list($course, $section, $sectionreturn = null,
if ($ismoving) {
$movingurl = new moodle_url('/course/mod.php', array('movetosection' => $section->id, 'sesskey' => sesskey()));
$sectionoutput .= html_writer::tag('li',
html_writer::link($movingurl, $this->output->render($movingpix), array('title' => $strmovefull)),
html_writer::link($movingurl, '', array('title' => $strmovefull, 'class' => 'movehere')),
array('class' => 'movehere'));
}
}
Expand Down

0 comments on commit 531ce52

Please sign in to comment.