diff --git a/src/addons/badges/pages/user-badges/user-badges.html b/src/addons/badges/pages/user-badges/user-badges.html index 965f35d70..a04a3e761 100644 --- a/src/addons/badges/pages/user-badges/user-badges.html +++ b/src/addons/badges/pages/user-badges/user-badges.html @@ -18,7 +18,7 @@ + (click)="badges.select(badge)" [attr.aria-current]="badges.getItemAriaCurrent(badge)" detail="true"> diff --git a/src/addons/block/activitymodules/components/activitymodules/addon-block-activitymodules.html b/src/addons/block/activitymodules/components/activitymodules/addon-block-activitymodules.html index fbd46e52c..1f39261b4 100644 --- a/src/addons/block/activitymodules/components/activitymodules/addon-block-activitymodules.html +++ b/src/addons/block/activitymodules/components/activitymodules/addon-block-activitymodules.html @@ -3,8 +3,8 @@

{{ 'addon.block_activitymodules.pluginname' | translate }}

- - + {{ entry.name }} diff --git a/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html b/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html index 405246a1f..87fb9b52f 100644 --- a/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html +++ b/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html @@ -36,7 +36,7 @@ - +
diff --git a/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html b/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html index e5cc1f9e0..e65ea9c0d 100644 --- a/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html +++ b/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html @@ -20,7 +20,7 @@
- + diff --git a/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/addon-block-recentlyaccesseditems.html b/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/addon-block-recentlyaccesseditems.html index 4990142ad..f63f935a5 100644 --- a/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/addon-block-recentlyaccesseditems.html +++ b/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/addon-block-recentlyaccesseditems.html @@ -5,7 +5,7 @@ - +
{{ 'addon.block_sitemainmenu.pluginname' | translate }} - + diff --git a/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html b/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html index 21147e0c5..b207895af 100644 --- a/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html +++ b/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html @@ -20,7 +20,7 @@
- + diff --git a/src/addons/block/timeline/components/timeline/addon-block-timeline.html b/src/addons/block/timeline/components/timeline/addon-block-timeline.html index fcba46bf8..f8d82393d 100644 --- a/src/addons/block/timeline/components/timeline/addon-block-timeline.html +++ b/src/addons/block/timeline/components/timeline/addon-block-timeline.html @@ -9,7 +9,7 @@ - +
@@ -35,12 +35,12 @@
- + + [fullscreen]="false" class="safe-area-page margin"> diff --git a/src/addons/blog/pages/entries/entries.html b/src/addons/blog/pages/entries/entries.html index 94e0fb5e2..73b15a137 100644 --- a/src/addons/blog/pages/entries/entries.html +++ b/src/addons/blog/pages/entries/entries.html @@ -54,22 +54,18 @@
- - - - - - + + - + {{ 'addon.blog.linktooriginalentry' | translate }} - - + + {{entry.lastmodified | coreTimeAgo}} diff --git a/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html b/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html index 46de2aacf..315e8e624 100644 --- a/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html +++ b/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html @@ -5,7 +5,7 @@ + [ngClass]="['addon-calendar-eventtype-'+event.eventtype]" detail="true"> - {{ 'addon.competency.activities' | translate }} +

{{ 'addon.competency.activities' | translate }}

{{ 'addon.competency.noactivities' | translate }}

@@ -87,13 +90,13 @@ - {{ 'addon.competency.reviewstatus' | translate }} - {{ competency.usercompetency!.statusname }} +

{{ 'addon.competency.reviewstatus' | translate }}

+

{{ competency.usercompetency!.statusname }}

- {{ 'addon.competency.proficient' | translate }} +

{{ 'addon.competency.proficient' | translate }}

{{ 'core.yes' | translate }} @@ -104,7 +107,7 @@
- {{ 'addon.competency.rating' | translate }} +

{{ 'addon.competency.rating' | translate }}

{{ userCompetency.gradename }}
diff --git a/src/addons/competency/pages/competencysummary/competencysummary.html b/src/addons/competency/pages/competencysummary/competencysummary.html index f497b008c..664344804 100644 --- a/src/addons/competency/pages/competencysummary/competencysummary.html +++ b/src/addons/competency/pages/competencysummary/competencysummary.html @@ -23,11 +23,15 @@
- {{ 'addon.competency.path' | translate }} - {{ competency.comppath.framework.name }} - -  / {{ ancestor.name }} - +

{{ 'addon.competency.path' | translate }}

+

{{ competency.comppath.framework.name }} + +  /  + + +

diff --git a/src/addons/competency/pages/coursecompetencies/coursecompetencies.html b/src/addons/competency/pages/coursecompetencies/coursecompetencies.html index ad3af37bb..de2b0bb59 100644 --- a/src/addons/competency/pages/coursecompetencies/coursecompetencies.html +++ b/src/addons/competency/pages/coursecompetencies/coursecompetencies.html @@ -34,11 +34,11 @@ - {{ 'addon.competency.competenciesmostoftennotproficientincourse' | translate }}: +

