diff options
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r-- | src/misc-templates.js | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js index afcb9c3b..11a95c7c 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -40,42 +40,6 @@ function unbound_generateAdditionalFilesShortcut(additionalFiles, { }); } -function unbound_generateAdditionalFilesList(additionalFiles, { - html, - language, - - getFileSize, - linkFile, -}) { - if (empty(additionalFiles)) return []; - - return html.tag('dl', - additionalFiles.flatMap(({title, description, files}) => [ - html.tag('dt', - (description - ? language.$('releaseInfo.additionalFiles.entry.withDescription', { - title, - description, - }) - : language.$('releaseInfo.additionalFiles.entry', {title}))), - - html.tag('dd', - html.tag('ul', - files.map((file) => { - const size = (getFileSize && getFileSize(file)); - return html.tag('li', - (size - ? language.$('releaseInfo.additionalFiles.file.withSize', { - file: linkFile(file), - size: language.formatFileSize(size), - }) - : language.$('releaseInfo.additionalFiles.file', { - file: linkFile(file), - }))) - }))), - ])); -} - // Chronology links function unbound_generateChronologyLinks(currentThing, { @@ -795,21 +759,6 @@ function unbound_generateNavigationLinks(current, { // Sticky heading, ooooo -function unbound_generateContentHeading({ - html, - - id, - title, -}) { - return html.tag('p', - { - class: 'content-heading', - id, - tabindex: '0', - }, - title); -} - function unbound_generateStickyHeadingContainer({ html, img, |