Commit 314b019a40

314b019a403089fe441b2a42bd775756eee3abb1

parent: dc69c3e3e4

Verified · cmc ci/build: success ci/quality: success ci/test: success

cmc <hello@cleberg.net> · 2026-11-25 07:40 UTC

web: fold dismissed code-scan and dependency items in repo settings

Layout: unified · split

internal/web/templates/settings.html +12 −8
@@ -209,9 +209,11 @@
209209</tr>
210210{{end}}</table></div>
211211{{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>
215217 <td class="mono">{{.Path}}:{{.Line}}</td>
216218 <td class="mono">{{.Rule}}</td>
217219 <td>{{.Reason}}{{if .DismissedBy}} <span class="meta">by {{.DismissedBy}}</span>{{end}}</td>
@@ -221,7 +223,7 @@
221223 <button type="submit">Reopen</button>
222224 </form></td>
223225</tr>
224{{end}}</table></div>{{end}}
226{{end}}</tbody></table></div></details>{{end}}
225227{{end}}
226228<form method="post" action="{{$base}}" class="setform">
227229 <input type="hidden" name="field" value="security-ignore">
@@ -335,9 +337,11 @@
335337{{end}}</table></div>
336338{{else if .Deps.LastCheck}}<p class="none">No open advisories.</p>{{end}}
337339{{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>
341345 <td class="mono">{{.Ecosystem}} {{.Name}}</td>
342346 <td class="mono"><a href="https://osv.dev/vulnerability/{{.ID}}">{{.ID}}</a></td>
343347 <td>{{.Reason}}{{if .By}} <span class="meta">by {{.By}}</span>{{end}}</td>
@@ -347,7 +351,7 @@
347351 <button type="submit">Reopen</button>
348352 </form></td>
349353</tr>
350{{end}}</table></div>{{end}}
354{{end}}</tbody></table></div></details>{{end}}
351355{{end}}
352356</section>
353357