{{ 'addon.competency.competenciesmostoftennotproficientincourse' | translate }}

- +

@@ -63,7 +63,7 @@ [attr.aria-label]="competency.competency.shortname" detail="true" button>

- {{competency.competency.shortname}} {{competency.competency.idnumber}} + {{competency.competency.shortname}} {{competency.competency.idnumber}}

- {{ 'addon.competency.path' | translate }} - - {{ competency.comppath.framework.name }} - - - {{ competency.comppath.framework.name }} - -  /  - - - {{ ancestor.name }} +

{{ 'addon.competency.path' | translate }}

+

+ + {{ competency.comppath.framework.name }} - {{ ancestor.name }} -  /  - + + {{ competency.comppath.framework.name }} + +  /  + + + {{ ancestor.name }} +  /  + +

- {{ 'addon.competency.uponcoursecompletion' | translate }} +

{{ 'addon.competency.uponcoursecompletion' | translate }}

{{ ruleoutcome.text }}
- {{ 'addon.competency.activities' | translate }} +

{{ 'addon.competency.activities' | translate }}

{{ 'addon.competency.noactivities' | translate }}

@@ -121,7 +124,7 @@
- {{ 'addon.competency.userplans' | translate }} +

{{ 'addon.competency.userplans' | translate }}

{{ 'addon.competency.nouserplanswithcompetency' | translate }}

diff --git a/src/addons/competency/pages/plan/plan.html b/src/addons/competency/pages/plan/plan.html index 0331c370a..edebcf7ba 100644 --- a/src/addons/competency/pages/plan/plan.html +++ b/src/addons/competency/pages/plan/plan.html @@ -23,37 +23,35 @@ - - +

+ + +

-

- {{ 'addon.competency.status' | translate }}: {{ plan.plan.statusname }} -

+

{{ 'addon.competency.status' | translate }}

+

{{ plan.plan.statusname }}

-

- {{ 'addon.competency.duedate' | translate }}: - {{ plan.plan.duedate * 1000 | coreFormatDate }} -

+

{{ 'addon.competency.duedate' | translate }}

+

{{ plan.plan.duedate * 1000 | coreFormatDate }}

-

- {{ 'addon.competency.template' | translate }}: {{ plan.plan.template.shortname }} -

+

{{ 'addon.competency.template' | translate }}

+

{{ plan.plan.template.shortname }}

- -

- {{ 'addon.competency.progress' | translate }}: + +

{{ 'addon.competency.progress' | translate }}

+

{{ 'addon.competency.xcompetenciesproficientoutofy' | translate: {$a: {x: plan.proficientcompetencycount, y: plan.competencycount} } }}

diff --git a/src/addons/competency/pages/planlist/planlist.html b/src/addons/competency/pages/planlist/planlist.html index b25476471..1b037fe48 100644 --- a/src/addons/competency/pages/planlist/planlist.html +++ b/src/addons/competency/pages/planlist/planlist.html @@ -17,7 +17,7 @@ + (click)="plans.select(plan)" [attr.aria-current]="plans.getItemAriaCurrent(plan)" button detail="true">

{{ plan.name }}

diff --git a/src/addons/messages/pages/discussion/discussion.html b/src/addons/messages/pages/discussion/discussion.html index 2d0b64d50..6ff35dea0 100644 --- a/src/addons/messages/pages/discussion/discussion.html +++ b/src/addons/messages/pages/discussion/discussion.html @@ -8,10 +8,9 @@ alt="" onError="this.src='assets/img/group-avatar.png'" core-external-content role="presentation" [siteId]="siteId || null"> + [linkProfile]="false" [checkOnline]="otherMember.showonlinestatus"> - + @@ -93,12 +92,16 @@ [@coreSlideInOut]="message.useridfrom == currentUserId ? '' : 'fromLeft'"> -

