MDL-59846 core_calendar: add styling to action link
authorSimey Lameze <simey@moodle.com>
Thu, 17 Aug 2017 06:41:18 +0000 (14:41 +0800)
committerSimey Lameze <simey@moodle.com>
Mon, 4 Sep 2017 00:38:51 +0000 (08:38 +0800)
calendar/renderer.php
theme/bootstrapbase/less/moodle/calendar.less
theme/bootstrapbase/style/moodle.css

index c5b8531..e3cc6fc 100644 (file)
@@ -281,7 +281,7 @@ class core_calendar_renderer extends plugin_renderer_base {
             $output .= html_writer::tag('div', $source, array('class' => 'subscription'));
         }
         if (!empty($event->courselink)) {
-            $output .= html_writer::tag('div', $event->courselink, array('class' => 'course'));
+            $output .= html_writer::tag('div', $event->courselink);
         }
         if (!empty($event->time)) {
             $output .= html_writer::tag('span', $event->time, array('class' => 'date pull-xs-right m-r-1'));
@@ -291,7 +291,8 @@ class core_calendar_renderer extends plugin_renderer_base {
         }
 
         if (!empty($event->actionurl)) {
-            $output .= html_writer::tag('div', html_writer::link(new moodle_url($event->actionurl), $event->actionname));
+            $actionlink = html_writer::link(new moodle_url($event->actionurl), $event->actionname);
+            $output .= html_writer::tag('div', $actionlink, ['class' => 'action']);
         }
 
         $output .= $this->output->box_end();
index 578f8bb..0e84a08 100644 (file)
                     margin-right: 0.5rem;
                 }
                 .name,
-                .course {
+                .action {
                     margin-bottom: 5px;
                 }
                 .date {
                     float: right;
                 }
-                .course,
-                .subscription {
+                .subscription,
+                .action {
                     float: left;
                     clear: left;
                 }
index 65c23c7..98f8b92 100644 (file)
@@ -5718,14 +5718,14 @@ img.iconsmall {
   margin-right: 0.5rem;
 }
 .path-calendar .maincalendar .eventlist .event .name,
-.path-calendar .maincalendar .eventlist .event .course {
+.path-calendar .maincalendar .eventlist .event .action {
   margin-bottom: 5px;
 }
 .path-calendar .maincalendar .eventlist .event .date {
   float: right;
 }
-.path-calendar .maincalendar .eventlist .event .course,
-.path-calendar .maincalendar .eventlist .event .subscription {
+.path-calendar .maincalendar .eventlist .event .subscription,
+.path-calendar .maincalendar .eventlist .event .action {
   float: left;
   clear: left;
 }