body.component.html 2.25 KB
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1
2
3
4
5
6
7
8
9
10
11
12
<div class="body">
	<div *ngIf="userService.loggedIn()" class="mat-typography">
		<div style="padding-bottom: 30px;">
			<h2>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>
Lukas Burgey's avatar
Lukas Burgey committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
		<div *ngIf="userService.user" style="padding-bottom: 30px;">
			<h2>Your Virtual Organisations</h2>
			<mat-accordion *ngIf="userService.user.groups.length > 0">
				<mat-expansion-panel *ngFor="let group of userService.getGroups()">
					<mat-expansion-panel-header>
						<mat-panel-title>{{ group.name }}</mat-panel-title>
					</mat-expansion-panel-header>
					<div *ngIf="userService.getServices(group).length > 0; then serviceList else noServiceList"></div>
					<ng-template #serviceList>
						<p>
						You have access to these services, because you are a member of the VO  "{{ group.name }}":
						</p>
						<mat-accordion>
							<app-service *ngFor="let service of userService.getServices(group)" [service]="service"></app-service>
						</mat-accordion>
					</ng-template>
					<ng-template #noServiceList>
						<p>
						No services need membership of the VO "{{ group.name }}".
						</p>
					</ng-template>
					<!--
					<mat-action-row>
						<div *ngIf="userService.user.ssh_keys.length > 0; then boxes else upload"></div>
						<ng-template #boxes>
							<span style="margin-right: 15px;">
								Please select SSH Keys to deploy:
							</span>
							<mat-checkbox *ngFor="let key of userService.user.ssh_keys" style="margin-right: 8px" [checked]="isDeployed(key)" (change)="deploymentChange(key)">
								{{ key.name }}
							</mat-checkbox>
						</ng-template>
						<ng-template #upload>
							<span style="margin-right: 15px;">
								Please upload an SSH Key to use this service:
							</span>
							<button mat-icon-button (click)="dialog.openSshKeys()"><mat-icon>vpn_key</mat-icon></button>
						</ng-template>
					</mat-action-row>
						-->
				</mat-expansion-panel>
Lukas Burgey's avatar
Lukas Burgey committed
54
55
			</mat-accordion>
		</div>
Lukas Burgey's avatar
wip    
Lukas Burgey committed
56
	</div>
Lukas Burgey's avatar
Lukas Burgey committed
57
</div>