Skip to content

Commit

Permalink
Correct CI errors such as div in h4
Browse files Browse the repository at this point in the history
  • Loading branch information
FMCorz committed Apr 22, 2024
1 parent a74d109 commit 6fb2a6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ jobs:
php: 8.3
- moodle-branch: MOODLE_402_STABLE
php: 8.3
- moodle-branch: MOODLE_403_STABLE
php: 8.3

steps:
- name: Check out repository code
Expand Down
10 changes: 5 additions & 5 deletions templates/completion-rules-scope-switcher.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
<div class="xp-flex xp-flex-wrap xp-gap-x-2 xp-gap-y-1">
<div class="xp-grow">
<h4 class="xp-m-0 xp-leading-none">
<div class="xp-text-2xs xp-font-normal xp-uppercase">{{#str}} rulesscope, block_xp {{/str}}</div>
<div>{{ scopename }}{{#scopeurl}}<a href="{{.}}" target="_blank" class="xp-inline-block xp-ml-2 xp-text-base xp-text-inherit"
<span class="xp-block xp-text-2xs xp-font-normal xp-uppercase">{{#str}} rulesscope, block_xp {{/str}}</span>
<span class="xp-block">{{ scopename }}{{#scopeurl}}<a href="{{.}}" target="_blank" class="xp-inline-block xp-ml-2 xp-text-base xp-text-inherit"
title="{{#str}} go, core {{/str}}">
<span class="sr-only">{{#str}} go, core {{/str}}</span>
<i class="fa fa-external-link" aria-hidden="true"></i>
</a>{{/scopeurl}}
</div>
</span>
</h4>
</div>
<div class="xp-flex xp-gap-2 xp-items-end">
Expand All @@ -55,11 +55,11 @@
</div>
</div>
{{#js}}
require(['block_xp/course-selector'], (CourseSelector) => {
require(['block_xp/course-selector'], function(CourseSelector) {
const trigger = document.getElementById('block_xp-course-selector-{{uniqid}}');
const courseUrlTemplate = "{{ courseurltemplate }}";
trigger.addEventListener('click', () => {
CourseSelector.openCourseSelector((course) => {
CourseSelector.openCourseSelector(function(course) {
window.location.href = courseUrlTemplate.replace('CONTEXTID', course.contextid);
});
})
Expand Down

0 comments on commit 6fb2a6e

Please sign in to comment.