MDL-69449 block_timeline: use dayslimit context data in template.
authorPaul Holden <paulh@moodle.com>
Tue, 11 Aug 2020 22:33:20 +0000 (23:33 +0100)
committerPaul Holden <paulh@moodle.com>
Wed, 12 Aug 2020 08:19:29 +0000 (09:19 +0100)
Ensures the correct value is used when initially rendering the
course timeline.

blocks/timeline/templates/view.mustache

index ce96132..a6ceef3 100644 (file)
@@ -57,7 +57,7 @@
             data-midnight="{{midnight}}"
             data-limit="2"
             data-offset="0"
-            data-days-limit="30"
+            data-days-limit="{{dayslimit}}"
             data-days-offset="0"
             data-no-events-url="{{urls.noevents}}"
             id="view_courses_{{uniqid}}"