<div ng-if="containers.platform === 'docker'">
	<div class="grid">
		<alert type="warning" ng-if="containers.oldDocker">
			<h4>Docker Deployment has been Upgraded</h4>
			<p>
				SOAJS Deployment has been upgraded to use the new <b>Docker Token</b> strategy instead of relying on certificates.<br />
				Your current deployment will remain functional, however it is strongly advised that you update to the latest strategy.
			</p>
			<a href="https://soajsorg.atlassian.net/wiki/spaces/IN/overview" target='_blank' class="f-right btn btn-warning">Download SOAJS Installer</a>
			<p>
				Download the Miracle installer and run the <b>docker-api</b> script as instructed on the first page of the installer wizard.<br />
				The script will generate the <b>Docker Token</b> for you, copy it, then click on configure icon <span class="icon icon-cog"></span> and add the token there.<br />
			</p>
		</alert>
		<table width="100%" cellspacing="10">
			<tr class="odd first">
				<td width="50%">
					<b>Master Node IP</b>
				</td>
				<td>{{containers.config.nodes}}</td>
			</tr>
			<tr class="even">
				<td width="50%">
					<b>Docker Port</b>
				</td>
				<td>{{containers.config.apiPort}}</td>
			</tr>
			<tr class="odd first" ng-if="!containers.oldDocker">
				<td width="50%">
					<b>Protocol</b>
				</td>
				<td>{{containers.config.apiProtocol}}</td>
			</tr>
			<tr class="odd" ng-if="!containers.oldDocker">
				<td colspan="2"><b>Token</b></td>
			</tr>
			<tr class="even last" ng-if="!containers.oldDocker">
				<td colspan="2">{{containers.config.auth.token}}</td>
			</tr>
			<tr class="odd" ng-if="containers.oldDocker">
				<td colspan="2"><b>Certificates</b></td>
			</tr>
			<tr class="even last" ng-if="containers.oldDocker">
				<td colspan="2">
					<div class="staticDiv">
						<div ng-style="{'padding-top': '10px'}" ng-if="containers.config.certs.length > 0">
							<div class="entryBox blueBox greyBoxCustom" ng-repeat="cert in containers.config.certs" style="width:32% !important;">
								<b>{{cert.filename}} [{{cert.certType}}]</b>
							</div>
						</div>
					</div>
				</td>
			</tr>
		</table>
	</div>
</div>
<div class="grid" ng-if="containers.platform === 'kubernetes'">
	<table width="100%" cellspacing="10">
		<tr class="odd first">
			<td width="50%">
				<b>Master Node IP</b>
			</td>
			<td>{{containers.config.nodes}}</td>
		</tr>
		<tr class="even" ng-class="{ 'red' : !containers.config.namespace.default}">
			<td width="50%">
				<b>Namespace Configuration</b>
			</td>
			<td>{{containers.config.namespace.default || "N/A"}}</td>
		</tr>
		<tr class="odd">
			<td><b>Namespace Type</b></td>
			<td>{{(containers.config.namespace.perService ? 'Per Service' : 'Global')}}</td>
		</tr>
		<tr class="even">
			<td colspan="2">
				<b>Kubernetes Token</b>
			</td>
		</tr>
		<tr class="odd last">
			<td colspan="2">
				<div style="overflow: auto;">
					{{containers.config.auth.token}}
				</div>
			</td>
		</tr>
	</table>
</div>