From 8bbb7aaeb5ad7bb023046979240f7086663a9aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BChlmann?= Date: Mon, 5 Jan 2026 14:59:58 +0100 Subject: [PATCH] Use fragments for download --- src/main/resources/templates/dashboard.html | 47 +------------------ .../templates/fragments/downloads.html | 44 +++++++++++++++++ src/main/resources/templates/index.html | 45 +----------------- 3 files changed, 46 insertions(+), 90 deletions(-) create mode 100644 src/main/resources/templates/fragments/downloads.html diff --git a/src/main/resources/templates/dashboard.html b/src/main/resources/templates/dashboard.html index 2338567..9d98303 100644 --- a/src/main/resources/templates/dashboard.html +++ b/src/main/resources/templates/dashboard.html @@ -106,52 +106,7 @@ -
-
-
-

Desktop app

-

Download Imgfloat

-
-
-
-
-
-

macOS

- -
-

Apple Silicon build (ARM64)

- Download DMG -
-
-
-

Windows

- -
-

Installer for Windows 10 and 11

- Download EXE -
-
-
-

Linux

- -
-

AppImage for most distributions

- Download AppImage -
-
-
+
diff --git a/src/main/resources/templates/fragments/downloads.html b/src/main/resources/templates/fragments/downloads.html new file mode 100644 index 0000000..b4504cd --- /dev/null +++ b/src/main/resources/templates/fragments/downloads.html @@ -0,0 +1,44 @@ + +
+

Desktop app

+

Download Imgfloat

+
+
+
+
+

macOS

+ +
+

Apple Silicon build (ARM64)

+ Download DMG +
+
+
+

Windows

+ +
+

Installer for Windows 10 and 11

+ Download EXE +
+
+
+

Linux

+ +
+

AppImage for most distributions

+ Download AppImage +
+
+
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index af7476e..34b3a53 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -29,50 +29,7 @@ -
-
-

Desktop app

-

Download Imgfloat

-
-
-
-
-

macOS

- -
-

Apple Silicon build (ARM64)

- Download DMG -
-
-
-

Windows

- -
-

Installer for Windows 10 and 11

- Download EXE -
-
-
-

Linux

- -
-

AppImage for most distributions

- Download AppImage -
-
-
+