diff --git a/block_overviewmyrolesincourses.php b/block_overviewmyrolesincourses.php index 296d028..af4ebe8 100644 --- a/block_overviewmyrolesincourses.php +++ b/block_overviewmyrolesincourses.php @@ -188,8 +188,8 @@ public function get_courses_enroled_with_roleid( // Add additional information like url to the course, ... $url = new moodle_url('/course/view.php', ['id' => $enroledcourse->id]); $urldelete = new moodle_url('/course/delete.php', ['id' => $enroledcourse->id]); - $enroledcoursewithrole->url = $url; - $enroledcoursewithrole->urldelete = $urldelete; + $enroledcoursewithrole->url = $url.__toString(); + $enroledcoursewithrole->urldelete = $urldelete.__toString(); $enroledcoursewithrole->dimmed = $dimmed; $enroledcoursewithrole->duration = $this->create_duration($enroledcourse)->duration; $enroledcoursewithrole->durationstatus = $this->create_duration($enroledcourse)->durationstatus; diff --git a/styles.css b/styles.css index b742577..fcf8be2 100644 --- a/styles.css +++ b/styles.css @@ -51,11 +51,11 @@ padding-left: 5px; } .overviewmyrolesincourses-foldonstart { - display: none; - } + display: none; +} .row.duration { - margin-left: 0px; + margin-left: 0; } .row.duration .col-8 { padding-left: 0; @@ -64,11 +64,6 @@ padding-right: 10px; } - - - - - .overviewmyrolesincourses-tools { text-align: right; } diff --git a/templates/overviewmyrolesincourses.mustache b/templates/overviewmyrolesincourses.mustache index d5a73c9..91ff3c9 100644 --- a/templates/overviewmyrolesincourses.mustache +++ b/templates/overviewmyrolesincourses.mustache @@ -31,8 +31,8 @@ "coursefullname": "Mathe fractions xxx", "visible": "1", "favourite": true, - "url": {}, - "urldelete": {}, + "url": "", + "urldelete": "", "dimmed": "", "duration": "19\/08\/30 - 19\/08\/40", "cssselectordurationstatusofcourse": "overviewmyrolesincourses-coursefuture", @@ -47,8 +47,8 @@ "coursefullname": "Activities (plugins)", "visible": "1", "favourite": true, - "url": {}, - "urldelete": {}, + "url": "", + "urldelete": "", "dimmed": "", "duration": "23\/07\/21 - 24\/07\/23", "cssselectordurationstatusofcourse": "overviewmyrolesincourses-courseinprogress", @@ -63,8 +63,8 @@ "coursefullname": "Testing filters", "visible": "0", "favourite": true, - "url": {}, - "urldelete": {}, + "url": "", + "urldelete": "", "dimmed": "dimmed", "duration": "23\/07\/21 - 24\/07\/22", "cssselectordurationstatusofcourse": "overviewmyrolesincourses-coursefinished",