~singpolyma/xmpp-certwatch

52b05d973e01716b4274684143e5a1608a84bc89 — Stephen Paul Weber 7 months ago a8d12ed
Improve suggestion display
1 files changed, 13 insertions(+), 11 deletions(-)

M templates/success.html
M templates/success.html => templates/success.html +13 -11
@@ 10,22 10,24 @@
		{{ template "header.html" }}
		{{ if not .AllChecked }}
			<p class="warning">
				Your certificates match your settinsg, but are not ideal
				Your certificates match your settings, but are not ideal
				for MITM detection. Suggest adding these records:
			</p>

			<table>
				{{ range $info := .Tlsa }}
					{{ range $rdata := .Rdata }}
						{{ if not $rdata.Checked }}
						<tr>
							<td>{{ $info.Qname }}</td>
							<td>{{ $rdata.Usage }} {{ $rdata.Selector }} {{ $rdata.Mtype }} {{ $rdata.Data }}</td>
						</tr>
			<div class="table">
				<table>
					{{ range $info := .Tlsa }}
						{{ range $rdata := .Rdata }}
							{{ if not $rdata.Checked }}
							<tr>
								<td>{{ $info.Qname }}</td>
								<td>{{ $rdata.Usage }} {{ $rdata.Selector }} {{ $rdata.Mtype }} {{ $rdata.Data }}</td>
							</tr>
							{{ end }}
						{{ end }}
					{{ end }}
				{{ end }}
			</table>
				</table>
			</div>
		{{ else }}
			<p class="success">
				Your settings are correct and no MITM was detected.