Revert "Merge branch 'm27_MDL-46643' of git://github.com/totara/moodle into MOODLE_27_STABLE"

This reverts commit a62801941e, reversing
changes made to 0282c20862.
This commit is contained in:
Marina Glancy
2014-08-13 16:30:07 +08:00
parent 90e4b26229
commit 0b09c8e48f
4 changed files with 4 additions and 9 deletions
+3 -3
View File
@@ -256,10 +256,10 @@ class core_calendar_renderer extends plugin_renderer_base {
$events = calendar_get_upcoming($calendar->courses, $calendar->groups, $calendar->users, 1, 100, $calendar->timestamp_today());
$output = html_writer::start_tag('div', array('class'=>'header'));
$output .= $this->course_filter_selector($returnurl, get_string('dayviewfor', 'calendar'));
if (calendar_user_can_add_event($calendar->course)) {
$output .= $this->add_event_button($calendar->course->id, 0, 0, 0, $calendar->time);
}
$output .= $this->course_filter_selector($returnurl, get_string('dayviewfor', 'calendar'));
$output .= html_writer::end_tag('div');
// Controls
$output .= html_writer::tag('div', calendar_top_controls('day', array('id' => $calendar->courseid, 'time' => $calendar->time)), array('class'=>'controls'));
@@ -464,10 +464,10 @@ class core_calendar_renderer extends plugin_renderer_base {
calendar_events_by_day($events, $date['mon'], $date['year'], $eventsbyday, $durationbyday, $typesbyday, $calendar->courses);
$output = html_writer::start_tag('div', array('class'=>'header'));
$output .= $this->course_filter_selector($returnurl, get_string('detailedmonthviewfor', 'calendar'));
if (calendar_user_can_add_event($calendar->course)) {
$output .= $this->add_event_button($calendar->course->id, 0, 0, 0, $calendar->time);
}
$output .= $this->course_filter_selector($returnurl, get_string('detailedmonthviewfor', 'calendar'));
$output .= html_writer::end_tag('div', array('class'=>'header'));
// Controls
$output .= html_writer::tag('div', calendar_top_controls('month', array('id' => $calendar->courseid, 'time' => $calendar->time)), array('class' => 'controls'));
@@ -614,10 +614,10 @@ class core_calendar_renderer extends plugin_renderer_base {
$events = calendar_get_upcoming($calendar->courses, $calendar->groups, $calendar->users, $futuredays, $maxevents);
$output = html_writer::start_tag('div', array('class'=>'header'));
$output .= $this->course_filter_selector($returnurl, get_string('upcomingeventsfor', 'calendar'));
if (calendar_user_can_add_event($calendar->course)) {
$output .= $this->add_event_button($calendar->course->id);
}
$output .= $this->course_filter_selector($returnurl, get_string('upcomingeventsfor', 'calendar'));
$output .= html_writer::end_tag('div');
if ($events) {
-2
View File
@@ -43,8 +43,6 @@
.dir-rtl.path-calendar .maincalendar .header .buttons {float: left;}
.path-calendar .filters table {border-collapse:separate;border-spacing: 2px;width: 100%;}
#page-calendar-export .indent {padding-left: 20px;}
.path-calendar div.cal_courses_flt { float: left; }
.dir-rtl.path-calendar div.cal_courses_flt { float: right; }
.path-calendar .cal_courses_flt label { margin-right: .45em; }
.dir-rtl.path-calendar .cal_courses_flt label { margin-left: .45em; margin-right: 0; }
@@ -58,8 +58,6 @@
}
}
.cal_courses_flt {
float: left;
label {
margin-right: .45em;
}
@@ -219,7 +217,6 @@
// RTL overrides for main calendar.
.dir-rtl.path-calendar {
.cal_courses_flt {
float: right;
label {
margin-left: .45em;
margin-right: 0;
File diff suppressed because one or more lines are too long