Skip to content

Commit

Permalink
convert url to string, fix styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
my-curiosity committed Jan 5, 2024
1 parent 2acdee6 commit 680e5a2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
4 changes: 2 additions & 2 deletions block_overviewmyrolesincourses.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 3 additions & 8 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -64,11 +64,6 @@
padding-right: 10px;
}






.overviewmyrolesincourses-tools {
text-align: right;
}
Expand Down
12 changes: 6 additions & 6 deletions templates/overviewmyrolesincourses.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 680e5a2

Please sign in to comment.