@switch (entity) {
@case ('daemon') {
{{ showEntityName ? 'daemon' : '' }}
@if (attrs.daemonId || +attrs.id) {
[{{ attrs.daemonId || attrs.id }}] }{{ attrs.daemonLabel || (attrs.name | daemonNiceName) || attrs.label }}
}
@case ('machine') {
{{ showEntityName ? 'machine' : '' }}
[{{ attrs.machineId || attrs.id }}] {{ attrs.machineLabel || attrs.label || attrs.address }}
}
@case ('subnet') {
{{ showEntityName ? 'subnet ' : '' }}
@if (showIdentifier()) {
[{{ attrs.id }}]
}
{{ attrs.subnet || attrs.prefix }}
}
@case ('user') {
{{ showEntityName ? 'user' : '' }}
[{{ attrs.id }}] {{ attrs.login ? attrs.login : attrs.email }}
}
@case ('host') {
{{ showEntityName ? 'host' : '' }}
@if (showIdentifier()) {[{{ attrs.id }}] }{{ attrs.label }}
}
@case ('shared-network') {
{{ showEntityName ? 'shared network' : '' }}
@if (showIdentifier()) {[{{ attrs.id }}] }{{ attrs.name }}
}
@default {
{{ entity }}
}
}