Commit a09b8dc3 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Merge branch 'service-contact' into dev

parents e42d92aa 37bdbc2c
...@@ -2,3 +2,19 @@ ...@@ -2,3 +2,19 @@
.my-tooltip { .my-tooltip {
white-space: pre-line; white-space: pre-line;
} }
h4 {
margin-bottom: 5px;
}
td {
max-width: 300px;
vertical-align: top;
}
.mat-icon {
font-size: 15px;
height: 15px;
width: 15px;
vertical-align: initial;
}
<td> <td>
<span matTooltip="{{ service.site.description}}" matTooltipClass="my-tooltip"> <h4>{{ service.site.name }}</h4>
{{ service.site.name }} <br>
<mat-icon>help</mat-icon> <small>{{ service.site.description }}</small>
</span>
</td> </td>
<td> <td>
<span matTooltip="{{ service.description }}"> <h4>{{ service.name }}</h4>
{{ service.name }} <br>
<mat-icon>help</mat-icon> <small>{{ service.description }}</small>
</span>
</td> </td>
<ng-container *ngIf="(state$ | async) as state; else noStateItem"> <ng-container *ngIf="(state$ | async) as state; else noStateItem">
...@@ -24,7 +22,9 @@ ...@@ -24,7 +22,9 @@
<mat-icon *ngSwitchCase="'rejected'" mat-icon-button>error</mat-icon> <mat-icon *ngSwitchCase="'rejected'" mat-icon-button>error</mat-icon>
<mat-icon *ngSwitchDefault mat-icon-button>call_received</mat-icon> <mat-icon *ngSwitchDefault mat-icon-button>call_received</mat-icon>
</span> </span>
{{ lang.printState(state.state) }} <h4>{{ lang.printState(state.state) }}</h4>
<br>
<div class="mat-small">tooltip(state)</div>
</td> </td>
<!-- state dependent buttons --> <!-- state dependent buttons -->
...@@ -65,8 +65,10 @@ ...@@ -65,8 +65,10 @@
<ng-template #noStateItem> <ng-template #noStateItem>
<td> <td>
<span> <span>
<mat-icon mat-icon-button matTooltip="Access to this service was never requested.">call_received</mat-icon> <mat-icon mat-icon-button>call_received</mat-icon>
</span> </span>
{{ lang.printState('not_deployed') }} <h4>{{ lang.printState('not_deployed') }}</h4>
<br>
<small>Access to this service was never requested.</small>
</td> </td>
</ng-template> </ng-template>
...@@ -57,6 +57,8 @@ export interface Service { ...@@ -57,6 +57,8 @@ export interface Service {
site: Site; site: Site;
description: string; description: string;
vos: VO[]; vos: VO[];
contact_email: string;
contact_description: string;
} }
export interface JSONObject { export interface JSONObject {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment