diff --git a/cmd/pkgserver/ui/static/index.ts b/cmd/pkgserver/ui/static/index.ts index 18bbbfa..453964f 100644 --- a/cmd/pkgserver/ui/static/index.ts +++ b/cmd/pkgserver/ui/static/index.ts @@ -7,10 +7,10 @@ class PackageIndexEntry { report: boolean } function toHTML(entry: PackageIndexEntry): HTMLTableRowElement { - let v = entry.version !== null ? `${escapeHtml(entry.version)}` : "" - let s = entry.size !== null ? `
Size: ${toByteSizeString(entry.size)} (${entry.size})
` : "" - let d = entry.description !== null ? `${escapeHtml(entry.description)}
` : "" - let w = entry.website !== null ? `Website` : "" + let v = entry.version != null ? `${escapeHtml(entry.version)}` : "" + let s = entry.size != null ? `Size: ${toByteSizeString(entry.size)} (${entry.size})
` : "" + let d = entry.description != null ? `${escapeHtml(entry.description)}
` : "" + let w = entry.website != null ? `Website` : "" let r = entry.report ? `Log (View | Download)` : "" let row =