static/shared/vuln: create shared vuln message
Created a shared vuln message template for the unit
page banner and the versions page details section.
For golang/go#48223
Trust: Jamal Carvalho
Run-TryBot: Jamal Carvalho
TryBot-Result: kokoro
license that can be found in the LICENSE file.
-->
-{{define "vuln"}}
- <span class="go-Chip go-Chip--vuln">
- <details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
- <summary class="go-textSubtle">
- {{.ID}}
- <img class="go-Icon" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" height="24" width="24">
- </summary>
- <p>{{.Details}}</p>
- </details>
- </span>
+{{define "vuln"}}{{end}}
+
+{{define "vuln-message"}}
+ <div class="go-Message go-Message--alert">
+ <img
+ class="go-Icon"
+ height="24"
+ width="24"
+ src="/static/shared/icon/alert_gm_grey_24dp.svg"
+ alt="Alert"
+ />&nbsp;
+ <a href="/vuln/{{.ID}}">{{.ID}}</a>: {{.Details}}
+ </div>
{{end}}
