diff --git a/web/templates/internet/device-other.partial.tmpl b/web/templates/internet/device-other.partial.tmpl index eb22244..cd3dda4 100644 --- a/web/templates/internet/device-other.partial.tmpl +++ b/web/templates/internet/device-other.partial.tmpl @@ -13,62 +13,64 @@

{{end}} -

- - Managed - {{- /* make template ignore the line break */ -}} - ? - {{if $device.Managed}} - yes - {{else}} - no - {{end}} -

- -

- - Autoconnect - {{- /* make template ignore the line break */ -}} - ? - {{if $device.Autoconnect}} - yes - {{else}} - no - {{end}} -

- - {{if and $device.Driver (not (eq $device.Driver "unknown"))}} -

Driver:

- - {{end}} - - {{if and $device.FirmwareVersion (not (eq $device.FirmwareVersion "N/A"))}} -

Firmware:

- - {{end}} - - {{if not $device.InterfaceFlags.HasNone}} + {{if eq (.Meta.Form.Get "mode") "advanced"}}

- Interface flags: - {{if $device.InterfaceFlags.IsUp}} - - {{- /* make template ignore the line break */ -}} - up - {{- /* make template ignore the line break */ -}} - + + Managed + {{- /* make template ignore the line break */ -}} + ? + {{if $device.Managed}} + yes + {{else}} + no {{end}} - {{if $device.InterfaceFlags.IsLowerUp}} - - {{- /* make template ignore the line break */ -}} - physical up - {{- /* make template ignore the line break */ -}} - +

+ +

+ + Autoconnect + {{- /* make template ignore the line break */ -}} + ? + {{if $device.Autoconnect}} + yes + {{else}} + no {{end}}

+ + {{if and $device.Driver (not (eq $device.Driver "unknown"))}} +

Driver:

+ + {{end}} + + {{if and $device.FirmwareVersion (not (eq $device.FirmwareVersion "N/A"))}} +

Firmware:

+ + {{end}} + + {{if not $device.InterfaceFlags.HasNone}} +

+ Interface flags: + {{if $device.InterfaceFlags.IsUp}} + + {{- /* make template ignore the line break */ -}} + up + {{- /* make template ignore the line break */ -}} + + {{end}} + {{if $device.InterfaceFlags.IsLowerUp}} + + {{- /* make template ignore the line break */ -}} + physical up + {{- /* make template ignore the line break */ -}} + + {{end}} +

+ {{end}} {{end}} diff --git a/web/templates/internet/index.page.tmpl b/web/templates/internet/index.page.tmpl index b67fc1f..f30aa98 100644 --- a/web/templates/internet/index.page.tmpl +++ b/web/templates/internet/index.page.tmpl @@ -102,7 +102,7 @@ {{ template "internet/device-card.partial.tmpl" dict "Device" $device - "Sections" (dict "basics" true) + "Sections" (dict "basics" true "other" true) "CollapseAll" false "WithTurboStreamSource" true "Meta" $.Meta @@ -122,7 +122,7 @@ {{ template "internet/device-card.partial.tmpl" dict "Device" $device - "Sections" (dict "basics" true) + "Sections" (dict "basics" true "other" true) "CollapseAll" false "WithTurboStreamSource" true "Meta" $.Meta