diff --git a/scripts/langindex.json b/scripts/langindex.json index fa870638e..08019c959 100644 --- a/scripts/langindex.json +++ b/scripts/langindex.json @@ -524,15 +524,13 @@ "addon.mod_choice.cannotsubmit": "choice", "addon.mod_choice.choiceoptions": "choice", "addon.mod_choice.errorgetchoice": "local_moodlemobileapp", - "addon.mod_choice.expired": "choice", "addon.mod_choice.full": "choice", "addon.mod_choice.limita": "choice", "addon.mod_choice.modulenameplural": "choice", "addon.mod_choice.noresultsviewable": "choice", - "addon.mod_choice.notopenyet": "choice", "addon.mod_choice.numberofuser": "choice", "addon.mod_choice.numberofuserinpercentage": "choice", - "addon.mod_choice.previewonly": "choice", + "addon.mod_choice.previewing": "choice", "addon.mod_choice.publishinfoanonafter": "choice", "addon.mod_choice.publishinfoanonclose": "choice", "addon.mod_choice.publishinfofullafter": "choice", diff --git a/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.scss b/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.scss index 9f161779f..1d64d9e8c 100644 --- a/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.scss +++ b/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.scss @@ -9,9 +9,7 @@ .ion-text-wrap ion-label { .item-heading, h2, p { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + @include ellipsis(); } } } diff --git a/src/addons/block/timeline/components/events/events.scss b/src/addons/block/timeline/components/events/events.scss index 709f503bd..16fdec4a5 100644 --- a/src/addons/block/timeline/components/events/events.scss +++ b/src/addons/block/timeline/components/events/events.scss @@ -52,8 +52,7 @@ h4.core-bold { flex-wrap: wrap; & > span { - overflow: hidden; - text-overflow: ellipsis; + @include ellipsis(); } } diff --git a/src/addons/messages/messages-common.scss b/src/addons/messages/messages-common.scss index da75d7348..20a561db1 100644 --- a/src/addons/messages/messages-common.scss +++ b/src/addons/messages/messages-common.scss @@ -46,9 +46,7 @@ } .addon-message-last-message-text { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + @include ellipsis(); flex-shrink: 1; } } diff --git a/src/addons/messages/pages/discussion/discussion.scss b/src/addons/messages/pages/discussion/discussion.scss index 8a1e2dd70..b0936e504 100644 --- a/src/addons/messages/pages/discussion/discussion.scss +++ b/src/addons/messages/pages/discussion/discussion.scss @@ -51,9 +51,7 @@ } core-format-text { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + @include ellipsis(); flex-shrink: 1; display: block; } diff --git a/src/addons/mod/choice/choice.module.ts b/src/addons/mod/choice/choice.module.ts index dbf056f0f..b09b8ab97 100644 --- a/src/addons/mod/choice/choice.module.ts +++ b/src/addons/mod/choice/choice.module.ts @@ -22,13 +22,13 @@ import { CoreCourseModulePrefetchDelegate } from '@features/course/services/modu import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module'; import { CoreCronDelegate } from '@services/cron'; import { CORE_SITE_SCHEMAS } from '@services/sites'; -import { AddonModChoiceProvider } from './services/choice'; import { OFFLINE_SITE_SCHEMA } from './services/database/choice'; import { AddonModChoiceIndexLinkHandler } from './services/handlers/index-link'; import { AddonModChoiceListLinkHandler } from './services/handlers/list-link'; import { AddonModChoiceModuleHandler, AddonModChoiceModuleHandlerService } from './services/handlers/module'; import { AddonModChoicePrefetchHandler } from './services/handlers/prefetch'; import { AddonModChoiceSyncCronHandler } from './services/handlers/sync-cron'; +import { ADDON_MOD_CHOICE_COMPONENT } from './constants'; const routes: Routes = [ { @@ -57,7 +57,7 @@ const routes: Routes = [ CoreContentLinksDelegate.registerHandler(AddonModChoiceIndexLinkHandler.instance); CoreContentLinksDelegate.registerHandler(AddonModChoiceListLinkHandler.instance); - CoreCourseHelper.registerModuleReminderClick(AddonModChoiceProvider.COMPONENT); + CoreCourseHelper.registerModuleReminderClick(ADDON_MOD_CHOICE_COMPONENT); }, }, ], diff --git a/src/addons/mod/choice/components/index/addon-mod-choice-index.html b/src/addons/mod/choice/components/index/addon-mod-choice-index.html index 80374ed11..fd8aa8e1d 100644 --- a/src/addons/mod/choice/components/index/addon-mod-choice-index.html +++ b/src/addons/mod/choice/components/index/addon-mod-choice-index.html @@ -12,32 +12,17 @@ [courseId]="courseId" [hasDataToSync]="hasOffline" (completionChanged)="onCompletionChange()" /> - + - - - - - - + - + - + - + + + + + +

{{ 'addon.mod_choice.yourselection' | translate }}

+
+
+ + + + + + + +
+ -
+

{{ 'addon.mod_choice.responses' | translate }}

@@ -115,9 +116,9 @@ -
+ - +