Compare commits
No commits in common. "52e1149f74502b3cae4270bd53d975d2389e2bd0" and "c6386eb794f434b75f942b721593fbc69c5c4450" have entirely different histories.
52e1149f74
...
c6386eb794
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
.history
|
.history
|
||||||
.venv
|
.venv
|
||||||
src/rupload/__pycache__
|
src/upload/__pycache__
|
||||||
uploads/*
|
uploads/*
|
BIN
src/rupload/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
src/rupload/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
src/rupload/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
src/rupload/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
src/rupload/__pycache__/app.cpython-310.pyc
Normal file
BIN
src/rupload/__pycache__/app.cpython-310.pyc
Normal file
Binary file not shown.
BIN
src/rupload/__pycache__/cli.cpython-310.pyc
Normal file
BIN
src/rupload/__pycache__/cli.cpython-310.pyc
Normal file
Binary file not shown.
BIN
src/rupload/__pycache__/cli.cpython-312.pyc
Normal file
BIN
src/rupload/__pycache__/cli.cpython-312.pyc
Normal file
Binary file not shown.
@ -32,10 +32,10 @@ UPLOAD_PAGE = """
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>RUpload 1.33.7</title>
|
<title>File Upload</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: "Courier New", Courier, monospace;
|
font-family: Arial, sans-serif;
|
||||||
background-color: #f4f4f9;
|
background-color: #f4f4f9;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -44,10 +44,6 @@ UPLOAD_PAGE = """
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
@ -188,7 +184,7 @@ def create_images_html(url, image_paths):
|
|||||||
images_html = ""
|
images_html = ""
|
||||||
for image_path in image_paths:
|
for image_path in image_paths:
|
||||||
path = url.rstrip("/") + "/" + image_path.name
|
path = url.rstrip("/") + "/" + image_path.name
|
||||||
images_html += f'<a href="{path}"><img class="thumbnail" src="{path}" alt="{image_path.name}"></a>'
|
images_html += f'<img class="thumbnail" src="{path}" alt="{image_path.name}">'
|
||||||
return images_html
|
return images_html
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user