Skip to content

Commit

Permalink
Merge branch 'wip-mdl-19430' of git://github.com/rajeshtaneja/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Jul 25, 2012
2 parents e5d7606 + 405e14f commit d5a81fa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions blocks/course_overview/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,19 @@ public function course_overview($courses, $overviews) {
array('title' => $moveup['str'], 'class' => 'moveup'));
} else {
// Add a spacer to keep keep down arrow icons at right position.
$html .= html_writer::empty_tag('img', array('src' => $this->pix_url('t/spacer'),
'class' => 'moveup spacer'));
$html .= html_writer::empty_tag('img', array('src' => $this->pix_url('spacer'),
'class' => 'movedownspacer'));
}
// Add an arrow to move course down.
if ($courseordernumber <= $maxcourses-2) {
$url->param('move', 1);
$html .= html_writer::link($url, html_writer::empty_tag('img',
array('src' => $movedown['icon'], 'class' => 'down', 'alt' => $movedown['str'])),
array('title' => $movedown['str'], 'class' => 'movedown'));
} else {
// Add a spacer to keep keep up arrow icons at right position.
$html .= html_writer::empty_tag('img', array('src' => $this->pix_url('spacer'),
'class' => 'moveupspacer'));
}
$html .= html_writer::end_tag('div');
}
Expand Down
8 changes: 7 additions & 1 deletion blocks/course_overview/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,23 @@
.editing .block_course_overview .moveicons {
display: block;
float: left;
padding-right: 5px;
}

.editing .block_course_overview .moveup {
padding-right: 5px;
}

.editing .block_course_overview .spacer {
.editing .block_course_overview .movedownspacer {
float: left;
width: 14px;
}

.editing .block_course_overview .moveupspacer {
float: right;
width: 14px;
}

.block_course_overview #course_list {
width: 100%;
}
Expand Down

0 comments on commit d5a81fa

Please sign in to comment.