diff --git a/src/addon/mod/assign/providers/assign.ts b/src/addon/mod/assign/providers/assign.ts index fbaec2622..a1e3a329a 100644 --- a/src/addon/mod/assign/providers/assign.ts +++ b/src/addon/mod/assign/providers/assign.ts @@ -322,19 +322,12 @@ export class AddonModAssignProvider { } filearea.files.forEach((file) => { - let filename; - - if (file.filename) { - filename = file.filename; - } else { + if (!file.filename) { // We don't have filename, extract it from the path. - filename = file.filepath[0] == '/' ? file.filepath.substr(1) : file.filepath; + file.filename = file.filepath[0] == '/' ? file.filepath.substr(1) : file.filepath; } - files.push({ - filename: filename, - fileurl: file.fileurl - }); + files.push(file); }); }); } diff --git a/src/addon/mod/assign/submission/file/component/addon-mod-assign-submission-file.html b/src/addon/mod/assign/submission/file/component/addon-mod-assign-submission-file.html index 5264ff0bc..779bff313 100644 --- a/src/addon/mod/assign/submission/file/component/addon-mod-assign-submission-file.html +++ b/src/addon/mod/assign/submission/file/component/addon-mod-assign-submission-file.html @@ -1,12 +1,14 @@

{{plugin.name}}

-
- - +
+ + + - - + + +
diff --git a/src/addon/mod/data/fields/file/component/addon-mod-data-field-file.html b/src/addon/mod/data/fields/file/component/addon-mod-data-field-file.html index 9b6dd2791..a7e8d8f11 100644 --- a/src/addon/mod/data/fields/file/component/addon-mod-data-field-file.html +++ b/src/addon/mod/data/fields/file/component/addon-mod-data-field-file.html @@ -9,11 +9,13 @@ -
- - +
+ + + - - + + +
diff --git a/src/addon/mod/forum/components/post/addon-mod-forum-post.html b/src/addon/mod/forum/components/post/addon-mod-forum-post.html index 17a9779ad..061c4b748 100644 --- a/src/addon/mod/forum/components/post/addon-mod-forum-post.html +++ b/src/addon/mod/forum/components/post/addon-mod-forum-post.html @@ -16,11 +16,13 @@ -
- - - - +
+ + + + + +
diff --git a/src/addon/mod/glossary/pages/entry/entry.html b/src/addon/mod/glossary/pages/entry/entry.html index 65d021f8e..4b4d63b05 100644 --- a/src/addon/mod/glossary/pages/entry/entry.html +++ b/src/addon/mod/glossary/pages/entry/entry.html @@ -26,7 +26,9 @@ - +
+ +

{{ 'addon.mod_glossary.entrypendingapproval' | translate }}

diff --git a/src/addon/mod/workshop/components/assessment-strategy/addon-mod-workshop-assessment-strategy.html b/src/addon/mod/workshop/components/assessment-strategy/addon-mod-workshop-assessment-strategy.html index 1e400d8c3..fbefcc6b9 100644 --- a/src/addon/mod/workshop/components/assessment-strategy/addon-mod-workshop-assessment-strategy.html +++ b/src/addon/mod/workshop/components/assessment-strategy/addon-mod-workshop-assessment-strategy.html @@ -31,12 +31,14 @@
- - - - - - +
+ + + + + + +
diff --git a/src/addon/qtype/essay/component/addon-qtype-essay.html b/src/addon/qtype/essay/component/addon-qtype-essay.html index f763428f2..ec4293251 100644 --- a/src/addon/qtype/essay/component/addon-qtype-essay.html +++ b/src/addon/qtype/essay/component/addon-qtype-essay.html @@ -35,6 +35,8 @@ - +
+ +
diff --git a/src/components/file/core-file.html b/src/components/file/core-file.html index 509ae3aca..b8d89f5a2 100644 --- a/src/components/file/core-file.html +++ b/src/components/file/core-file.html @@ -1,6 +1,8 @@ -

{{fileName}}

+

{{fileName}}

+

{{ fileSizeReadable }}

+

{{ timemodified * 1000 | coreFormatDate:"dfmediumdate" }}