You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aggregation-platform/plugins/kubernetes/html/pod.html

89 lines
3.0 KiB

<div ng-controller="Kubernetes.PodController">
<div class="row">
<div hawtio-breadcrumbs></div>
</div>
<div class="row">
<div hawtio-tabs></div>
</div>
<div class="row row-header">
<div class="col-md-12">
<span ng-show="model.fetched && !rawMode" class="icon-heading">
<i ng-show="item.$statusCss" class="icon-selected-app fa {{item.$statusCss}}"></i>
<img ng-show="item.$iconUrl" class="icon-selected-app" ng-src="{{item.$iconUrl}}">&nbsp;{{item.metadata.name}}
</span>
<button class="btn btn-danger pull-right"
title="Delete this Pod"
ng-click="deleteEntity()">
<i class="fa fa-remove"></i> Delete
</button>
<span class="pull-right">&nbsp;</span>
<a class="btn btn-default pull-right"
href="{{baseUri}}/kubernetes/pods?namespace={{item.metadata.namespace}}"><i class="fa fa-list"></i></a>
<span ng-show="hasServiceKibana()" class="pull-right">&nbsp;</span>
<button ng-show="hasServiceKibana()"
class="btn btn-default pull-right"
title="View the logs for this pod"
ng-click="openLogs()">
<i class="fa fa-file-text-o"></i> Logs
</button>
<a class="btn btn-default pull-right"
ng-click="flipRaw()"
title="{{rawMode ? 'Raw mode' : 'Form mode'}}">{{rawMode ? 'Form' : 'Raw'}}</a>
<span class="pull-right">&nbsp;</span>
<a class="btn btn-default pull-right" ng-show="rawMode" ng-click="readOnly = !readOnly" ng-class="!readOnly ? 'btn-primary' : ''">Edit</a>
<span class="pull-right">&nbsp;</span>
<a class="btn btn-success pull-right" ng-show="dirty" ng-click="save(rawModel)">Save</a>
<span class="pull-right">&nbsp;</span>
<a class="btn btn-primary pull-right"
href="/kubernetes/namespace/{{item.metadata.namespace}}/events?q=kind%3DPod%20name%3D{{item.metadata.name}}"
title="View the events for this Pod">
<i class="fa fa-ellipsis-v"></i> Events
</a>
<span class="pull-right">&nbsp;</span>
<div ng-show="item.$jolokiaUrl && item.$ready" ng-controller="Kubernetes.ConnectController" class="pull-right">
<span>&nbsp;</span>
<a class="btn btn-default pull-right"
ng-click="doConnect(item)"
title="Open a new window and connect to this container">
<i class="fa fa-sign-in"></i> Connect
</a>
</div>
</div>
</div>
<div ng-hide="model.fetched">
<div class="row">
<div class="col-md-12">
<div class="align-center">
<i class="fa fa-spinner fa-spin"></i>
</div>
</div>
</div>
</div>
<div ng-show="model.fetched && !rawMode">
<div class="row">
<div class="col-md-12">
<div hawtio-object="item" config="itemConfig"></div>
</div>
</div>
</div>
<div ng-show="model.fetched && rawMode">
<div class="raw-json-view">
<div hawtio-editor="rawModel" mode="mode" read-only="readOnly"></div>
</div>
</div>
</div>