blob: ffdbd8f81ea435a89aa7cc481e13eff0226a1e09 (
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
52
53
54
55
56
57
|
{{ 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 | absURL }}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 | absURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td>
</tr>
{{ end }}
{{ end }}
{{ end }}
</tbody>
</table>
{{ end }}
{{ if .GitInfo }}
<hr />
<div class="last-modified">
<p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
</div>
{{ end }}
</div>
</div>
{{ end }}
|