Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalWebpage
Commits
629c9617
Commit
629c9617
authored
Dec 15, 2017
by
Lukas Burgey
Browse files
Adapt service component to relation change
parent
7c8e3369
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/app.module.ts
View file @
629c9617
...
...
@@ -18,6 +18,7 @@ import {MatFormFieldModule} from '@angular/material/form-field';
import
{
MatSelectModule
}
from
'
@angular/material/select
'
;
import
{
MatInputModule
}
from
'
@angular/material/input
'
;
import
{
MatCheckboxModule
}
from
'
@angular/material/checkbox
'
;
import
{
MatTooltipModule
}
from
'
@angular/material/tooltip
'
;
import
{
CookieService
}
from
'
ngx-cookie-service
'
;
...
...
@@ -81,6 +82,7 @@ const routes = [
MatSelectModule
,
MatInputModule
,
MatCheckboxModule
,
MatTooltipModule
,
],
providers
:
[
CookieService
,
...
...
src/app/service/service.component.html
View file @
629c9617
...
...
@@ -3,24 +3,26 @@
<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"
>
<div
style=
"padding-bottom: 10px;"
>
<span
style=
"padding-right: 35px;"
*ngFor=
"let site of serviceData.site"
matTooltip=
"Provided at site {{ site.name }}"
>
<mat-icon
style=
"vertical-align: middle; padding-right: 5px;"
>
storage
</mat-icon>
{{ site.name }}
</span>
</div>
<div>
<span
style=
"padding-right: 35px;"
*ngFor=
"let group of serviceData.groups"
matTooltip=
"Can be used with membership of group {{ group.name }}"
>
<mat-icon
style=
"vertical-align: middle; padding-right: 5px;"
>
lock outline
</mat-icon>
{{ group.name }}
</
li
>
</
ul
>
</
span
>
</
div
>
<mat-action-row>
<div
*ngIf=
"userService.user.ssh_keys.length > 0"
>
<span
style=
"margin-right: 15px"
>
<span
style=
"margin-right: 15px
;
"
>
Deployed keys:
</span><br/>
<mat-checkbox
*ngFor=
"let key of userService.user.ssh_keys"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment