Compare commits

...

2 Commits

Author SHA1 Message Date
52e1149f74 Updated style.
All checks were successful
RUpload build / Build (push) Successful in 1m6s
2024-11-26 07:26:27 +01:00
30d7ed5118 Changed style a bit. 2024-11-26 07:25:31 +01:00
7 changed files with 8 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
.history
.venv
src/upload/__pycache__
src/rupload/__pycache__
uploads/*

View File

@ -32,10 +32,10 @@ UPLOAD_PAGE = """
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Upload</title>
<title>RUpload 1.33.7</title>
<style>
body {
font-family: Arial, sans-serif;
font-family: "Courier New", Courier, monospace;
background-color: #f4f4f9;
display: flex;
justify-content: center;
@ -44,6 +44,10 @@ UPLOAD_PAGE = """
margin: 0;
}
a {
text-decoration: none;
}
.container {
background-color: #fff;
border-radius: 8px;
@ -184,7 +188,7 @@ def create_images_html(url, image_paths):
images_html = ""
for image_path in image_paths:
path = url.rstrip("/") + "/" + image_path.name
images_html += f'<img class="thumbnail" src="{path}" alt="{image_path.name}">'
images_html += f'<a href="{path}"><img class="thumbnail" src="{path}" alt="{image_path.name}"></a>'
return images_html