Skip to content

Commit

Permalink
#609 Add a flow renderer for action related events
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jul 26, 2018
1 parent f4ff150 commit 5c6b978
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ui/app/views/directives/flow/action.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div class="flow-observable-job">
<div class="flow-item-title wrap">
<i class="glyphicon glyphicon-cog"></i>
<span ng-if="base.operation === 'Creation'">
Action: <em>{{base.object.responderName}}</em> started
</span>
<span ng-if="base.operation === 'Update'">
Action <em>{{base.object.responderName}}</em> terminated
</span>
</div>
<div class="flow-item-updates wrap">
<div>status: <em>{{base.object.status}}</em></div>
<div>startDate: <em>{{base.object.startDate | showDate}}</em></div>
<div ng-if="base.object.endDate">endDate: <em>{{base.object.endDate | showDate}}</em></div>
</div>
</div>
1 change: 1 addition & 0 deletions ui/app/views/directives/flow/flow.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
<flow-item target="targetWindow" type="observable" data="value" ng-switch-when="case_artifact"></flow-item>
<flow-item target="targetWindow" type="observable-job" data="value" ng-switch-when="case_artifact_job"></flow-item>
<flow-item target="targetWindow" type="alert" data="value" ng-switch-when="alert"></flow-item>
<flow-item target="targetWindow" type="action" data="value" ng-switch-when="action"></flow-item>
</div>
</div>

0 comments on commit 5c6b978

Please sign in to comment.