-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kelly Domico
committed
Mar 24, 2016
1 parent
bed16b4
commit d001825
Showing
4 changed files
with
112 additions
and
11 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
src/plugins/cloud-foundry/view/applications/application/application.scss
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 +1,2 @@ | ||
@import "services/services"; | ||
@import "summary/summary"; |
44 changes: 36 additions & 8 deletions
44
src/plugins/cloud-foundry/view/applications/application/services/services.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,8 +1,36 @@ | ||
<h1 ui-view="title">Application Services for {{ applicationServicesCtrl.appModel.application.summary.name }}</h1> | ||
|
||
<ul ng-repeat="service in applicationServicesCtrl.model.data.resources track by service.metadata.guid"> | ||
<li><strong>{{service.entity.label}} (v{{service.entity.version}}):</strong> {{service.entity.description}}</li> | ||
|
||
</ul> | ||
|
||
|
||
<div class="panel panel-default" | ||
ng-repeat="service in applicationServicesCtrl.model.data.resources track by service.metadata.guid"> | ||
<div class="panel-body service-panel"> | ||
<div class="col-md-6 service-text"> | ||
<i class="helion-icon helion-icon-4x helion-icon-Service_business service-icon"></i> | ||
<div> | ||
<h4 class="font-semi-bold">{{ ::service.entity.label }}</h4> | ||
<p> | ||
{{ ::service.entity.description }}. Lorem ipsum dolor sit amet, consectetur | ||
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna | ||
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris | ||
nisi ut aliquip ex ea commodo consequat. | ||
</p> | ||
</div> | ||
</div> | ||
<div class="col-md-6 service-metadata"> | ||
<dl> | ||
<dt>Version</dt> | ||
<dd>{{ ::service.entity.version }}</dd> | ||
<dt>Category</dt> | ||
<dd>Data and Analytics / Graph</dd> | ||
<dt class="service-attached">1 Attached</dt> | ||
</dl> | ||
<div class="service-actions"> | ||
<actions-menu actions="applicationServicesCtrl.serviceActions" | ||
action-target="service" menu-icon="helion-icon helion-icon-More" | ||
menu-position="actions-menu-right"> | ||
</actions-menu> | ||
<button class="btn btn-sm btn-link"> | ||
Add Service | ||
<i class="helion-icon helion-icon-Plus"></i> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</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
55 changes: 55 additions & 0 deletions
55
src/plugins/cloud-foundry/view/applications/application/services/services.scss
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,55 @@ | ||
.service-panel { | ||
display: flex; | ||
align-items: stretch; | ||
} | ||
|
||
.service-text { | ||
display: flex; | ||
} | ||
|
||
.service-icon { | ||
display: block; | ||
padding: $hpe-unit-space * 1.5; | ||
padding-left: 0; | ||
} | ||
|
||
.service-metadata { | ||
display: flex; | ||
padding-left: $hpe-unit-space; | ||
|
||
dt { | ||
text-transform: uppercase; | ||
|
||
&:not(:first-of-type) { | ||
margin-top: $hpe-unit-space / 2; | ||
} | ||
} | ||
|
||
.service-actions { | ||
display: flex; | ||
flex-direction: column; | ||
margin-left: auto; | ||
text-align: right; | ||
|
||
.btn-link { | ||
margin-top: auto; | ||
padding-right: 0; | ||
|
||
&:hover, | ||
&:focus, | ||
&:active { | ||
text-decoration: none; | ||
} | ||
|
||
.helion-icon { | ||
font-weight: $hpe-font-weight-semibold; | ||
} | ||
} | ||
} | ||
|
||
.service-attached:before { | ||
font-family: 'helion-icons'; | ||
content: '\e916'; | ||
margin-right: 5px; | ||
} | ||
} |