File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,14 @@ function New-CIPPAlertTemplate {
29
29
}
30
30
if ($InputObject -eq ' standards' ) {
31
31
$DataHTML = foreach ($object in $data ) {
32
- " <p>For the standard $ ( $object.standardName ) in template {{Template Name }} we've detected the following:</p> <li>$ ( $object.message ) </li>"
32
+ " <p>For the standard $ ( $object.standardName ) we've detected the following:</p> <li>$ ( $object.message ) </li>"
33
33
if ($object.object ) {
34
34
$StandardObject = $object.object | ConvertFrom-Json
35
- $StandardObject = $newobject | Select-Object * - ExcludeProperty Etag, PartitionKey, TimeStamp
35
+ $StandardObject = $StandardObject | Select-Object * - ExcludeProperty Etag, PartitionKey, TimeStamp
36
36
if ($StandardObject.compare ) {
37
37
' <p>The following differences have been detected:</p>'
38
38
($StandardObject.compare | ConvertTo-Html - Fragment | Out-String ).Replace(' <table>' , ' <table class="table-modern">' )
39
39
} else {
40
- ' <p>This is a table representation of the current settings:</p>'
41
40
($StandardObject | ConvertTo-Html - Fragment -As List | Out-String ).Replace(' <table>' , ' <table class="table-modern">' )
42
41
}
43
42
}
Original file line number Diff line number Diff line change 47
47
48
48
.table-modern { {
49
49
width : 100% ;
50
+ table-layout : fixed;
50
51
border-collapse : separate;
51
52
border-spacing : 0 ;
52
53
font-family : Arial, sans-serif;
56
57
padding : 10px ;
57
58
text-align : left;
58
59
border : 1px solid # e0e0e0 ;
59
- white-space : nowrap;
60
60
}}
61
61
62
62
.table-modern tr : nth-child (even) { {
You can’t perform that action at this time.
0 commit comments