forked from EVOgeek/Vmeda.Online
		
	Merge pull request #2505 from crazyserver/MOBILE-3472
MOBILE-3472 course: Indicate restriction access when all sections shown
This commit is contained in:
		
						commit
						fc1ad0783f
					
				| @ -77,6 +77,10 @@ | |||||||
|             <core-format-text [text]="section.name" contextLevel="course" [contextInstanceId]="course.id"></core-format-text> |             <core-format-text [text]="section.name" contextLevel="course" [contextInstanceId]="course.id"></core-format-text> | ||||||
|             <!-- Section download. --> |             <!-- Section download. --> | ||||||
|             <ng-container *ngTemplateOutlet="sectionDownloadTemplate; context: {section: section}"></ng-container> |             <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-divider> | ||||||
| 
 | 
 | ||||||
|         <ion-item text-wrap *ngIf="section.summary"> |         <ion-item text-wrap *ngIf="section.summary"> | ||||||
|  | |||||||
| @ -55,6 +55,11 @@ ion-app.app-root core-course-format { | |||||||
|             line-height: 44px; |             line-height: 44px; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         ion-badge core-format-text { | ||||||
|  |             line-height: normal; | ||||||
|  |             margin-bottom: 9px; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         &.core-section-download .label{ |         &.core-section-download .label{ | ||||||
|             @include margin(null, 0, null, null); |             @include margin(null, 0, null, null); | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user