package components import "soko/pkg/models" import "strconv" templ bugsList(title, component string, bugs []*models.Bug, titleClass, id string) {

{ title }

} func bugAtomLink(atom string) templ.SafeURL { if atom == "" { return templ.URL("https://bugs.gentoo.org/") } return templ.URL("https://bugs.gentoo.org/enter_bug.cgi?product=Gentoo Linux&component=Current packages&short_desc=" + atom + ": ") } templ Bugs(atom string, generalCount, stabilizationCount, keywordingCount int, bugs []*models.Bug) {
if len(bugs) > 0 { if generalCount > 0 { @bugsList("Bug Reports", "Current packages", bugs, "mb-4", "packages") } if stabilizationCount > 0 { @bugsList("Stabilization Bug Reports", "Stabilization", bugs, "my-4", "stabilization") } if keywordingCount > 0 { @bugsList("Keywording Bug Reports", "Keywording", bugs, "my-4", "keywording") } } else {

Good job! There are no bugs.

You think something is missing here?
Start with filling a new bug.
}
} func securityBugAtomLink(atom string) templ.SafeURL { if atom == "" { return templ.URL("https://bugs.gentoo.org/enter_bug.cgi?product=Gentoo Security&component=Vulnerabilities") } return templ.URL("https://bugs.gentoo.org/enter_bug.cgi?product=Gentoo Security&component=Vulnerabilities&short_desc=" + atom + ": ") } templ SecurityBugs(atom string, bugs []*models.Bug) {
if len(bugs) > 0 { @bugsList("Security Bug Reports", "Vulnerabilities", bugs, "mb-4", "security") } else {

There are no open security bugs.

You think something is missing here?
Start with filling a new security bug.
}

Please file new vulnerability reports on Gentoo Bugzilla and assign them to the Gentoo Security product and Vulnerabilities component.
}