Skip to content

Commit 6fb2a6e

Browse files
committed
Correct CI errors such as div in h4
1 parent a74d109 commit 6fb2a6e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ jobs:
7575
php: 8.3
7676
- moodle-branch: MOODLE_402_STABLE
7777
php: 8.3
78+
- moodle-branch: MOODLE_403_STABLE
79+
php: 8.3
7880

7981
steps:
8082
- name: Check out repository code

templates/completion-rules-scope-switcher.mustache

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
<div class="xp-flex xp-flex-wrap xp-gap-x-2 xp-gap-y-1">
2828
<div class="xp-grow">
2929
<h4 class="xp-m-0 xp-leading-none">
30-
<div class="xp-text-2xs xp-font-normal xp-uppercase">{{#str}} rulesscope, block_xp {{/str}}</div>
31-
<div>{{ scopename }}{{#scopeurl}}<a href="{{.}}" target="_blank" class="xp-inline-block xp-ml-2 xp-text-base xp-text-inherit"
30+
<span class="xp-block xp-text-2xs xp-font-normal xp-uppercase">{{#str}} rulesscope, block_xp {{/str}}</span>
31+
<span class="xp-block">{{ scopename }}{{#scopeurl}}<a href="{{.}}" target="_blank" class="xp-inline-block xp-ml-2 xp-text-base xp-text-inherit"
3232
title="{{#str}} go, core {{/str}}">
3333
<span class="sr-only">{{#str}} go, core {{/str}}</span>
3434
<i class="fa fa-external-link" aria-hidden="true"></i>
3535
</a>{{/scopeurl}}
36-
</div>
36+
</span>
3737
</h4>
3838
</div>
3939
<div class="xp-flex xp-gap-2 xp-items-end">
@@ -55,11 +55,11 @@
5555
</div>
5656
</div>
5757
{{#js}}
58-
require(['block_xp/course-selector'], (CourseSelector) => {
58+
require(['block_xp/course-selector'], function(CourseSelector) {
5959
const trigger = document.getElementById('block_xp-course-selector-{{uniqid}}');
6060
const courseUrlTemplate = "{{ courseurltemplate }}";
6161
trigger.addEventListener('click', () => {
62-
CourseSelector.openCourseSelector((course) => {
62+
CourseSelector.openCourseSelector(function(course) {
6363
window.location.href = courseUrlTemplate.replace('CONTEXTID', course.contextid);
6464
});
6565
})

0 commit comments

Comments
 (0)