Skip to content

Commit

Permalink
feat(entitytags): Show replaced server group details in popover
Browse files Browse the repository at this point in the history
As of spinnaker/orca#1705, `orca` is now adding previous server group
details to the `spinnaker:metadata` tag.

These details include:
- previous server group name
- image name
- image id
  • Loading branch information
ajordens committed Oct 18, 2017
1 parent 7eaf755 commit b128eff
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions app/scripts/modules/core/src/entityTag/entitySource.popover.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
<dl>
<dt>{{$ctrl.executionType}}</dt>
<dd>{{$ctrl.metadata.value.description}}</dd>
<div ng-if="$ctrl.execution">
<div ng-if="$ctrl.execution" style="margin-top: 10px">
<dt>Triggered by</dt>
<dd ng-if="$ctrl.metadata.value.user">{{$ctrl.metadata.value.user}}</dd>
<dd ng-if="!$ctrl.metadata.value.user">{{$ctrl.execution.trigger.type}}</dd>
</div>
<div ng-if="!$ctrl.execution && $ctrl.metadata.value.user">

<div ng-if="!$ctrl.execution && $ctrl.metadata.value.user" style="margin-top: 10px">
<dt>User</dt>
<dd>{{$ctrl.metadata.value.user}}</dd>
</div>
<div ng-if="$ctrl.metadata.value.comments">

<div ng-if="$ctrl.metadata.value.previousServerGroup" style="margin-top: 10px">
<dt>Replaced</dt>
<dd>
{{$ctrl.metadata.value.previousServerGroup.name}}<br/>
{{$ctrl.metadata.value.previousServerGroup.imageName}} ({{$ctrl.metadata.value.previousServerGroup.imageId}})
</dd>
</div>

<div ng-if="$ctrl.metadata.value.comments" style="margin-top: 10px">
<dt>Comments</dt>
<dd ng-bind-html="$ctrl.comments"></dd>
</div>
Expand Down

0 comments on commit b128eff

Please sign in to comment.