1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Add fieldset araound publsher in html report

This commit is contained in:
Sascha L. Teichmann 2022-07-20 11:35:04 +02:00
parent 649b5c904b
commit 6bf7b52890

View file

@ -11,38 +11,41 @@
<h2>{{ .Name }}{{ if .HasErrors }} (failed){{ end }}</h2>
<p>
{{ with .Publisher }}
<fieldset>
<legend>Publisher</legend>
<table>
{{ with .Category }}
<tr>
<td><strong>category:</strong></td>
<td><strong>Category:</strong></td>
<td>{{ . }}</td>
</tr>
{{ end }}
{{ with .Name }}
<tr>
<td><strong>name:</strong></td>
<td><strong>Name:</strong></td>
<td>{{ . }}</td>
</tr>
{{ end }}
{{ with .Namespace }}
<tr>
<td><strong>namespace:</strong></td>
<td><strong>Namespace:</strong></td>
<td>{{ . }}</td>
</tr>
{{ end }}
{{ with .ContactDetails }}
<tr>
<td><strong>contact details:</strong></td>
<td><strong>Contact Details:</strong></td>
<td>{{ . }}</td>
</tr>
{{ end }}
{{ with .IssuingAuthority }}
<tr>
<td><strong>issuing authority:</strong></td>
<td><strong>Issuing Authority:</strong></td>
<td>{{ . }}</td>
</tr>
{{ end }}
<table>
</table>
</fieldset>
{{ end }}
</br>
{{ with .Role }}<strong>Role:</strong> {{ . }}{{ end }}