-
- {{ '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 }}
0">
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 @@
0">
+ [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 @@
-
+
- 0 && commentsEnabled">
-
-
-
-
-
+ 0 && commentsEnabled"
+ contextLevel="module" [instanceId]="database.coursemodule" component="mod_data" [itemId]="entry.id"
+ area="database_entry" [courseId]="courseId" (onLoading)="setLoadingComments($event)" [showItem]="true">
+
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 @@