body.component.html 1.09 KB
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<div class="body" class="mat-typography" class="body">
	<mat-tab-group *ngIf="userService.loggedIn()">
		<mat-tab label="Your VOs">
			<div class="mat-typography" class="body">
				<h2>Your Virtual Organisations</h2>
				<mat-accordion *ngIf="userService.user.groups.length > 0">
					<app-vo *ngFor="let group of userService.getGroups()" [group]="group" [deployment]="userService.getDeploymentByGroup(group)"></app-vo>
				</mat-accordion>
				<p *ngIf="userService.user.groups.length == 0">
				You are not a member in any group.
				</p>
			</div>
		</mat-tab>
		<mat-tab label="Services">
			<div class="mat-typography" class="body">
				<h2>Available Services</h2>
				<mat-accordion *ngIf="userService.services.length > 0">
					<app-service *ngFor="let service of userService.services" [deployment]="userService.getDeployment(service)" [service]="service"></app-service>
				</mat-accordion>
				<p *ngIf="userService.services.length === 0">
				You have no available services.<br/>
				This is due services requiring users to be member of a certain group.
				</p>
			</div>
		</mat-tab>
	</mat-tab-group>
Lukas Burgey's avatar
Lukas Burgey committed
27
</div>