2017-11-06 08:47:31 +00:00
|
|
|
<rd-header>
|
2018-06-06 16:12:35 +00:00
|
|
|
<rd-header-title title-text="Config details">
|
2018-02-01 12:27:52 +00:00
|
|
|
<a data-toggle="tooltip" title="Refresh" ui-sref="docker.configs.config({id: config.Id})" ui-sref-opts="{reload: true}">
|
2018-03-13 05:36:53 +00:00
|
|
|
<i class="fa fa-sync" aria-hidden="true"></i>
|
2017-11-06 08:47:31 +00:00
|
|
|
</a>
|
|
|
|
</rd-header-title>
|
|
|
|
<rd-header-content>
|
2018-02-01 12:27:52 +00:00
|
|
|
<a ui-sref="docker.configs">Configs</a> > <a ui-sref="docker.configs.config({id: config.Id})">{{ config.Name }}</a>
|
2017-11-06 08:47:31 +00:00
|
|
|
</rd-header-content>
|
|
|
|
</rd-header>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-xs-12">
|
|
|
|
<rd-widget>
|
2018-06-06 16:12:35 +00:00
|
|
|
<rd-widget-header icon="fa-file-code" title-text="Config details"></rd-widget-header>
|
2017-11-06 08:47:31 +00:00
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>Name</td>
|
|
|
|
<td>{{ config.Name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>ID</td>
|
|
|
|
<td>
|
|
|
|
{{ config.Id }}
|
2019-05-24 06:04:58 +00:00
|
|
|
<button authorization="DockerConfigDelete" class="btn btn-xs btn-danger" ng-click="removeConfig(config.Id)"><i class="fa fa-trash-alt space-right" aria-hidden="true"></i>Delete this config</button>
|
|
|
|
<button authorization="DockerConfigCreate"class="btn btn-xs btn-primary" ui-sref="docker.configs.new({id: config.Id})"><i class="fa fa-copy space-right" aria-hidden="true"></i>Clone config</button>
|
2017-11-06 08:47:31 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Created</td>
|
|
|
|
<td>{{ config.CreatedAt | getisodate }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Last updated</td>
|
|
|
|
<td>{{ config.UpdatedAt | getisodate }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-if="!(config.Labels | emptyobject)">
|
|
|
|
<td>Labels</td>
|
|
|
|
<td>
|
|
|
|
<table class="table table-bordered table-condensed">
|
|
|
|
<tr ng-repeat="(k, v) in config.Labels">
|
|
|
|
<td>{{ k }}</td>
|
|
|
|
<td>{{ v }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- access-control-panel -->
|
|
|
|
<por-access-control-panel
|
|
|
|
ng-if="config && applicationState.application.authentication"
|
|
|
|
resource-id="config.Id"
|
|
|
|
resource-control="config.ResourceControl"
|
|
|
|
resource-type="'config'">
|
|
|
|
</por-access-control-panel>
|
|
|
|
<!-- !access-control-panel -->
|
|
|
|
|
|
|
|
<div class="row" ng-if="config">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<rd-widget>
|
2018-06-06 16:12:35 +00:00
|
|
|
<rd-widget-header icon="fa-file-code" title-text="Config content"></rd-widget-header>
|
2017-11-06 08:47:31 +00:00
|
|
|
<rd-widget-body>
|
|
|
|
<form class="form-horizontal">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
2018-02-27 07:19:21 +00:00
|
|
|
<code-editor
|
|
|
|
identifier="config-editor"
|
|
|
|
yml="false"
|
|
|
|
read-only="true"
|
|
|
|
value="config.Data"
|
|
|
|
></code-editor>
|
2017-11-06 08:47:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
|
|
|
</div>
|