MOBILE-3472 course: Indicate restriction access when all sections shown

main
Pau Ferrer Ocaña 2020-08-19 12:08:54 +02:00
parent 77968233d7
commit f16c7cb2c7
2 changed files with 9 additions and 0 deletions

View File

@ -77,6 +77,10 @@
<core-format-text [text]="section.name" contextLevel="course" [contextInstanceId]="course.id"></core-format-text>
<!-- Section download. -->
<ng-container *ngTemplateOutlet="sectionDownloadTemplate; context: {section: section}"></ng-container>
<p *ngIf="(section.visible === 0 && section.uservisible !== false) || section.availabilityinfo">
<ion-badge color="secondary" *ngIf="section.visible === 0 && section.uservisible !== false" text-wrap>{{ 'core.course.hiddenfromstudents' | translate }}</ion-badge>
<ion-badge color="secondary" *ngIf="section.availabilityinfo" text-wrap><core-format-text [text]=" section.availabilityinfo" contextLevel="course" [contextInstanceId]="courseId"></core-format-text></ion-badge>
</p>
</ion-item-divider>
<ion-item text-wrap *ngIf="section.summary">

View File

@ -55,6 +55,11 @@ ion-app.app-root core-course-format {
line-height: 44px;
}
ion-badge core-format-text {
line-height: normal;
margin-bottom: 9px;
}
&.core-section-download .label{
@include margin(null, 0, null, null);
}