controls/config-details.ps1
Function New-UAConfigDetails { $Settings = Get-UASetting $Location = (Get-UAGitStatus | Select-Object -Property Location -Unique) New-UDCard -Title "Git Information" -Content { New-UDPageHeader -Text "Git Local Location" New-UDElement -Tag 'div' -Content { if ($null -ne $Location) { $Location | ForEach-Object{ New-UDElement -Tag 'b' -Content { "Git Location: " } $_.Location } } else { New-UDElement -Tag 'b' -Content {"None Found"} } } New-UDPageHeader -Text "Git Remote Configuration" New-UDElement -Tag 'div' -Content { if ($Settings.GitRemote) { New-UDElement -Tag 'b' -Content { "Git Remote: " } $Settings.GitRemote } else { New-UDElement -Tag 'b' -Content {"None Configured"} } } } } |