Commit 314b019a40
Verified · cmc ci/build: success ci/quality: success ci/test: success
Layout: unified · split
internal/web/templates/settings.html +12 −8
| @@ -209,9 +209,11 @@ | ||
| 209 | 209 | </tr> |
| 210 | 210 | {{end}}</table></div> |
| 211 | 211 | {{else if .Security.LastResults}}<p class="none">The last scan found nothing open.</p>{{end}} |
| 212 | {{if .Security.Dismissed}}<h3>Dismissed</h3><div class="tablewrap"><table class="keys"> | |
| 213 | <tr class="cols"><th scope="col">location</th><th scope="col">rule</th><th scope="col">reason</th><th scope="col"><span class="vh">reopen</span></th></tr> | |
| 214 | {{range .Security.Dismissed}}<tr> | |
| 212 | {{if .Security.Dismissed}}<details class="editbox"><summary>Dismissed ({{len .Security.Dismissed}})</summary> | |
| 213 | <p><input type="search" class="tablefilter" placeholder="Filter dismissed findings…" aria-label="Filter dismissed findings" data-filter-table="sec-dismissed"></p> | |
| 214 | <div class="tablewrap"><table class="keys" id="sec-dismissed"> | |
| 215 | <thead><tr class="cols"><th scope="col">location</th><th scope="col">rule</th><th scope="col">reason</th><th scope="col"><span class="vh">reopen</span></th></tr></thead> | |
| 216 | <tbody>{{range .Security.Dismissed}}<tr> | |
| 215 | 217 | <td class="mono">{{.Path}}:{{.Line}}</td> |
| 216 | 218 | <td class="mono">{{.Rule}}</td> |
| 217 | 219 | <td>{{.Reason}}{{if .DismissedBy}} <span class="meta">by {{.DismissedBy}}</span>{{end}}</td> |
| @@ -221,7 +223,7 @@ | ||
| 221 | 223 | <button type="submit">Reopen</button> |
| 222 | 224 | </form></td> |
| 223 | 225 | </tr> |
| 224 | {{end}}</table></div>{{end}} | |
| 226 | {{end}}</tbody></table></div></details>{{end}} | |
| 225 | 227 | {{end}} |
| 226 | 228 | <form method="post" action="{{$base}}" class="setform"> |
| 227 | 229 | <input type="hidden" name="field" value="security-ignore"> |
| @@ -335,9 +337,11 @@ | ||
| 335 | 337 | {{end}}</table></div> |
| 336 | 338 | {{else if .Deps.LastCheck}}<p class="none">No open advisories.</p>{{end}} |
| 337 | 339 | {{if .Deps.NotImported}}<p class="meta">Not imported by any Go file here, so not reported:{{range .Deps.NotImported}} <a href="https://osv.dev/vulnerability/{{.ID}}">{{.ID}}</a> ({{.Name}}){{end}}. Imports through another module are not seen.</p>{{end}} |
| 338 | {{if .Deps.Dismissed}}<h3>Dismissed advisories</h3><div class="tablewrap"><table class="keys"> | |
| 339 | <tr class="cols"><th scope="col">dependency</th><th scope="col">advisory</th><th scope="col">reason</th><th scope="col"><span class="vh">reopen</span></th></tr> | |
| 340 | {{range .Deps.Dismissed}}<tr> | |
| 340 | {{if .Deps.Dismissed}}<details class="editbox"><summary>Dismissed advisories ({{len .Deps.Dismissed}})</summary> | |
| 341 | <p><input type="search" class="tablefilter" placeholder="Filter dismissed advisories…" aria-label="Filter dismissed advisories" data-filter-table="deps-dismissed"></p> | |
| 342 | <div class="tablewrap"><table class="keys" id="deps-dismissed"> | |
| 343 | <thead><tr class="cols"><th scope="col">dependency</th><th scope="col">advisory</th><th scope="col">reason</th><th scope="col"><span class="vh">reopen</span></th></tr></thead> | |
| 344 | <tbody>{{range .Deps.Dismissed}}<tr> | |
| 341 | 345 | <td class="mono">{{.Ecosystem}} {{.Name}}</td> |
| 342 | 346 | <td class="mono"><a href="https://osv.dev/vulnerability/{{.ID}}">{{.ID}}</a></td> |
| 343 | 347 | <td>{{.Reason}}{{if .By}} <span class="meta">by {{.By}}</span>{{end}}</td> |
| @@ -347,7 +351,7 @@ | ||
| 347 | 351 | <button type="submit">Reopen</button> |
| 348 | 352 | </form></td> |
| 349 | 353 | </tr> |
| 350 | {{end}}</table></div>{{end}} | |
| 354 | {{end}}</tbody></table></div></details>{{end}} | |
| 351 | 355 | {{end}} |
| 352 | 356 | </section> |
| 353 | 357 | |