diff options
author | Alex Auvolat <alex@adnab.me> | 2023-11-23 13:13:44 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-11-23 13:13:44 +0100 |
commit | acce983c563038637c3aceb20f9aa3f6d539ca2a (patch) | |
tree | fbb5ab9370c7aa4c8e8c854e169db590813b0f0d /templates/download.html | |
parent | 1559433753adedd2de5695c0892a6e1df25cf304 (diff) | |
download | garagehq.deuxfleurs.fr-acce983c563038637c3aceb20f9aa3f6d539ca2a.tar.gz garagehq.deuxfleurs.fr-acce983c563038637c3aceb20f9aa3f6d539ca2a.zip |
download page: add "download" attribute to <a> elements
Co-authored-by: sptaule <lecas83@gmail.com>
Diffstat (limited to 'templates/download.html')
-rw-r--r-- | templates/download.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/templates/download.html b/templates/download.html index b2f4744..72c56d7 100644 --- a/templates/download.html +++ b/templates/download.html @@ -94,8 +94,6 @@ Downloads | {{ config.title }} let extraBuilds = data[1].builds; let developmentBuilds = data[2].builds; - console.log(extraBuilds) - /** Release Builds */ for (i = 0; i < releaseBuilds.length; i++) { window['build' + i] = @@ -109,7 +107,7 @@ Downloads | {{ config.title }} <div id="release-builds-detail-${i}" class="flex flex-col md:flex-row items-start md:items-center space-x-0 md:space-x-2 space-y-2 md:space-y-0"></div> <span class="inline-block mt-4 text-sm mb-1 uppercase text-gray-600">Sources</span> <div id="release-builds-source-${i}" class="flex items-center space-x-2"> - <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${releaseBuilds[i]['version']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> + <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${releaseBuilds[i]['version']}" download class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> <span>Gitea</span> </a> <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/archive/${releaseBuilds[i]['version']}.zip" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> @@ -127,7 +125,7 @@ Downloads | {{ config.title }} for (j = 0; j < releaseBuilds[i]['builds'].length; j++) { window['buildDetail' + i] = ` - <a href="${releaseBuilds[i]['builds'][j]['url']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> + <a href="${releaseBuilds[i]['builds'][j]['url']}" download class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> <span> ${releaseBuilds[i]['builds'][j]['platform'] .replace('aarch64-unknown-linux-musl', 'linux/arm64') @@ -154,7 +152,7 @@ Downloads | {{ config.title }} <div id="extra-builds-detail-${i}" class="flex flex-col md:flex-row items-start md:items-center space-x-0 md:space-x-2 space-y-2 md:space-y-0"></div> <span class="inline-block mt-4 text-sm mb-1 uppercase text-gray-600">Sources</span> <div id="extra-builds-source-${i}" class="flex items-center pt-4 space-x-2"> - <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${extraBuilds[i]['version']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> + <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${extraBuilds[i]['version']}" download class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> <span>Gitea</span> </a> <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/archive/${extraBuilds[i]['version']}.zip" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> @@ -172,7 +170,7 @@ Downloads | {{ config.title }} for (j = 0; j < extraBuilds[i]['builds'].length; j++) { window['buildDetail' + i] = ` - <a href="${extraBuilds[i]['builds'][j]['url']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> + <a href="${extraBuilds[i]['builds'][j]['url']}" download class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> <span> ${extraBuilds[i]['builds'][j]['platform'] .replace('aarch64-unknown-linux-musl', 'linux/arm64') @@ -199,7 +197,7 @@ Downloads | {{ config.title }} <div id="development-builds-detail-${i}" class="flex flex-col md:flex-row items-start md:items-center space-x-0 md:space-x-2 space-y-2 md:space-y-0"></div> <span class="inline-block mt-4 text-sm mb-1 uppercase text-gray-600">Sources</span> <div id="development-builds-source-${i}" class="flex items-center pt-4 space-x-2"> - <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${developmentBuilds[i]['version']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> + <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/${developmentBuilds[i]['version']}" download class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> <span>Gitea</span> </a> <a href="https://git.deuxfleurs.fr/Deuxfleurs/garage/archive/${developmentBuilds[i]['version']}.zip" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> @@ -217,7 +215,7 @@ Downloads | {{ config.title }} for (j = 0; j < developmentBuilds[i]['builds'].length; j++) { window['buildDetail' + i] = ` - <a href="${developmentBuilds[i]['builds'][j]['url']}" class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> + <a href="${developmentBuilds[i]['builds'][j]['url']}" download class="inline-block p-1.5 text-garage-gray font-bold bg-gray-300 hover:bg-orange-300 rounded border-b-2 border-gray-400 hover:border-orange-400 transition-all duration-300"> <span> ${developmentBuilds[i]['builds'][j]['platform'] .replace('aarch64-unknown-linux-musl', 'linux/arm64') |