Compare commits
2 Commits
c6386eb794
...
52e1149f74
Author | SHA1 | Date | |
---|---|---|---|
52e1149f74 | |||
30d7ed5118 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
.history
|
||||
.venv
|
||||
src/upload/__pycache__
|
||||
src/rupload/__pycache__
|
||||
uploads/*
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user