mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
87 lines
2.3 KiB
HTML
87 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta description="CSAF-Checker - Report">
|
|
<title>CSAF-Checker - Report</title>
|
|
</head>
|
|
<body>
|
|
<h1>CSAF-Checker - Report</h1>
|
|
{{- range .Domains }}
|
|
<h2>{{ .Name }}{{ if .HasErrors }} (failed){{ end }}</h2>
|
|
<p>
|
|
{{ with .Publisher }}
|
|
<fieldset>
|
|
<legend>Publisher</legend>
|
|
<table>
|
|
{{ with .Category }}
|
|
<tr>
|
|
<td><strong>Category:</strong></td>
|
|
<td>{{ . }}</td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ with .Name }}
|
|
<tr>
|
|
<td><strong>Name:</strong></td>
|
|
<td>{{ . }}</td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ with .Namespace }}
|
|
<tr>
|
|
<td><strong>Namespace:</strong></td>
|
|
<td>{{ . }}</td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ with .ContactDetails }}
|
|
<tr>
|
|
<td><strong>Contact Details:</strong></td>
|
|
<td>{{ . }}</td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ with .IssuingAuthority }}
|
|
<tr>
|
|
<td><strong>Issuing Authority:</strong></td>
|
|
<td>{{ . }}</td>
|
|
</tr>
|
|
{{ end }}
|
|
</table>
|
|
</fieldset>
|
|
{{ end }}
|
|
</br>
|
|
{{ with .Role }}<strong>Role:</strong> {{ . }}{{ end }}
|
|
</p>
|
|
|
|
<dl>
|
|
{{ range .Requirements }}
|
|
<dt><strong>Requirement {{ .Num }}: {{ .Description }}{{ if .HasErrors }} (failed){{ end }}</strong></dt>
|
|
{{ range .Messages }}
|
|
<dd>- {{ .Type }}: {{ .Text }}</dd>
|
|
{{ end }}
|
|
{{ end }}
|
|
</dl>
|
|
{{ end }}
|
|
|
|
<footer>
|
|
<fieldset>
|
|
<legend>Runtime</legend>
|
|
<table>
|
|
<tr>
|
|
<td><strong>Date of run:</strong></td>
|
|
<td><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z"}}">{{ .Date.Local.Format "Monday, 02 Jan 2006 15:04:05 MST" }}</time></td>
|
|
</tr>
|
|
{{ if .TimeRange }}{{ with .TimeRange }}
|
|
<tr>
|
|
<td><strong>Time range:</strong></td>
|
|
<td><time datetime="{{ (index . 0).Format "2006-01-02T15:04:05Z"}}">{{ (index . 0).Local.Format "Monday, 02 Jan 2006 15:04:05 MST" }}</time> -
|
|
<time datetime="{{ (index . 1).Format "2006-01-02T15:04:05Z"}}">{{ (index . 1).Local.Format "Monday, 02 Jan 2006 15:04:05 MST" }}</time></td>
|
|
</tr>
|
|
{{ end }}{{ end }}
|
|
<tr>
|
|
<td><strong>Version:</strong></td>
|
|
<td>csaf_checker v<span class="version">{{ .Version }}</span></td>
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
</footer>
|
|
</body>
|
|
</html>
|