From b983e914ae686fc6a2b354ad22a1fe5e1bd21192 Mon Sep 17 00:00:00 2001 From: Aleksandr Gornostal Date: Sun, 12 Apr 2020 07:27:00 +0300 Subject: [PATCH] Add support for Fedora 32 --- assets/js/releases.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/assets/js/releases.js b/assets/js/releases.js index 19ecc62..f1c8baf 100644 --- a/assets/js/releases.js +++ b/assets/js/releases.js @@ -75,8 +75,12 @@ jQuery(function($) { function renderReleaseLinks (r) { var dlIcon = ' '; $('#release-deb').html('' + dlIcon + r.assets.deb.name + ''); - $('#release-fedora').html('' + dlIcon + r.assets.fedora.name + ''); - + if (r.assets.fedora32) { + $('#release-fedora').html(`${dlIcon}${r.assets.fedora.name} + ${dlIcon}${r.assets.fedora32.name}`); + } else { + $('#release-fedora').html('' + dlIcon + r.assets.fedora.name + ''); + } if (r.assets.suse) { $('.distro-icon.distro-opensuse').show(); $('#release-suse').html('' + dlIcon + r.assets.suse.name + ''); @@ -112,10 +116,11 @@ jQuery(function($) { var suse = getAssetLink(release.assets, 'suse.rpm'); var centos = getAssetLink(release.assets, 'centos7.rpm'); var fedora = getAssetLink(release.assets, 'fedora.rpm'); + var fedora32 = getAssetLink(release.assets, 'fedora32.rpm'); var deb = getAssetLink(release.assets, '.deb'); - if (fedora && deb) { - return { suse, centos, fedora, deb }; + if ((fedora || fedora32) && deb) { + return { suse, centos, fedora, fedora32, deb }; } }