From 5e4e4fc75f50126b686626ef63524df1c62ee6a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 15 Nov 2018 16:09:55 +0100 Subject: [PATCH] MOBILE-1486 user: Show status indicator on user avatar --- .../course/addon-competency-course.html | 7 +- .../pages/competency/competency.html | 11 +- src/addon/competency/pages/plan/plan.html | 7 +- .../contacts/addon-messages-contacts.html | 4 +- .../addon-messages-discussions.html | 8 +- .../addon-mod-assign-submission.html | 12 +- .../submission-list/submission-list.html | 4 +- src/addon/mod/chat/pages/chat/chat.html | 4 +- src/addon/mod/chat/pages/users/users.html | 4 +- .../index/addon-mod-choice-index.html | 4 +- .../mod/feedback/pages/attempt/attempt.html | 6 +- .../pages/nonrespondents/nonrespondents.html | 4 +- .../pages/respondents/respondents.html | 4 +- .../index/addon-mod-forum-index.html | 8 +- .../components/post/addon-mod-forum-post.html | 4 +- src/addon/mod/glossary/pages/entry/entry.html | 4 +- .../index/addon-mod-lesson-index.html | 4 +- .../lesson/pages/user-retake/user-retake.html | 4 +- .../addon-mod-workshop-assessment.html | 4 +- .../addon-mod-workshop-submission.html | 12 +- .../workshop/pages/assessment/assessment.html | 9 +- .../workshop/pages/submission/submission.html | 8 +- .../components/list/addon-notes-list.html | 4 +- src/addon/notifications/pages/list/list.html | 4 +- src/components/chrono/chrono.ts | 2 +- src/components/components.module.ts | 7 +- .../user-avatar/core-user-avatar.html | 2 + src/components/user-avatar/user-avatar.scss | 15 +++ src/components/user-avatar/user-avatar.ts | 113 ++++++++++++++++++ src/core/comments/pages/viewer/viewer.html | 4 +- .../pages/course-preview/course-preview.html | 6 +- src/core/mainmenu/pages/more/more.html | 6 +- .../participants/core-user-participants.html | 4 +- src/theme/variables.scss | 2 + 34 files changed, 179 insertions(+), 126 deletions(-) create mode 100644 src/components/user-avatar/core-user-avatar.html create mode 100644 src/components/user-avatar/user-avatar.scss create mode 100644 src/components/user-avatar/user-avatar.ts diff --git a/src/addon/competency/components/course/addon-competency-course.html b/src/addon/competency/components/course/addon-competency-course.html index 6480199c9..2bf0cce65 100644 --- a/src/addon/competency/components/course/addon-competency-course.html +++ b/src/addon/competency/components/course/addon-competency-course.html @@ -28,12 +28,7 @@

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

- - - - - - +

diff --git a/src/addon/competency/pages/competency/competency.html b/src/addon/competency/pages/competency/competency.html index e5fb5af37..060264283 100644 --- a/src/addon/competency/pages/competency/competency.html +++ b/src/addon/competency/pages/competency/competency.html @@ -10,12 +10,7 @@ - - - - - - +

@@ -78,9 +73,7 @@

- - - +

{{ evidence.actionuser.fullname }}

{{ evidence.timemodified | coreToLocaleString }}

diff --git a/src/addon/competency/pages/plan/plan.html b/src/addon/competency/pages/plan/plan.html index ce74e7eea..8b368ae8f 100644 --- a/src/addon/competency/pages/plan/plan.html +++ b/src/addon/competency/pages/plan/plan.html @@ -10,12 +10,7 @@ - - - - - - +

diff --git a/src/addon/messages/components/contacts/addon-messages-contacts.html b/src/addon/messages/components/contacts/addon-messages-contacts.html index a531c3391..8ee810583 100644 --- a/src/addon/messages/components/contacts/addon-messages-contacts.html +++ b/src/addon/messages/components/contacts/addon-messages-contacts.html @@ -19,9 +19,7 @@ - - - +

diff --git a/src/addon/messages/components/discussions/addon-messages-discussions.html b/src/addon/messages/components/discussions/addon-messages-discussions.html index 5fcb5dfcc..eaf478467 100644 --- a/src/addon/messages/components/discussions/addon-messages-discussions.html +++ b/src/addon/messages/components/discussions/addon-messages-discussions.html @@ -17,9 +17,7 @@ {{ search.results.length }} - - - +

@@ -27,9 +25,7 @@ - - - +

diff --git a/src/addon/mod/assign/components/submission/addon-mod-assign-submission.html b/src/addon/mod/assign/components/submission/addon-mod-assign-submission.html index 2a2030d30..e0dfbf922 100644 --- a/src/addon/mod/assign/components/submission/addon-mod-assign-submission.html +++ b/src/addon/mod/assign/components/submission/addon-mod-assign-submission.html @@ -2,9 +2,7 @@ - - - +

{{ user.fullname }}

@@ -113,9 +111,7 @@

{{ 'addon.mod_assign.userswhoneedtosubmit' | translate: {$a: ''} }}

- - - +

{{ user.fullname }}

@@ -213,9 +209,7 @@ - - - +

{{ 'addon.mod_assign.gradedby' | translate }}

{{ grader.fullname }}

{{ feedback.gradeddate * 1000 | coreFormatDate:"dfmediumdate" }}

diff --git a/src/addon/mod/assign/pages/submission-list/submission-list.html b/src/addon/mod/assign/pages/submission-list/submission-list.html index 70b209bbb..3df9c921f 100644 --- a/src/addon/mod/assign/pages/submission-list/submission-list.html +++ b/src/addon/mod/assign/pages/submission-list/submission-list.html @@ -18,9 +18,7 @@
- - - +

{{submission.userfullname}}

{{ 'addon.mod_assign.hiddenuser' | translate }}{{submission.blindid}}

diff --git a/src/addon/mod/chat/pages/chat/chat.html b/src/addon/mod/chat/pages/chat/chat.html index c440dce08..52fe5ab1a 100644 --- a/src/addon/mod/chat/pages/chat/chat.html +++ b/src/addon/mod/chat/pages/chat/chat.html @@ -38,9 +38,7 @@

- - - +

{{ message.timestamp * 1000 | coreFormatDate:"dftimedate" }}

diff --git a/src/addon/mod/chat/pages/users/users.html b/src/addon/mod/chat/pages/users/users.html index 3ef49895e..f31b4429a 100644 --- a/src/addon/mod/chat/pages/users/users.html +++ b/src/addon/mod/chat/pages/users/users.html @@ -11,9 +11,7 @@ - - - +