blob: fab09a2323969054ba2c9a76ccc1a65e965a8937 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{{ define "main" }}
<div id="content">
<div id="sidewrap">
<div id="sidenav">
{{ partial "sidenav.html" (dict "sidenavType" .Params.sidenav "data" .Site.Data "language" $.Site.Language.Lang ) }}
</div>
</div>
<div id="contentwrap">
<h1>{{ .Title }}</h1>
{{- .Content -}}
{{ if $.Params.security }}
<table>
<thead>
<tr>
<th>Date</th>
{{ if eq $.Params.security "notices" }}
<th>Errata Notice name</th>
{{ end }}
{{ if eq $.Params.security "advisories" }}
<th>Advisory name</th>
{{ end }}
</tr>
</thead>
<tbody>
{{ if eq $.Params.security "notices" }}
{{ with .Site.Data.security.errata }}
{{ range .notices }}
<tr>
<td class="txtdate">{{ .date }}</td>
<td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td>
</tr>
{{ end }}
{{ end }}
{{ end }}
{{ if eq $.Params.security "advisories" }}
{{ with .Site.Data.security.advisories }}
{{ range .advisories }}
<tr>
<td class="txtdate">{{ .date }}</td>
<td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td>
</tr>
{{ end }}
{{ end }}
{{ end }}
</tbody>
</table>
{{ end }}
</div>
</div>
{{ end }}
|