{#if is1x1}
{#if stats.connectionType === 'socket' || !stats.connectionType} {:else if stats.connectionType === 'direct'} {:else if stats.connectionType === 'hawser-standard'} {:else if stats.connectionType === 'hawser-edge'} {/if}
{stats.name} {#if !showOffline} {:else} {/if}
{stats.connectionType === 'socket' ? (stats.socketPath || '/var/run/docker.sock') : stats.connectionType === 'hawser-edge' ? 'Edge connection' : (stats.port ? `${stats.host}:${stats.port}` : stats.host || 'Unknown host')}
{#if stats.updateCheckEnabled} {#if stats.updateCheckAutoUpdate} {:else} {/if} {/if} {#if stats.scannerEnabled} {/if} {#if stats.collectActivity} {/if} {#if stats.collectMetrics} {/if} {#if $canAccess('environments', 'edit')} {/if}
{#if !showOffline}
{:else} {/if}
{:else if is2x1}
{#if stats.connectionType === 'socket' || !stats.connectionType} {:else if stats.connectionType === 'direct'} {:else if stats.connectionType === 'hawser-standard'} {:else if stats.connectionType === 'hawser-edge'} {/if}
{stats.name} {#if !showOffline} {:else} {/if}
{stats.connectionType === 'socket' ? (stats.socketPath || '/var/run/docker.sock') : stats.connectionType === 'hawser-edge' ? 'Edge connection' : (stats.port ? `${stats.host}:${stats.port}` : stats.host || 'Unknown host')}
{#if stats.updateCheckEnabled} {#if stats.updateCheckAutoUpdate} {:else} {/if} {/if} {#if stats.scannerEnabled} {/if} {#if stats.collectActivity} {/if} {#if stats.collectMetrics} {/if} {#if $canAccess('environments', 'edit')} {/if}
{#if !showOffline}
{#if stats.recentEvents}
{/if}
{:else} {/if}
{:else if is1x2}
{#if stats.connectionType === 'socket' || !stats.connectionType} {:else if stats.connectionType === 'direct'} {:else if stats.connectionType === 'hawser-standard'} {:else if stats.connectionType === 'hawser-edge'} {/if}
{stats.name} {#if !showOffline} {:else} {/if}
{stats.connectionType === 'socket' ? (stats.socketPath || '/var/run/docker.sock') : stats.connectionType === 'hawser-edge' ? 'Edge connection' : (stats.port ? `${stats.host}:${stats.port}` : stats.host || 'Unknown host')}
{#if stats.updateCheckEnabled} {#if stats.updateCheckAutoUpdate} {:else} {/if} {/if} {#if stats.scannerEnabled} {/if} {#if stats.collectActivity} {/if} {#if stats.collectMetrics} {/if} {#if $canAccess('environments', 'edit')} {/if}
{#if !showOffline}
{#if stats.collectMetrics && stats.metrics} {/if}
{:else} {/if}
{:else if is1x3}
{#if stats.connectionType === 'socket' || !stats.connectionType} {:else if stats.connectionType === 'direct'} {:else if stats.connectionType === 'hawser-standard'} {:else if stats.connectionType === 'hawser-edge'} {/if}
{stats.name} {#if !showOffline} {:else} {/if}
{stats.connectionType === 'socket' ? (stats.socketPath || '/var/run/docker.sock') : stats.connectionType === 'hawser-edge' ? 'Edge connection' : (stats.port ? `${stats.host}:${stats.port}` : stats.host || 'Unknown host')}
{#if stats.updateCheckEnabled} {#if stats.updateCheckAutoUpdate} {:else} {/if} {/if} {#if stats.scannerEnabled} {/if} {#if stats.collectActivity} {/if} {#if stats.collectMetrics} {/if} {#if $canAccess('environments', 'edit')} {/if}
{#if !showOffline}
{#if stats.collectMetrics && stats.metrics} {/if} {#if stats.recentEvents} {/if}
{:else} {/if}
{:else if is1x4}
{#if stats.connectionType === 'socket' || !stats.connectionType} {:else if stats.connectionType === 'direct'} {:else if stats.connectionType === 'hawser-standard'} {:else if stats.connectionType === 'hawser-edge'} {/if}
{stats.name} {#if !showOffline} {:else} {/if}
{stats.connectionType === 'socket' ? (stats.socketPath || '/var/run/docker.sock') : stats.connectionType === 'hawser-edge' ? 'Edge connection' : (stats.port ? `${stats.host}:${stats.port}` : stats.host || 'Unknown host')}
{#if stats.updateCheckEnabled} {#if stats.updateCheckAutoUpdate} {:else} {/if} {/if} {#if stats.scannerEnabled} {/if} {#if stats.collectActivity} {/if} {#if stats.collectMetrics} {/if} {#if $canAccess('environments', 'edit')} {/if}
{#if !showOffline}
{#if stats.collectMetrics && stats.metrics} {/if} {#if stats.recentEvents} {/if}
{:else} {/if}
{:else if is2x2} {#if !showOffline}
{#if stats.metrics} {/if}
{:else} {/if}
{:else if is2x3} {#if !showOffline}
{#if stats.metrics} {/if} {#if stats.recentEvents} {/if}
{#if stats.collectMetrics && stats.metrics && stats.metricsHistory} {/if}
{:else} {/if}
{:else if is2x4} {#if !showOffline}
{#if stats.metrics} {/if} {#if stats.recentEvents} {/if}
{#if stats.collectMetrics && stats.metrics && stats.metricsHistory} {/if}
{:else} {/if}
{/if}