mirror of https://github.com/istio/istio.io.git
63 lines
2.7 KiB
HTML
63 lines
2.7 KiB
HTML
{{ define "main" }}
|
|
<main class="primary blog-content">
|
|
<div>
|
|
<article>
|
|
<h1>{{ .Params.title }}</h1>
|
|
<p class="blog-description">{{ .Params.description }}</p>
|
|
<div class="security-grid">
|
|
{{ $pages := (where .Site.Pages "Section" .Section) }}
|
|
{{ $pages = sort $pages ".Params.publishdate" "desc" }}
|
|
|
|
{{ $parent := .Page }}
|
|
{{ $parentDir := (path.Dir .Page.File.Dir) }}
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>{{ i18n "security_disclosure" }}</th>
|
|
<th>{{ i18n "security_date" }}</th>
|
|
<th>{{ i18n "security_affected_releases" }}</th>
|
|
<th>{{ i18n "security_impact_score" }}</th>
|
|
<th>{{ i18n "security_related" }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range $pages }}
|
|
{{ $pageLocation := (path.Dir (path.Dir .File.Dir)) }}
|
|
{{ if and (eq $parentDir $pageLocation) (not .Params.draft) }}
|
|
<tr>
|
|
<td style="white-space: nowrap;">
|
|
<a href="{{ .Permalink }}">
|
|
{{ .LinkTitle }}
|
|
</a>
|
|
</td>
|
|
|
|
<td>{{ .PublishDate.Format (i18n "page_publish_date_format") -}}</td>
|
|
|
|
<td>
|
|
{{ range .Params.releases }}
|
|
{{ trim . " " }}<br>
|
|
{{ end }}
|
|
</td>
|
|
|
|
<td class="score">
|
|
{{ if .Params.cvss }}
|
|
<a href="https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector={{ .Params.vector }}&version={{ default "3.1" .Params.cvss_version }}">
|
|
{{ .Params.cvss }}
|
|
</a>
|
|
{{ end }}
|
|
</td>
|
|
|
|
<td>{{ trim .Description "." -}}</td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{ partial "posts_navigation.html" . }}
|
|
</article>
|
|
</div>
|
|
</main>
|
|
{{ end }}
|