-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3460 from cloudfoundry-incubator/organization-spa…
…ces-dates organization/space: added created and updated dates to summary
- Loading branch information
Showing
6 changed files
with
106 additions
and
47 deletions.
There are no files selected for viewing
57 changes: 35 additions & 22 deletions
57
.../shared/components/cards/card-cf-org-user-details/card-cf-org-user-details.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
<app-meta-card class="cf-org-usage"> | ||
<app-meta-card-title>Summary</app-meta-card-title> | ||
<app-meta-card-item> | ||
<app-meta-card-key>User Org Role</app-meta-card-key> | ||
<app-meta-card-value>{{ (cfOrgService.userOrgRole$ | async) }}</app-meta-card-value> | ||
</app-meta-card-item> | ||
<app-meta-card-item> | ||
<app-meta-card-key>Quota Definition Name</app-meta-card-key> | ||
<app-meta-card-value>{{ (cfOrgService.quotaDefinition$ | async)?.name }} | ||
</app-meta-card-value> | ||
</app-meta-card-item> | ||
<app-meta-card-item> | ||
<app-meta-card-key>Provision Paid Services</app-meta-card-key> | ||
<app-meta-card-value> | ||
<app-boolean-indicator [isTrue]="(cfOrgService.quotaDefinition$ | async)?.non_basic_services_allowed" type="yes-no"></app-boolean-indicator> | ||
</app-meta-card-value> | ||
</app-meta-card-item> | ||
<app-meta-card-item> | ||
<app-meta-card-key>Org Status</app-meta-card-key> | ||
<app-meta-card-value>{{ ((cfOrgService.org$ | async)?.entity?.entity?.status) | capitalizeFirst}}</app-meta-card-value> | ||
</app-meta-card-item> | ||
</app-meta-card> | ||
<div class="cf-org-usage"> | ||
<mat-card> | ||
<mat-card-header> | ||
<mat-card-title>Summary</mat-card-title> | ||
</mat-card-header> | ||
<mat-card-content> | ||
<div class="app-metadata"> | ||
<div class="app-metadata__two-cols"> | ||
<app-metadata-item label="User Org Role"> | ||
{{ (cfOrgService.userOrgRole$ | async) }} | ||
</app-metadata-item> | ||
<app-metadata-item label="Quota Definition Name"> | ||
{{ (cfOrgService.quotaDefinition$ | async)?.name }} | ||
</app-metadata-item> | ||
<app-metadata-item label="Provision Paid Services"> | ||
<app-boolean-indicator [isTrue]="(cfOrgService.quotaDefinition$ | async)?.non_basic_services_allowed" type="yes-no"> | ||
</app-boolean-indicator> | ||
</app-metadata-item> | ||
</div> | ||
|
||
<div class="app-metadata__two-cols"> | ||
<app-metadata-item label="Org Status"> | ||
{{ ((cfOrgService.org$ | async)?.entity?.entity?.status) | capitalizeFirst}} | ||
</app-metadata-item> | ||
<app-metadata-item label="Created At"> | ||
{{ ((cfOrgService.org$ | async)?.entity?.metadata?.created_at) | date:'medium' }} | ||
</app-metadata-item> | ||
<app-metadata-item label="Updated At"> | ||
{{ ((cfOrgService.org$ | async)?.entity?.metadata?.updated_at) | date:'medium' }} | ||
</app-metadata-item> | ||
</div> | ||
</div> | ||
</mat-card-content> | ||
</mat-card> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.app-metadata { | ||
display: flex; | ||
flex-direction: row; | ||
|
||
&__two-cols { | ||
flex: 1; | ||
|
||
app-metadata-item:first-child { | ||
margin-top: 0; | ||
} | ||
} | ||
} | ||
|
||
.mat-card-title { | ||
font-weight: 500; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 34 additions & 21 deletions
55
...re/src/shared/components/cards/card-cf-space-details/card-cf-space-details.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,34 @@ | ||
<app-meta-card class="cf-space-usage"> | ||
<app-meta-card-title>Summary</app-meta-card-title> | ||
<app-meta-card-item> | ||
<app-meta-card-key>User Space Role/s</app-meta-card-key> | ||
<app-meta-card-value>{{ cfSpaceService.userRole$ | async }}</app-meta-card-value> | ||
</app-meta-card-item> | ||
<app-meta-card-item> | ||
<app-meta-card-key>Quota Definition Name</app-meta-card-key> | ||
<app-meta-card-value>{{ (cfSpaceService.quotaDefinition$ | async)?.entity.name }}</app-meta-card-value> | ||
</app-meta-card-item> | ||
<app-meta-card-item> | ||
<app-meta-card-key>Provision Paid Services</app-meta-card-key> | ||
<app-meta-card-value> | ||
<app-boolean-indicator [isTrue]="(cfSpaceService.quotaDefinition$ | async)?.non_basic_services_allowed" type="yes-no"></app-boolean-indicator> | ||
</app-meta-card-value> | ||
</app-meta-card-item> | ||
<app-meta-card-item> | ||
<app-meta-card-key>SSH Access</app-meta-card-key> | ||
<app-meta-card-value>{{ allowSshStatus$ | async }}</app-meta-card-value> | ||
</app-meta-card-item> | ||
</app-meta-card> | ||
<div class="cf-space-usage"> | ||
<mat-card> | ||
<mat-card-header> | ||
<mat-card-title>Summary</mat-card-title> | ||
</mat-card-header> | ||
<mat-card-content> | ||
<div class="app-metadata"> | ||
<div class="app-metadata__two-cols"> | ||
<app-metadata-item label="User Space Role/s"> | ||
{{ (cfSpaceService.userRole$ | async) }} | ||
</app-metadata-item> | ||
<app-metadata-item label="Quota Definition Name"> | ||
{{ (cfSpaceService.quotaDefinition$ | async)?.entity.name }} | ||
</app-metadata-item> | ||
<app-metadata-item label="Provision Paid Services"> | ||
<app-boolean-indicator [isTrue]="(cfSpaceService.quotaDefinition$ | async)?.non_basic_services_allowed" type="yes-no"> | ||
</app-boolean-indicator> | ||
</app-metadata-item> | ||
</div> | ||
<div class="app-metadata__two-cols"> | ||
<app-metadata-item label="SSH Access"> | ||
{{ allowSshStatus$ | async }} | ||
</app-metadata-item> | ||
<app-metadata-item label="Created At"> | ||
{{ ((cfSpaceService.space$ | async)?.entity?.metadata?.created_at) | date: 'medium' }} | ||
</app-metadata-item> | ||
<app-metadata-item label="Updated At"> | ||
{{ ((cfSpaceService.space$ | async)?.entity?.metadata?.updated_at) | date: 'medium' }} | ||
</app-metadata-item> | ||
</div> | ||
</div> | ||
</mat-card-content> | ||
</mat-card> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.app-metadata { | ||
display: flex; | ||
flex-direction: row; | ||
|
||
&__two-cols { | ||
flex: 1; | ||
|
||
app-metadata-item:first-child { | ||
margin-top: 0; | ||
} | ||
} | ||
} | ||
|
||
.mat-card-title { | ||
font-weight: 500; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters