Skip to content

Commit

Permalink
add backgroundcolor in css for all core roles and also for all non co…
Browse files Browse the repository at this point in the history
…re roles
  • Loading branch information
Andreas Schenkel authored and Andreas Schenkel committed Jan 22, 2024
1 parent b450282 commit 022c2f9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@

[[v1.5.1]] 20240120
Reviewed version of pull request with some adaptions.
1. make seperator in heading configurable by css eg change margin between rolelocalname and seperator
1. make separator in heading configurable by css eg change margin between rolelocalname and separator
2. default is not needed in langstring because there is a new heading for the section with the default settings
3. display the tools in a seperate row
4. add folder icon in front of coursecategoryname
5. add calender icon in front of duration
6. add langstring (category hidden) to the plugin instead of using core lang string
7. add indicator for roles that are not core roles and add some css for backgroundcolor for non core roles
7. add backgroundcolor in css for all core roles and also for all non core roles


[[v1.5.0]] 20240120
add pullrequest from eLearning-TUDarmstadt
Expand Down
2 changes: 1 addition & 1 deletion block_overviewmyrolesincourses.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function get_content() {
// 4. To mark favourite courses get the ids
$favouritecourseids = self::get_favourite_course_ids($USER->id);
// 5. Check for every role if the role is supported and then in which courses the user has this role.
$coreroles = ['manager', 'coursecreator', 'editingteacher', 'teacher', 'student'];
$coreroles = ['manager', 'coursecreator', 'editingteacher', 'teacher', 'student', 'guest', 'user', 'frontpage'];
foreach ($rolefixnames as $rolefixname) {
$data = new stdClass();
if (in_array($rolefixname->id, $configuredsupportedroles)) {
Expand Down
15 changes: 10 additions & 5 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,27 @@
.overviewmyrolesincourses-bg-manager {
background-color: #aaa;
}

.overviewmyrolesincourses-bg-editingteacher {
background-color: #bbb;
}

.overviewmyrolesincourses-bg-teacher {
background-color: #ccc;
}

.overviewmyrolesincourses-bg-student {
background-color: #ddd;
}

.overviewmyrolesincourses .isnotcorerole {
.overviewmyrolesincourses-bg-guest {
background-color: #eee;
}
.overviewmyrolesincourses-bg-user {
background-color: #eee;
}
.overviewmyrolesincourses-bg-frontpage {
background-color: #eee;
}
.overviewmyrolesincourses .isnotcorerole {
background-color: #fafafa;
}

.overviewmyrolesincourses-coursefinished {
border-left: solid 5px rgb(155, 13, 13);
Expand Down

0 comments on commit 022c2f9

Please sign in to comment.