Merge pull request #1916 from crazyserver/MOBILE-3034

Mobile 3034
main
Juan Leyva 2019-05-16 17:59:03 +02:00 committed by GitHub
commit 0de4da6336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 23 additions and 9 deletions

View File

@ -1654,6 +1654,7 @@
"core.resourcedisplayopen": "moodle",
"core.resources": "moodle",
"core.restore": "moodle",
"core.restricted": "moodle",
"core.retry": "local_moodlemobileapp",
"core.save": "moodle",
"core.search": "moodle",

View File

@ -31,12 +31,7 @@
<ion-icon name="information-circle"></ion-icon> {{ availabilityMessage }}
</ion-card>
<core-empty-box *ngIf="forum && discussions.length == 0" icon="chatbubbles" [message]="'addon.mod_forum.forumnodiscussionsyet' | translate" class="core-empty-box-clickable">
<div padding *ngIf="forum.cancreatediscussions">
<button ion-button block (click)="openNewDiscussion()">
{{ 'addon.mod_forum.addanewdiscussion' | translate }}
</button>
</div>
<core-empty-box *ngIf="forum && discussions.length == 0" icon="chatbubbles" [message]="'addon.mod_forum.forumnodiscussionsyet' | translate">
</core-empty-box>
<div text-wrap *ngIf="sortingAvailable && selectedSortOrder" ion-row padding-horizontal padding-top margin-bottom>

View File

@ -1654,6 +1654,7 @@
"core.resourcedisplayopen": "Open",
"core.resources": "Resources",
"core.restore": "Restore",
"core.restricted": "Restricted",
"core.retry": "Retry",
"core.save": "Save",
"core.search": "Search",

View File

@ -19,13 +19,16 @@
</div>
</div>
</div>
<div>
<div class="core-module-more-info">
<ion-badge item-end *ngIf="module.handlerData.extraBadge" [color]="module.handlerData.extraBadgeColor" text-wrap text-start>
<core-format-text [text]="module.handlerData.extraBadge"></core-format-text>
</ion-badge>
<ion-badge item-end *ngIf="module.visible === 0 && (!section || section.visible)" text-wrap>{{ 'core.course.hiddenfromstudents' | translate }}</ion-badge>
<ion-badge item-end *ngIf="module.visible !== 0 && module.isStealth" text-wrap>{{ 'core.course.hiddenoncoursepage' | translate }}</ion-badge>
<ion-badge item-end *ngIf="module.availabilityinfo" text-wrap><core-format-text [text]="module.availabilityinfo"></core-format-text></ion-badge>
<div class="core-module-availabilityinfo" *ngIf="module.availabilityinfo" item-end>
<ion-badge text-wrap>{{ 'core.restricted' | translate }}</ion-badge>
<core-format-text [text]="module.availabilityinfo" text-wrap></core-format-text>
</div>
<ion-badge item-end *ngIf="module.completiondata && module.completiondata.offline" color="warning" text-wrap>{{ 'core.course.manualcompletionnotsynced' | translate }}</ion-badge>
</div>
<core-format-text class="core-module-description" *ngIf="module.description" maxHeight="80" [text]="module.description"></core-format-text>

View File

@ -51,6 +51,19 @@ ion-app.app-root core-course-module {
}
}
.core-module-more-info {
ion-badge {
@include text-align('start');
}
.core-module-availabilityinfo {
font-size: 90%;
ul {
margin-block-start: 0.5em;
}
}
}
.core-not-clickable:active,
.core-not-clickable.activated {
background-color: $list-background-color;

View File

@ -10,6 +10,6 @@ ion-app.app-root page-core-course-section-selector {
}
ion-badge {
text-align: left;
@include text-align('start');
}
}

View File

@ -202,6 +202,7 @@
"resourcedisplayopen": "Open",
"resources": "Resources",
"restore": "Restore",
"restricted": "Restricted",
"retry": "Retry",
"save": "Save",
"search": "Search",