From 9cfdc7a1aa8a020ce32d9fc2300faa4779a12a4e Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 25 May 2020 20:56:23 +0000 Subject: [PATCH] .uppweb git-svn-id: svn://ultimatepp.org/upp/trunk@14501 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppbox/uppweb/www.cpp | 69 ++++++++++++++++++++++++++++--------------- 1 file changed, 45 insertions(+), 24 deletions(-) diff --git a/uppbox/uppweb/www.cpp b/uppbox/uppweb/www.cpp index e7a209878..8d4754aad 100644 --- a/uppbox/uppweb/www.cpp +++ b/uppbox/uppweb/www.cpp @@ -688,46 +688,67 @@ void ExportPage(int i) RLOG("Exported page " << AppendFileName(targetdir, links[i])); } +struct DownloadItem { + Time tm; + String fn; + String path; + int64 len; +}; + String Downloads() { String r; - r << "{{1:1:1^@L " + r << "{{1:1:1:1^@L " + "Date:: " "[^app$ide$install_win32_en-us.html^ U`+`+ for Windows (with CLANG)]:: " "[^app$ide$install_posix_en-us.html^ U`+`+ for Linux/FreeBSD]:: " "[^app$ide$install_macos_en-us.html^ U`+`+ for MacOS]"; FindFile ff(AppendFileName(targetdir, "downloads/*.*")); - Vector