Skip to content
Snippets Groups Projects
Commit 43cf13c1 authored by Joschua "λ" Kesper's avatar Joschua "λ" Kesper
Browse files

Merge branch 'fix-footer' into 'main'

Only add `-$title` to links if they are spec_version -1

See merge request !50
parents 472ba3c6 0c3c1897
No related branches found
No related tags found
1 merge request!50Only add `-$title` to links if they are spec_version -1
Pipeline #263159 passed
......@@ -194,12 +194,13 @@ export function renderTranscriptPageHtml(
}
function getTranscriptFilename(t: FinishedTranscriptMeta) {
return typeof t.number === "number"
? `fsr-sitzung-${String(t.number).padStart(3, "0")}-${t.date}` +
(t.spec_version === -1 ? ".pdf" : "")
: t.title
? `fsr-sitzung-${t.date}-${t.title.toLowerCase()}.pdf`
: `fsr-sitzung-${t.date}.pdf`;
return [
"fsr-sitzung",
typeof t.number === "number" ? `${t.number}`.padStart(3, '0') : null,
`${t.date}`,
t.title && t.spec_version === -1 ? `${t.title.toLowerCase()}` : null,
].filter(x => x !== null).join("-")
+ (t.spec_version === -1 ? ".pdf" : "");
}
function getTranscriptTitle(t: FinishedTranscriptMeta) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment