From cea250920bdbe12e1d87469ee9070211610884a4 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 5 Apr 2023 16:06:52 -0300 Subject: test: generateAdditionalFilesShortcut (snapshot) --- src/content/dependencies/generateAdditionalFilesShortcut.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/content/dependencies') diff --git a/src/content/dependencies/generateAdditionalFilesShortcut.js b/src/content/dependencies/generateAdditionalFilesShortcut.js index dd097e28..7dfe07b3 100644 --- a/src/content/dependencies/generateAdditionalFilesShortcut.js +++ b/src/content/dependencies/generateAdditionalFilesShortcut.js @@ -1,3 +1,5 @@ +import {empty} from '../../util/sugar.js'; + export default { extraDependencies: [ 'html', @@ -14,6 +16,10 @@ export default { html, language, }) { + if (empty(data.titles)) { + return html.blank(); + } + return language.$('releaseInfo.additionalFiles.shortcut', { anchorLink: html.tag('a', -- cgit 1.3.0-6-gf8a5