service.component.html 1.13 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
<mat-expansion-panel>
	<mat-expansion-panel-header>
		<mat-panel-title>{{ serviceData.name }}</mat-panel-title>
		<mat-panel-description>{{ serviceData.description }}</mat-panel-description>
	</mat-expansion-panel-header>
	<p>
	<mat-icon style="vertical-align: middle; padding-right: 35px;">storage</mat-icon>
	Provided by: {{ serviceData.site.name }}
	</p>

	<span>
	<mat-icon style="vertical-align: middle; padding-right: 35px;">lock outline</mat-icon>
	</span>
	Needs membership of one of the following groups:
	<ul>
		<li *ngFor="let group of serviceData.groups">
			{{ group.name }}
		</li>
	</ul>

	<mat-action-row>
22 23 24 25 26 27 28 29 30 31 32 33 34 35
		<div *ngIf="userService.user.ssh_keys.length > 0">
			<span style="margin-right: 15px">
				Deployed keys:
			</span><br/>
			<mat-checkbox *ngFor="let key of userService.user.ssh_keys"
				 style="margin-right: 8px"
				 [checked]="isDeployed(key)"
				 (change)="deploymentChange(key)">
				{{ key.name }}
			</mat-checkbox>
		</div>
		<div *ngIf="userService.user.ssh_keys.length === 0">
			<button mat-icon-button (click)="dialog.openSshKeys()"><mat-icon>vpn_key</mat-icon></button>
		</div>
Lukas Burgey's avatar
Lukas Burgey committed
36 37
	</mat-action-row>
</mat-expansion-panel>