+
- -
{{ members[message.useridfrom].fullname }}
+ aria-hidden="true"> + + {{ members[message.useridfrom].fullname }} +
+
+ {{ message.useridfrom == currentUserId + ? ('addon.messages.you' | translate) + : members[message.useridfrom].fullname }}
@@ -128,7 +131,7 @@ + [attr.aria-label]="'addon.messages.newmessages' | translate"> {{ newMessages }} diff --git a/src/addons/messages/pages/discussion/discussion.page.ts b/src/addons/messages/pages/discussion/discussion.page.ts index 8bec7da83..b107bfd10 100644 --- a/src/addons/messages/pages/discussion/discussion.page.ts +++ b/src/addons/messages/pages/discussion/discussion.page.ts @@ -250,6 +250,7 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView this.title = user.fullname; } this.conversationImage = user.profileimageurl; + this.members[user.id] = user; return; }).catch(() => { @@ -1302,7 +1303,7 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView async viewInfo(): Promise { if (this.isGroup) { // Display the group information. - const userId = await CoreDomUtils.openModal({ + const userId = await CoreDomUtils.openSideModal({ component: AddonMessagesConversationInfoComponent, componentProps: { conversationId: this.conversationId, diff --git a/src/addons/messages/pages/discussions-35/discussions.html b/src/addons/messages/pages/discussions-35/discussions.html index 7340b0c1a..b32c97873 100644 --- a/src/addons/messages/pages/discussions-35/discussions.html +++ b/src/addons/messages/pages/discussions-35/discussions.html @@ -19,11 +19,11 @@ + [disabled]="!loaded" searchArea="AddonMessagesDiscussions" [autoFocus]="false"> - + @@ -40,7 +40,7 @@ + [attr.aria-current]="result.userid == discussionUserId ? 'page' : 'false'" detail="false">

{{ result.fullname }}

diff --git a/src/addons/mod/assign/components/index/addon-mod-assign-index.html b/src/addons/mod/assign/components/index/addon-mod-assign-index.html index 57360cf57..d992ec91a 100644 --- a/src/addons/mod/assign/components/index/addon-mod-assign-index.html +++ b/src/addons/mod/assign/components/index/addon-mod-assign-index.html @@ -40,7 +40,8 @@ + contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId" + (onClick)="expandDescription($event)"> diff --git a/src/addons/mod/assign/components/submission/addon-mod-assign-submission.html b/src/addons/mod/assign/components/submission/addon-mod-assign-submission.html index ddc9d6b2c..09d1c6416 100644 --- a/src/addons/mod/assign/components/submission/addon-mod-assign-submission.html +++ b/src/addons/mod/assign/components/submission/addon-mod-assign-submission.html @@ -1,4 +1,4 @@ - + + [attr.aria-current]="submissions.getItemAriaCurrent(submission)" detail="true">

{{submission.userfullname}}

diff --git a/src/addons/mod/assign/submission/comments/component/addon-mod-assign-submission-comments.html b/src/addons/mod/assign/submission/comments/component/addon-mod-assign-submission-comments.html index 565702191..882718fc8 100644 --- a/src/addons/mod/assign/submission/comments/component/addon-mod-assign-submission-comments.html +++ b/src/addons/mod/assign/submission/comments/component/addon-mod-assign-submission-comments.html @@ -1,4 +1,4 @@ - +

{{plugin.name}}

+ [class.item-dimmed]="chapter.hidden" detail="false"> -

- {{chapter.indexNumber}} - +

+ {{chapter.indexNumber}}  + •  diff --git a/src/addons/mod/chat/pages/sessions/sessions.html b/src/addons/mod/chat/pages/sessions/sessions.html index cdd256681..c574fd6a8 100644 --- a/src/addons/mod/chat/pages/sessions/sessions.html +++ b/src/addons/mod/chat/pages/sessions/sessions.html @@ -30,7 +30,7 @@ - @@ -47,11 +47,10 @@ -

- - {{ 'core.showmore' | translate }} - -
+ + {{ 'core.showmore' | translate }} + diff --git a/src/addons/mod/data/components/field-plugin/addon-mod-data-field-plugin.html b/src/addons/mod/data/components/field-plugin/addon-mod-data-field-plugin.html index 44e4d82a5..c738b7d01 100644 --- a/src/addons/mod/data/components/field-plugin/addon-mod-data-field-plugin.html +++ b/src/addons/mod/data/components/field-plugin/addon-mod-data-field-plugin.html @@ -1,5 +1,4 @@ - - + diff --git a/src/addons/mod/data/components/index/addon-mod-data-index.html b/src/addons/mod/data/components/index/addon-mod-data-index.html index 14a74c9a1..6485aa73f 100644 --- a/src/addons/mod/data/components/index/addon-mod-data-index.html +++ b/src/addons/mod/data/components/index/addon-mod-data-index.html @@ -103,16 +103,18 @@ - - - {{ 'addon.mod_data.resetsettings' | translate}} + + + {{ 'addon.mod_data.resetsettings' | translate}} - - -

-
+ + + +

+
+
@@ -144,7 +146,7 @@ - {{ 'addon.mod_data.resetsettings' | translate}} +
diff --git a/src/addons/mod/data/components/index/index.ts b/src/addons/mod/data/components/index/index.ts index fc1e1d686..4f27405a5 100644 --- a/src/addons/mod/data/components/index/index.ts +++ b/src/addons/mod/data/components/index/index.ts @@ -48,6 +48,8 @@ import { AddonModDataPrefetchHandler } from '../../services/handlers/prefetch'; import { AddonModDataComponentsCompileModule } from '../components-compile.module'; import { AddonModDataSearchComponent } from '../search/search'; +const contentToken = ''; + /** * Component that displays a data index page. */ @@ -318,12 +320,22 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp if (!this.isEmpty) { this.entries = (entries.offlineEntries || []).concat(entries.entries); - let entriesHTML = AddonModDataHelper.getTemplate( + let headerAndFooter = AddonModDataHelper.getTemplate( this.database!, AddonModDataTemplateType.LIST_HEADER, this.fieldsArray, ); + headerAndFooter += contentToken; + + headerAndFooter += AddonModDataHelper.getTemplate( + this.database!, + AddonModDataTemplateType.LIST_FOOTER, + this.fieldsArray, + ); + + headerAndFooter = CoreDomUtils.fixHtml(headerAndFooter); + // Get first entry from the whole list. if (!this.search.searching || !this.firstEntry) { this.firstEntry = this.entries[0].id; @@ -331,6 +343,8 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp const template = AddonModDataHelper.getTemplate(this.database!, AddonModDataTemplateType.LIST, this.fieldsArray); + let entriesHTML = ''; + const entriesById: Record = {}; this.entries.forEach((entry, index) => { entriesById[entry.id] = entry; @@ -349,9 +363,8 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp actions, ); }); - entriesHTML += AddonModDataHelper.getTemplate(this.database!, AddonModDataTemplateType.LIST_FOOTER, this.fieldsArray); - this.entriesRendered = CoreDomUtils.fixHtml(entriesHTML); + this.entriesRendered = headerAndFooter.replace(contentToken, entriesHTML); // Pass the input data to the component. this.jsData = { diff --git a/src/addons/mod/data/data.scss b/src/addons/mod/data/data.scss index 59fe03bd5..6b7862a8d 100644 --- a/src/addons/mod/data/data.scss +++ b/src/addons/mod/data/data.scss @@ -12,6 +12,10 @@ $grid-column-paddings: ( xl: var(--ion-grid-column-padding-xl, $grid-column-padding) ) !default; +:host { + --border-color: var(--gray); +} + .addon-data-contents { overflow: visible; white-space: normal; @@ -19,9 +23,7 @@ $grid-column-paddings: ( padding: 16px; background-color: var(--ion-item-background); - border-width: 1px 0; - border-style: solid; - border-color: var(--gray-dark); + border-bottom: 1px solid var(--border-color); ::ng-deep { table, tbody { diff --git a/src/addons/mod/data/fields/picture/component/addon-mod-data-field-picture.html b/src/addons/mod/data/fields/picture/component/addon-mod-data-field-picture.html index edfd06cfe..d00754fdc 100644 --- a/src/addons/mod/data/fields/picture/component/addon-mod-data-field-picture.html +++ b/src/addons/mod/data/fields/picture/component/addon-mod-data-field-picture.html @@ -14,9 +14,9 @@ - + diff --git a/src/addons/mod/data/fields/picture/component/picture.ts b/src/addons/mod/data/fields/picture/component/picture.ts index fe7cad78a..af3cdafcd 100644 --- a/src/addons/mod/data/fields/picture/component/picture.ts +++ b/src/addons/mod/data/fields/picture/component/picture.ts @@ -138,4 +138,11 @@ export class AddonModDataFieldPictureComponent extends AddonModDataFieldPluginCo } } + /** + * Navigate to the entry. + */ + navigateEntry(): void { + this.gotoEntry.emit(this.entryId); + } + } diff --git a/src/addons/mod/data/pages/entry/entry.html b/src/addons/mod/data/pages/entry/entry.html index 36ae9d58c..9229f6c15 100644 --- a/src/addons/mod/data/pages/entry/entry.html +++ b/src/addons/mod/data/pages/entry/entry.html @@ -37,7 +37,7 @@
-
+
- - - - - - + + diff --git a/src/addons/mod/data/services/data-helper.ts b/src/addons/mod/data/services/data-helper.ts index 566504941..ee4ef04e3 100644 --- a/src/addons/mod/data/services/data-helper.ts +++ b/src/addons/mod/data/services/data-helper.ts @@ -658,7 +658,7 @@ export class AddonModDataHelperProvider { // Add core-link directive to links. template = template.replace( /]*href="[^>]*)>/ig, - (match, attributes) => '', + (match, attributes) => ' diff --git a/src/addons/mod/wiki/components/map/map.html b/src/addons/mod/wiki/components/map/map.html index d76be6836..3a205d1c8 100644 --- a/src/addons/mod/wiki/components/map/map.html +++ b/src/addons/mod/wiki/components/map/map.html @@ -12,7 +12,7 @@