Merge branch 'wip-mdl-19430' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
@@ -87,8 +87,8 @@ class block_course_overview_renderer extends plugin_renderer_base {
|
||||
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) {
|
||||
@@ -96,6 +96,10 @@ class block_course_overview_renderer extends plugin_renderer_base {
|
||||
$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');
|
||||
}
|
||||
|
||||
@@ -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%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user